container-interop/service-provider
Composer 安装命令:
composer require container-interop/service-provider
包简介
Promoting container interoperability through standard service providers
README 文档
README
This project attempts to define a common standard for service providers, aka "bundles" or "modules" in various frameworks.
Service providers are classes that provide service definitions to a PSR-11 container.
The PSR depends on the PSR-11 Container Interface. Service providers operate on PSR-11 compatible containers.
⚠️ Work in progress
the project is currently experimental and is being tried in frameworks, containers and modules until considered viable. Until a 1.0.0 release, the code in this repository is not stable. Expect breaking changes between versions such as
0.1.xand0.2.0.
👉 Refer to the current PSR draft for the PSR proposal itself.
🧐 Refer to the PSR meta document for the history and reasoning behind this proposal.
💬 Join us to review open issues or participate in ongoing discussions.
Compatible projects
Projects consuming v0.4 service providers
- Laravel service provider bridge: Use container-interop's service-providers into any Laravel application.
- Simplex: A Pimple 3 fork with full container-interop compliance and cross-framework service-provider support.
- Service provider bridge bundle: Use container-interop's service-providers into a Symfony container.
- Yaco: A compiler that generates container-interop compliant containers. Yaco can consume service-providers.
Packages providing v0.4 service providers
- DBAL Module: A module integrating Doctrine DBAL in an application using a service provider.
- Doctrine Annotations Module: A service provider for Doctrine's annotation reader.
- Glide Module: A module integrating Glide in an application using a service provider.
- PSR-6 to Doctrine cache bridge module: A service provider providing a Doctrine cache provider wrapping a PSR-6 cache pool.
- Slim-framework Module: A module integrating Slim framework v3 using a service provider.
- Stash Module: A service provider for the Stash PSR-6 caching library.
- Stratigility Module: A service provider for the Stratigility PSR-7 middleware.
- Twig Module: A service provider for the Twig templating library.
- Whoops PSR-7 Middleware Module: a service provider for the Whoops PSR-7 middleware.
container-interop/service-provider 适用场景与选型建议
container-interop/service-provider 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 425.74k 次下载、GitHub Stars 达 71, 最近一次更新时间为 2016 年 02 月 13 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 container-interop/service-provider 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 container-interop/service-provider 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 425.74k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 72
- 点击次数: 28
- 依赖项目数: 92
- 推荐数: 2
其他信息
- 授权协议: MIT
- 更新时间: 2016-02-13