Sign inSign up

betapcode/php8.3-fpm-full

By betapcode

•Updated over 1 year ago

php8.3-fpm include memcached client, redis , kafka, swoole,

Image
0

75

betapcode/php8.3-fpm-full repository overview

⁠PHP 8.3 FPM Swoole Image Overview

⁠Base Image

  • PHP 8.3 FPM

⁠Installed Extensions & Tools

⁠PHP Extensions
  • opcache - PHP opcode caching
  • gd - Image processing
  • pdo - Database abstraction
  • pdo_pgsql - PostgreSQL driver
  • pdo_mysql - MySQL driver
  • mysqli - MySQL improved extension
  • zip - ZIP archive handling
  • pcntl - Process Control support
  • swoole - Async event-driven framework
  • redis - Redis client
  • rdkafka - Apache Kafka client
  • memcached - Memcached client
  • grpc - gRPC framework for RPC
⁠System Tools
  • Git
  • Curl
  • NodeJS (v20.x)
  • Supervisor
  • Composer 2.x

⁠Usage Examples

⁠Starting PHP-FPM Server
php-fpm
⁠Container Configuration

Exposed Ports 8000 (Default Swoole HTTP Server port) Working Directory /var/www/html

⁠Development Workflow
  1. Build image:
docker build -t betapcode/php8.3-fpm-full:1.0.0 .
  1. Run container:
docker run -d -p 8000:8000 -v $(pwd):/var/www/html betapcode/php8.3-fpm-full:1.0.0
  1. Install dependencies:
composer install
  1. Run PHP scripts:
php your-script.php
  1. Using with Kafka
<?php
$conf = new RdKafka\Conf();
$producer = new RdKafka\Producer($conf);
  1. Using with gRPC
<?php
$client = new YourServiceClient('localhost:50051', [
    'credentials' => Grpc\ChannelCredentials::createInsecure(),
]);
  1. Using with Memcached
<?php
$memcached = new Memcached();
$memcached->addServer('localhost', 11211);

Tag summary

Content type

Image

Digest

sha256:24ae30ac9…

Size

422.6 MB

Last updated

over 1 year ago

docker pull betapcode/php8.3-fpm-full:1.0.0