Statix Server is an Object-oriented Wrapper for PHP’s Built-in Server
Statix Server is an object-oriented wrapper around PHP’s built-in server. Once you install the composer package, getting started is as minimal as the following:
The server class has an array-based configuration of options, or you can use the class’ fluent API:
8 'APP_DYNAMIC_ENV' => 'server'
It also supports use-cases like capturing server output, running in the background and programmatically stopping the server.
You can learn about this package, get full installation instructions, and view the source code on GitHub. This package uses PestPHP if you want to see an example in the wild of using Pest for testing!
Credit: Source link