Skip to content

bakins/php-app-server

Repository files navigation

php-app-server

Example of running a PHP app.

Components

See docker-compose.yaml for the containers.

  • frontend - HTTP server that forwards application requests to php using fastcgi.
  • phpfpm - Handles running the php application using php-fpm. The php application is in example. App is written using twirphp
  • statsd - stastd_exporter - the php app uses statsd to record metrics.
  • otel - opentelemetry-collector - accepts traces from the php and Go processes. Accepts metrics from Go. Scrapes the statsd_exporter prometheus metrics.

Everything logs to stdout/stderr.

TODO

  • simple sqlite interaction
  • sqlite replication using litestream
  • HTTP/1 -> 2 proxy example.
  • general code cleanup. This was written hastily to play with a few ideas.

About

Example PHP Twirp application.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published