Skip to content

Commit 56b21ab

Browse files
committed
docs: ✏️ update README for PHP-FPM Docker image
- Corrected the title to "PHP-FPM Docker Image" - Enhanced the features section for clarity - Updated version notice to reflect PHP 8.4 - Improved usage example and links section
1 parent 8d13f5a commit 56b21ab

1 file changed

Lines changed: 52 additions & 20 deletions

File tree

README.md

Lines changed: 52 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,61 @@
1-
# PHP-fpm
1+
# PHP-FPM Docker Image
2+
23
[![Docker Image CI](https://github.com/svasek/docker-php-fpm/actions/workflows/docker-image.yml/badge.svg)](https://github.com/svasek/docker-php-fpm/actions/workflows/docker-image.yml)
34
[![Docker Stars](https://img.shields.io/docker/stars/svasek/php-fpm.svg)](https://hub.docker.com/r/svasek/php-fpm)
45
[![Docker Pulls](https://img.shields.io/docker/pulls/svasek/php-fpm.svg)](https://hub.docker.com/r/svasek/php-fpm)
5-
[![](https://images.microbadger.com/badges/image/svasek/php-fpm.svg)](https://microbadger.com/images/svasek/php-fpm "Get your own image badge on microbadger.com")
6-
[![](https://images.microbadger.com/badges/version/svasek/php-fpm.svg)](https://microbadger.com/images/svasek/php-fpm "Get your own version badge on microbadger.com")
6+
[![](https://images.microbadger.com/badges/image/svasek/php-fpm.svg)](https://microbadger.com/images/svasek/php-fpm)
7+
[![](https://images.microbadger.com/badges/version/svasek/php-fpm.svg)](https://microbadger.com/images/svasek/php-fpm)
8+
9+
A lightweight **PHP-FPM** Docker image based on the official `php:fpm-alpine` image.
10+
11+
---
12+
13+
## Features
14+
15+
- 🕑 **Timezone support**
16+
Simply set the timezone by defining the `TZ` environment variable, e.g.:
17+
18+
```bash
19+
TZ=Europe/Prague
20+
```
21+
22+
- 📦 **Pre-installed PHP extensions**
23+
Commonly needed extensions are already installed:
24+
- `curl`
25+
- `gd`
26+
- `mysqli`
27+
- `opcache`
28+
- `pdo`, `pdo_mysql`
29+
- `gettext`
30+
- `exif`
31+
- `sockets`
32+
- `zip`
33+
34+
---
35+
36+
## ⚠️ Version Notice
37+
38+
- The `latest` and `8` tags now point to **PHP 8.4**.
39+
- The `latest` tag was moved from **7.4** to **8.2**, since PHP 7.4 has reached end of life.
40+
- If you still need PHP **7.4**, please use the `7` or `7.4` tag explicitly.
41+
42+
---
43+
44+
## Usage Example
45+
46+
```bash
47+
docker run -e TZ=Europe/Prague svasek/php-fpm:latest
48+
```
749

8-
Docker image based on official "fpm-alpine" PHP image.
50+
---
951

10-
## Added image functions ##
11-
* support for timezones: To set timezone just set environment variable like "TZ=Europe/Prague"
52+
## Links
1253

54+
- 📄 [Docker Hub](https://hub.docker.com/r/svasek/php-fpm)
55+
- 🐙 [GitHub Repository](https://github.com/svasek/docker-php-fpm)
1356

14-
## WARNING:
15-
* The tag `latest` and `8` has been moved to the PHP `8.4`.
16-
* The tag `latest` has been moved from branch `7.4` to `8.2` as PHP 7.4 reached end of life.
17-
* If you want to continue using PHP in version 7.4 please use tag `7` or `7.4` instead.
57+
---
1858

59+
## ✅ Tip
1960

20-
## Added PHP Extensions ##
21-
* curl
22-
* gd
23-
* mysqli
24-
* opcache
25-
* pdo, pdo_mysql
26-
* gettext
27-
* exif
28-
* sockets
29-
* zip
61+
Keep your `docker-compose.yml` or CI/CD pipeline up to date with the desired PHP version tag to avoid unexpected upgrades.

0 commit comments

Comments
 (0)