ipfwd/php-extended

By ipfwd

Updated about 6 hours ago

PHP and Development Tools

Image
Languages & frameworks
Developer tools
Web servers
2

100K+

ipfwd/php-extended repository overview

Github

https://github.com/ipfwd/php-extended

Docker Image with PHP and Development Tools

This repository contains a Docker image with PHP and pre-installed extensions and development tools. This image is designed to provide a comprehensive development environment for PHP projects.

Features

  • PHP version: 8.4 (can be customized via build argument)
  • Comprehensive set of PHP extensions (customizable via build argument)
  • Essential development tools pre-installed (customizable via build argument)
  • Optimized for performance and development

Build Arguments

  • PHP_VERSION: The version of PHP to install (default: "8.4").
  • PHP_EXTENSIONS: A space-separated list of PHP extensions to install.
  • ADVANCED_TOOLS: A space-separated list of additional tools and libraries to install.
  • COMPOSER_SETUP_HASH: SHA-384 hash of the Composer setup file to verify integrity.

Usage

To build the Docker image, use the following command:

docker build -t ipfwd/php-extended .

To run a container from the image, use the following command:

docker run -it --rm ipfwd/php-extended

Installed PHP Extensions

The following PHP extensions are pre-installed in the Docker image:

ExtensionDescription
memcacheHigh-performance, distributed memory object caching system
redisExtension for Redis key-value store
mongodbMongoDB driver
inotifyInotify extension for file system event monitoring
dsData structures for PHP
protobufProtocol Buffers
grpcgRPC extension
imapIMAP library
astAbstract Syntax Tree
xhprofHierarchical Profiler
opentelemetryOpenTelemetry tracing
gdImage processing
gmpGNU Multiple Precision Arithmetic Library
pdo_pgsqlPDO driver for PostgreSQL
pgsqlPostgreSQL driver
exifExchangeable image file format (Exif) reader
socketsSockets extension
bcmathArbitrary precision mathematics
opcacheZend Opcache
zipZIP archives
pcntlProcess Control
intlInternationalization
xslXSL transformation
xdebugDebugger and profiler

Installed Development Tools

The following development tools are pre-installed in the Docker image:

ToolDescription
ComposerDependency Manager for PHP
GitVersion control system
ImagemagickImage processing tools
GhostscriptInterpreter for PostScript and PDF
PostgreSQLPostgreSQL client
OpenSSHSecure Shell (SSH) client
MCMidnight Commander file manager
jqLightweight and flexible command-line JSON processor
PHP_CodeSnifferPHP coding standards enforcement
PHP_CodeBeautifierPHP code beautifier
PHPDocumentorDocumentation generator for PHP
PhanStatic analyzer for PHP
RectorInstant upgrades and refactoring of PHP code

Examples of Using the Image for Development

To run a PHP script located on your host machine:

docker run -it --rm -v $(pwd):/app ipfwd/php-extended php your-script.php

To start an interactive shell within the container for development:

docker run -it --rm -v $(pwd):/app --entrypoint=bash ipfwd/php-extended

To run Composer commands within the container:

docker run -it --rm -v $(pwd):/app --entrypoint=composer ipfwd/php-extended install

License

This project is licensed under the MIT License. See the LICENSE file for details.

Tag summary

Content type

Image

Digest

sha256:662276a81

Size

63.1 MB

Last updated

about 6 hours ago

docker pull ipfwd/php-extended:8.5-fpm-bookworm-slim