php-pm / httpkernel-adapter
PHP-PM adapter for Symfony HTTPKernel.
Installs: 351 010
Dependents: 7
Suggesters: 6
Security: 0
Stars: 248
Watchers: 15
Forks: 70
Open Issues: 12
pkg:composer/php-pm/httpkernel-adapter
Requires
- guzzlehttp/psr7: ^1.5|^2.0
- php-pm/php-pm: ^2.0
- symfony/http-foundation: ^4.2.12|^5.0.4|^6.0
- symfony/http-kernel: ^4.0|^5.1.5|^6.0
Requires (Dev)
- doctrine/annotations: ^1.6
- phpunit/phpunit: ^9.5
- symfony/framework-bundle: ^4.1.12|^5.0|^6.0
- symfony/yaml: ^4.0|^5.0|^6.0
README
HttpKernel adapter for use of Symfony and Laravel frameworks with PHP-PM. See https://github.com/php-pm/php-pm.
Setup
-
Install PHP-PM
composer require php-pm/php-pm -
Install HttpKernel Adapter
composer require php-pm/httpkernel-adapter -
Optionally provide the namespace of your Kernel using the
APP_KERNEL_NAMESPACEenvironment variable. Example:APP_KERNEL_NAMESPACE=Acme\MyProduct\. This will attempt to use the classAcme\MyProduct\Kernelas the fully qualified class name
Note: For Symfony, make sure your
AppKernelis autoloaded in yourcomposer.json(shouldn't be an issue for projects created using the Standard Edition after November 2015):{ "autoload": { "classmap": ["app/AppKernel.php"] } }