jmikola/insecure-routes-bundle
Composer 安装命令:
composer require jmikola/insecure-routes-bundle
包简介
Removes HTTPS scheme requirements from routes in your Symfony2 app (for dev/test environments).
README 文档
README
This bundle removes HTTPS schema requirements from all routes in your Symfony2
application, and is especially helpful if your dev or test environments are
not configured with SSL and you would like to avoid maintaining a separate copy
of your routing configuration with HTTPS requirements removed.
You probabably should not use this bundle in your prod environment.
Compatibility
This bundle's master branch maintains compatibility with Symfony2's master
branch. The sf-2.0 branch of this bundle maintains compatibility with
Symfony 2.0. You may use the following tags for this bundle:
- 3.0.x tracks the
masterbranch. - 2.0.x tracks the
sf-2.0branch.
Installation
Add JmikolaInsecureRoutesBundle to the registerBundles() method of your
application kernel. Like WebProfilerBundle, this bundle should only be enabled
for your dev and test environments:
# app/AppKernel.php public function registerBundles() { if (in_array($this->getEnvironment(), array('dev', 'test'))) { $bundles[] = new Jmikola\InsecureRoutesBundle\JmikolaInsecureRoutesBundle(); } }
Configuration
There are no configuration options. Symfony2 will load the bundle's dependency injection extension automatically.
The extension will create a service that composes the existing
routing.loader service and assumes its service ID. Whenever a RouteCollection
is loaded, any HTTPS _scheme requirements among its routes will then be
removed. The filtering process is very similar to that of FrameworkBundle's
DelegatingLoader, which resolves short notation for _controller defaults.
jmikola/insecure-routes-bundle 适用场景与选型建议
jmikola/insecure-routes-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 10.89k 次下载、GitHub Stars 达 13, 最近一次更新时间为 2012 年 02 月 14 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「routing」 「security」 「https」 「routes」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 jmikola/insecure-routes-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 jmikola/insecure-routes-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 jmikola/insecure-routes-bundle 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A Laravel artisan based package to create the AWS (SES + SNS) infrastructure to receive email event notifications with Http/Https endpoint.
Provide a way to secure accesses to all routes of an symfony application.
Write down your routing mapping at one place
URL routing framework and requests/responses handler for PHP
It's a barebone security class written on PHP
Flight routing is a simple, fast PHP router that is easy to get integrated with other routers.
统计信息
- 总下载量: 10.89k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 14
- 点击次数: 26
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2012-02-14