Download the PHP package hyperf/pimple without Composer
On this page you can find all versions of the php package hyperf/pimple. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download hyperf/pimple
More information about hyperf/pimple
Files in hyperf/pimple
Download hyperf/pimple
More information about hyperf/pimple
Files in hyperf/pimple
Please rate this library. Is it a good library?
Informations about the package pimple
Pimple Container
hyperf/pimple
是基于 pimple/pimple
实现的轻量级符合 PSR11 规范
的容器组件。可以减少其他框架使用 Hyperf 组件时的成本。
安装
使用
EasySwoole
接入 hyperf/translation
因为 EasySwoole
的容器组件暂时并没有实现 PSR11
规范,所以无法直接使用。
-
首先引入相关组件
-
添加 国际化相关的 Provider
EasySwoole
事件注册器在EasySwooleEvent.php
中,所以我们需要在initialize()
中初始化我们的容器和国际化组件。
以下 Config 组件,可以自行封装,这里方便起见直接配置。
-
修改控制器,使用国际化组件
-
添加国际化配置
- 测试
All versions of pimple with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.0
hyperf/context Version ^3.0
hyperf/contract Version ^3.0
pimple/pimple Version ^3.3
hyperf/context Version ^3.0
hyperf/contract Version ^3.0
pimple/pimple Version ^3.3
The package hyperf/pimple contains the following files
Loading the files please wait ....