Skip to content

spiral-packages/simple-php-server

Repository files navigation

Simple PHP web server for Spiral Framework

PHP Version Require Latest Stable Version psalm Codecov Total Downloads

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.

Requirements

Make sure that your server is configured with following PHP version and extensions:

  • PHP 8.0+
  • Spiral framework 2.9+

Installation

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.

Starting a server

php app.php serve

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.