php-pm / httpkernel-adapter
PHP-PM adapter for Symfony HTTPKernel.
Installs: 333 649
Dependents: 7
Suggesters: 6
Security: 0
Stars: 246
Watchers: 16
Forks: 72
Open Issues: 12
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_NAMESPACE
environment variable. Example:APP_KERNEL_NAMESPACE=Acme\MyProduct\
. This will attempt to use the classAcme\MyProduct\Kernel
as the fully qualified class name
Note: For Symfony, make sure your
AppKernel
is autoloaded in yourcomposer.json
(shouldn't be an issue for projects created using the Standard Edition after November 2015):{ "autoload": { "classmap": ["app/AppKernel.php"] } }