以前玩过 Zend 下 Expressive,现在叫 Mezzio, 刚玩了一下。 @
dvaknheo 现在 PSR 标准化后,太多的选择了,很多组件可以自己选择装配。
创建项目过程交互式,可以选择一些标准的实现。
Which container do you want to use for dependency injection?
[1] Aura.Di
[2] Pimple
[3] laminas-servicemanager
[4] Auryn
[5] Symfony DI Container
[6] PHP-DI
Make your selection or type a composer package name and version (laminas-servicemanager):
- Adding package laminas/laminas-servicemanager (^3.4)
- Copying config/container.php
Which router do you want to use?
[1] Aura.Router
[2] FastRoute
[3] laminas-router
Make your selection or type a composer package name and version (FastRoute):
- Adding package mezzio/mezzio-fastroute (^3.0.3)
- Whitelist package mezzio/mezzio-fastroute
- Copying config/routes.php
Which template engine do you want to use?
[1] Plates
[2] Twig
[3] laminas-view installs laminas-servicemanager
[n] None of the above
Make your selection or type a composer package name and version (n):
Which error handler do you want to use during development?
[1] Whoops
[n] None of the above
Make your selection or type a composer package name and version (Whoops):