amalricbzh/tools-bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

amalricbzh/tools-bundle

最新稳定版本:0.0.3

Composer 安装命令:

composer require amalricbzh/tools-bundle

包简介

Common tools for Symfony website

README 文档

README

Ce bundle embarque plusieurs outils ou réglages communs aux sites que je développe. Il n'a pas pour but d'embarquer de fonctionnalités. Je le complèterais au fur et à mesure de mes besoins.

Sécurité

Protection contre le ClickJacking

Ajout d'un header "X-Frame-Options: Deny".

Protection contre la lecture du cache du navigateur après la déconnection

Ecoute de l'évènement de déconnexion, et ajout d'un header Clear-Site-Data: cache

DEV : How to use a local version of this bundle

To work locally with this bundle:

  1. Create a lib subdirectory in your main project:

     mkdir lib
     cd lib
    
  2. Go in this lib directory and git clone the project:

    git clone https://gitlab.com/amalricbzh/tools-bundle.git
    
  3. Open your main project composer.json

  4. Replace amalricbzh/tools-bundle version with *@dev:
  "require": {
    ...
    "amalricbzh/tools-bundle": "*@dev",
    ...
   },
  1. Add the local path in the repositories section:
"repositories" : [
    {
      "type": "path",
      "url": "lib/ToolsBundle",
      "options": {
        "symlink": true
      }
    }
  ]
  1. Save the file and ask composer to use the local bundle. Open your application docker terminal and type:
     composer update amalricbzh/tools-bundle
    

NB : never commit these composer.json modifications !

That's all, your project now use the local bundle.

统计信息

  • 总下载量: 48
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-08-24