Sign inSign up

morsalin1342/php

By morsalin1342

•Updated 26 days ago

Production-ready PHP-FPM & CLI images: 57 extensions, Composer, WP-CLI, Node.js. PHP 8.2-8.5

Image
Languages & frameworks
Developer tools
0

3.5K

morsalin1342/php repository overview

⁠PHP — Production-Ready FPM & CLI Images with Essential Extensions

Maintained by morsalin1342⁠ · GitHub⁠

Docker Pulls Image Size GitHub Stars License

Batteries-included PHP images with 57 extensions, Composer, WP-CLI, and configurable Node.js. Available in FPM (web) and CLI (tasks/CI) variants.

⁠✨ Why This Image?

FeatureOfficial imageThis image
PHP extensionsFew built in✅ 57 pre-installed
Composer / WP-CLI❌✅ Both
Node.js❌✅ v24, configurable
Supervisor + Cron❌✅ In the FPM images
Debian releasesOne✅ bookworm and trixie
VariantsSeparate images✅ FPM and CLI from one build

⁠Quick Start

⁠Web Applications (FPM + Nginx)
# docker-compose.yml
services:
  php:
    image: morsalin1342/php:8.4-fpm
    volumes:
      - ./src:/var/www/html

  nginx:
    image: nginx:alpine
    ports:
      - "8080:80"
    volumes:
      - ./src:/var/www/html
      - ./nginx.conf:/etc/nginx/conf.d/default.conf
⁠CLI Tasks
docker run --rm -v $(pwd):/app morsalin1342/php:8.4-cli composer install
docker run --rm -v $(pwd):/app morsalin1342/php:8.4-cli php artisan migrate

⁠Available Tags

TagVariantPHPBase OS
latest-fpm, 8.5-fpm, 8.5-fpm-bookwormFPM8.5bookworm
latest-cli, 8.5-cli, 8.5-cli-bookwormCLI8.5bookworm
8.4-fpm, 8.4-fpm-bookwormFPM8.4bookworm
8.4-cli, 8.4-cli-bookwormCLI8.4bookworm
8.3-fpm, 8.3-cliBoth8.3bookworm
8.2-fpm, 8.2-cliBoth8.2bookworm
8.5-fpm-trixie … 8.2-cli-trixieBoth8.2–8.5trixie

bookworm owns the unsuffixed tags; append -trixie for Debian 13.

⁠What's Included

  • 57 PHP extensions — Redis, MongoDB, PostgreSQL (pgsql + pdo_pgsql), Imagick, GD, Intl, AMQP, Kafka, OpenTelemetry, openswoole, ftp and more
  • Tools — Composer, WP-CLI, Node.js 24, Supervisor, Cron, FFmpeg
  • Two variants — -fpm for web behind nginx or Caddy, -cli for tasks, migrations and CI
  • Two Debian releases — bookworm and trixie, from the same build

⁠Customizing

docker build . \
  --build-arg PHP_VERSION=8.4 \
  --build-arg IMAGE_TYPE=fpm \
  --build-arg NODE_VERSION=22 \
  -t my-php:8.4-fpm

⁠❓ FAQ

Q: FPM or CLI? A: FPM for web behind nginx or Caddy; CLI for migrations, queues and CI.

Q: Can I add extensions? A: Yes — RUN install-php-extensions <name> in a layer on top.

Q: bookworm or trixie? A: Unsuffixed tags are bookworm. Append -trixie for Debian 13.


Image / ToolDescription
morsalin1342/caddy⁠Standalone Caddy with WAF, rate limiting & caching
morsalin1342/frankenphp⁠Caddy + PHP app server in one container
morsalin1342/nginx⁠nginx with ModSecurity 3, Brotli, zstd & GeoIP2
easydigital/php⁠Enterprise org mirror

⭐ If this image helps you, consider giving it a star on GitHub⁠!

Tag summary

Content type

Image

Digest

sha256:7b0e576cd…

Size

485.5 MB

Last updated

26 days ago

docker pull morsalin1342/php:8.3-cli