The package helps running applications on the PHP development server. As a developer, you can use the package to develop and test various functions within the application. It also accepts two additional options. You can use the host for changing application’s address and port.
Make sure that your server is configured with following PHP version and extensions:
- PHP 8.0+
- Spiral framework 2.9+
You can install the package via composer:
composer require spiral-packages/simple-php-server
After package install you need to register bootloader from the package.
protected const LOAD = [
// ...
\Spiral\SimpleServer\Bootloader\SimpleServerBootloader::class,
];
Note: if you are using
spiral-packages/discoverer
, you don't need to register bootloader by yourself.
php app.php serve
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.