# unit-php

unit-php is a self-hosted development app. Unit-PHP provides Docker images that combine PHP with NGINX Unit, a lightweight application server, so developers can build and run PHP applications in both production and development. It is open source and self-hosted, installable on Docker Hub.

Canonical page: https://ourlocalhost.com/app/6149/unit-php

## Description

Unit-PHP provides Docker images that combine PHP with NGINX Unit, a lightweight application server, so developers can build and run PHP applications in both production and development.

## Platform availability

Available on 0 of 10 platforms.

## Health score

81/100 (Excellent), based on 4 of 4 factors.
- Maintained: 100 (last commit 18 days ago)
- Popular: 86 (20,074 GitHub stars)
- Easy to install: 25 (0 install platforms, install notes, Docker image)
- Light to run: 95 (512 MB minimum RAM, runs on ARM)

## Links

- Docker Hub: https://hub.docker.com/r/shinsenter/unit-php
- Official website: https://code.shin.company
- GitHub: https://github.com/sebastianbergmann/phpunit
- Documentation: https://github.com/nginx/unit

## Common questions

### What load-balancing consideration came up for people using Nginx Unit for PHP?

A Reddit discussion compares Unit with php-fpm and says that, if load balancing is needed, nginx may still be required in front.

### How did a PHP API latency benchmark for Nginx Unit compare with PHP-FPM?

A developer reported unexpectedly different latency results for a Symfony API in New Relic after benchmarking the two.

### What did a Unit-PHP install on Ubuntu 24.04 report about the PHP version and configuration?

A forum user reported that the install unexpectedly provided PHP 8.4 and that an older configuration file no longer worked.

---
Source: Our Local Host (https://ourlocalhost.com/app/6149/unit-php), the self-hosted and open-source app directory.
