Skip to main content

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

Read more

Scheduler Plugin

A cron-like scheduler for running tasks at specified intervals.

$ composer require phpstreamserver/scheduler

Read more

Logger Plugin

A flexible logging system that supports multiple outputs, including files, stderr, syslog, and Graylog.

$ composer require phpstreamserver/logger

Read more

File Monitor Plugin

Monitors directories for changes and automatically reloads workers whenever a file is modified.

$ composer require phpstreamserver/file-monitor

Read more

Metrics Plugin

Exposes prometheus metrics to monitor server performance and collect custom application metrics.

$ composer require phpstreamserver/metrics

Read more