Installation
PHPStreamServer core
The core component is required to run PHPStreamServer. It includes the core server functionality as well as the supervisor to manage worker processes.
$ composer require phpstreamserver/core
PHPStreamServer plugins
To extend the functionality of PHPStreamServer, you can install additional plugins.
Each plugin is optional, so you can choose only those that are relevant to your application.
Http Server Plugin
An asynchronous HTTP server with HTTP/2, HTTPS, static file serving, and gzip compression.
$ composer require phpstreamserver/http-server
Scheduler Plugin
A cron-like scheduler for running tasks at specified intervals.
$ composer require phpstreamserver/scheduler
Logger Plugin
A flexible logging system that supports multiple outputs, including files, stderr, syslog, and Graylog.
$ composer require phpstreamserver/logger
File Monitor Plugin
Monitors directories for changes and automatically reloads workers whenever a file is modified.
$ composer require phpstreamserver/file-monitor
Metrics Plugin
Exposes prometheus metrics to monitor server performance and collect custom application metrics.
$ composer require phpstreamserver/metrics