You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PHPStreamServer is a high-performance, event-loop-based application server and supervisor for PHP, written in PHP.
12
8
Built on top of the [AMPHP](https://amphp.org/) ecosystem and powered by the [Revolt](https://revolt.run/) event loop,
13
-
PHPStreamServer brings asynchronous capabilities that empower the development of efficient and scalable PHP applications.
14
-
PHPStreamServer ships with a collection of plugins, making it highly extensible.
15
-
With the power of plugins, PHPStreamServer can replace traditional setups such as nginx, php-fpm, cron, and supervisor.
16
-
By centralizing these functionalities into a single application server, it reduces complexity and simplifies application deployment.
17
-
Being written in PHP, it only requires PHP to run—no additional dependencies are needed.
18
-
Applications run in an always-loaded, in-memory model, which significantly improves performance by eliminating the overhead of repeated
9
+
PHPStreamServer brings asynchronous capabilities that enable the development of efficient and scalable PHP applications.
10
+
PHPStreamServer includes a collection of plugins, making it highly extensible.
11
+
With these plugins, PHPStreamServer can replace traditional server stacks, such as the combination of Nginx with PHP-FPM, along with Cron and Supervisor.
12
+
By centralizing these functionalities into a single application server, PHPStreamServer reduces complexity and simplifies application deployment.
13
+
Written in PHP, it requires only PHP to run—no additional dependencies are needed.
14
+
Applications run in an always-loaded, in-memory model, significantly improving performance by eliminating the overhead of repeated
19
15
loading and initialization.
20
16
21
-
## Requirements and limitations:
22
-
- Unix based OS (no windows support);
23
-
-*php-posix* and *php-pcntl* extensions;
24
-
-*php-uv* extension is recommended for high-load environments.
25
-
26
-
## Features
27
-
28
-
### Supervisor
29
-
- Restart workers when memory usage exceeds a defined threshold.
30
-
- Restart workers after a specified uptime.
31
-
- Restart workers in case of exceptions.
32
-
- Supports supervising external processes.
33
-
34
-
### HTTP Server
35
-
- Asynchronous HTTP server with HTTP/2 and HTTPS support.
36
-
- Gzip compression.
37
-
- Serve static files from specified directories.
38
-
- Middleware support.
39
-
40
-
### Scheduler
41
-
- Support cron like syntax for define schedules.
42
-
- Support relative syntax as supported by \DateInterval.
43
-
44
-
### Logger
45
-
- Channel-based and severity-based log routing.
46
-
- Save logs to files with rotation and compression.
47
-
- Stdout or stderr logging.
48
-
- Configurable formatters.
49
-
- Syslog.
50
-
- Graylog (GELF).
51
-
52
-
### File Monitor
53
-
- Monitors directories and automatically restart workers whenever files change.
54
-
55
-
### Metrics
56
-
- Exposes a prometheus metrics endpoint for monitoring and observability.
57
-
- Provides default metrics for monitoring server performance.
58
-
- Allows to define custom metrics for application-specific monitoring.
17
+
## Requirements and Limitations:
18
+
- Unix-based operating system
19
+
-**PHP 8.2** or higher
20
+
-**php-posix** and **php-pcntl** extensions
21
+
-**php-uv** extension (recommended for high-load environments)
0 commit comments