Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/codecasts/php-alpine
PHP APK Repository for Alpine Linux
https://github.com/codecasts/php-alpine
alpine docker dockerfiles php php-versions
Last synced: 3 months ago
JSON representation
PHP APK Repository for Alpine Linux
- Host: GitHub
- URL: https://github.com/codecasts/php-alpine
- Owner: codecasts
- Created: 2017-02-27T23:19:54.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-02-13T16:03:33.000Z (over 1 year ago)
- Last Synced: 2024-05-15T13:41:38.833Z (6 months ago)
- Topics: alpine, docker, dockerfiles, php, php-versions
- Language: Shell
- Homepage: https://github.com/codecasts/php-alpine
- Size: 9.25 MB
- Stars: 485
- Watchers: 18
- Forks: 58
- Open Issues: 28
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
## PHP-ALPINE: Fresh PHP binaries APK repository for Alpine Linux.
**Currently Supporting PHP 8.1**, also, PHP 8.0 and PHP 7.4.
This project provides a simple alternative for running updated PHP binaries on Alpine Linux.
We pack and release PHP versions as soon they are available on http://php.net. (At least, we try to.)
Additionally, many PECL extensions are also available as packages as well.#### Created by:
- Diego Hernandes - **[@hernandev](https://github.com/hernandev)**
#### Support, Help and Faith:
- Ueli Banholzer - **[@xarem](https://github.com/xarem)**
- whatwedo GmbH - **[@whatwedo](https://github.com/whatwedo)**
- individual [contributors](https://github.com/codecasts/php-alpine/graphs/contributors)#### Main Related Projects:
- **[Ambientum](https://github.com/ambientum/ambientum)** by [@hernandev](https://github.com/hernandev)
Docker native solution for running Laravel projects. From Development to Production.- **[DDE](https://github.com/whatwedo/dde)** by [@whatwedo](https://github.com/whatwedo)
Local development environment toolset based on Docker---
## APK Repositories & Release Cycle
### PHP 8.1
| Alpine | PHP | Repository URL
| - | - | -
| ![Alpine 3.15](https://img.shields.io/badge/Alpine-v3.15-blue?style=flat-square) | ![PHP 8.1](https://img.shields.io/badge/PHP-8.1-blueviolet?style=flat-square) | [`php.hernandev.com/v3.15/php-8.1`](https://php.hernandev.com/v3.15/php-8.1)
| ![Alpine 3.14](https://img.shields.io/badge/Alpine-v3.14-blue?style=flat-square) | ![PHP 8.1](https://img.shields.io/badge/PHP-8.1-blueviolet?style=flat-square) | [`php.hernandev.com/v3.14/php-8.1`](https://php.hernandev.com/v3.14/php-8.1)
| ![Alpine 3.13](https://img.shields.io/badge/Alpine-v3.13-blue?style=flat-square) | ![PHP 8.1](https://img.shields.io/badge/PHP-8.1-blueviolet?style=flat-square) | [`php.hernandev.com/v3.13/php-8.1`](https://php.hernandev.com/v3.13/php-8.1)
| ![Alpine 3.12](https://img.shields.io/badge/Alpine-v3.12-blue?style=flat-square) | ![PHP 8.1](https://img.shields.io/badge/PHP-8.1-blueviolet?style=flat-square) | [`php.hernandev.com/v3.12/php-8.1`](https://php.hernandev.com/v3.12/php-8.1)### PHP 8.0
| Alpine | PHP | End of Support | Repository URL
| - | - | - | -
| ![Alpine 3.12](https://img.shields.io/badge/Alpine-v3.12-blue?style=flat-square) | ![PHP 8.0](https://img.shields.io/badge/PHP-8.0-blueviolet?style=flat-square) | ![EOS](https://img.shields.io/badge/EOS-2022--05--01-success?style=flat-square) | [`php.hernandev.com/v3.12/php-8.0`](https://php.hernandev.com/v3.12/php-8.0)
| ![Alpine 3.11](https://img.shields.io/badge/Alpine-v3.11-blue?style=flat-square) | ![PHP 8.0](https://img.shields.io/badge/PHP-8.0-blueviolet?style=flat-square) | ![EOS](https://img.shields.io/badge/EOS-2021--11--01-success?style=flat-square) | [`php.hernandev.com/v3.11/php-8.0`](https://php.hernandev.com/v3.11/php-8.0)### PHP 7.4
| Alpine | PHP | End of Support | Repository URL
| - | - | - | -
| ![Alpine 3.12](https://img.shields.io/badge/Alpine-v3.12-blue?style=flat-square) | ![PHP 7.4](https://img.shields.io/badge/PHP-7.4-blueviolet?style=flat-square) | ![EOS](https://img.shields.io/badge/EOS-2021--11--01-success?style=flat-square) | [`php.hernandev.com/v3.11/php-7.4`](https://php.hernandev.com/v3.11/php-7.4)
| ![Alpine 3.10](https://img.shields.io/badge/Alpine-v3.10-blue?style=flat-square) | ![PHP 7.4](https://img.shields.io/badge/PHP-7.4-blueviolet?style=flat-square) | ![EOS](https://img.shields.io/badge/EOS-2021--11--01-success?style=flat-square) | [`php.hernandev.com/v3.10/php-7.4`](https://php.hernandev.com/v3.10/php-7.4)### PHP 7.3
| Alpine | PHP | End of Support | Repository URL
| - | - | - | -
| ![Alpine 3.11](https://img.shields.io/badge/Alpine-v3.11-blue?style=flat-square) | ![PHP 7.3](https://img.shields.io/badge/PHP-7.3-blueviolet?style=flat-square) | ![EOS](https://img.shields.io/badge/EOS-2021--05--01-success?style=flat-square) | [`php.hernandev.com/v3.11/php-7.3`](https://php.hernandev.com/v3.11/php-7.3)
| ![Alpine 3.10](https://img.shields.io/badge/Alpine-v3.10-blue?style=flat-square) | ![PHP 7.3](https://img.shields.io/badge/PHP-7.3-blueviolet?style=flat-square) | ![EOS](https://img.shields.io/badge/EOS-2020--12--06-red?style=flat-square) | [`php.hernandev.com/v3.10/php-7.3`](https://php.hernandev.com/v3.10/php-7.3)Builds are available as soon as possible, and EOS is determined by:
- If either PHP or Alpine release reaches end of support, the repository will stop receiving updates.
- Support for both PHP and Alpine are estimated for around 2 years from release date.Active support reference:
- PHP: https://www.php.net/supported-versions.php
- Alpine: https://wiki.alpinelinux.org/wiki/Alpine_Linux:Releases> Replace examples below with desired Alpine and PHP versions.
## Snippets
The following code snippets are intended for quick usage on either shell scripts or Dockerfile
> Notice that `main` and `community` official repositories must be enabled.
### Dockerfile
You may skip the ca-certificates part if you replace HTTPS by HTTP but you should not. PHP packages will eventually install ca-certificates anyway.
```dockerfile
FROM alpine:3.11ADD https://php.hernandev.com/key/php-alpine.rsa.pub /etc/apk/keys/php-alpine.rsa.pub
RUN apk --update-cache add ca-certificates && \
echo "https://php.hernandev.com/v3.11/php-7.4" >> /etc/apk/repositories# install php and some extensions
RUN apk add --update-cache \
php \
php-bz2 \
php-json \
php-mysql \
php-any-other-available-package...
```## Available Packages
This is the complete available packages list:
| Package Name | Type |
| - | - |
| `php` | PHP Core |
| `php-common` | PHP Core |
| `php-fpm` | PHP Core |
| `php-cgi` | PHP Core |
| `php-apache2` | PHP Core |
| `php-doc` | PHP Core |
| `php-dev` | PHP Core |
| - | |
| `php-sodium` | Core Extension |
| `php-bcmath` | Core Extension |
| `php-bz2` | Core Extension |
| `php-calendar` | Core Extension |
| `php-ctype` | Core Extension |
| `php-curl` | Core Extension |
| `php-dba` | Core Extension |
| `php-dom` | Core Extension |
| `php-embed` | Core Extension |
| `php-enchant` | Core Extension |
| `php-exif` | Core Extension |
| `php-ftp` | Core Extension |
| `php-gd` | Core Extension |
| `php-gettext` | Core Extension |
| `php-gmp` | Core Extension |
| `php-iconv` | Core Extension |
| `php-imap` | Core Extension |
| `php-intl` | Core Extension |
| `php-json` | Core Extension |
| `php-ldap` | Core Extension |
| `php-litespeed` | Core Extension |
| `php-mbstring` | Core Extension |
| `php-mcrypt` | Core Extension |
| `php-mysqli` | Core Extension |
| `php-mysqlnd` | Core Extension |
| `php-odbc` | Core Extension |
| `php-opcache` | Core Extension |
| `php-openssl` | Core Extension |
| `php-pcntl` | Core Extension |
| `php-pdo` | Core Extension |
| `php-pdo_dblib` | Core Extension |
| `php-pdo_mysql` | Core Extension |
| `php-pdo_pgsql` | Core Extension |
| `php-pdo_sqlite` | Core Extension |
| `php-pear` | Core Extension |
| `php-pgsql` | Core Extension |
| `php-phar` | Core Extension |
| `php-phpdbg` | Core Extension |
| `php-posix` | Core Extension |
| `php-pspell` | Core Extension |
| `php-session` | Core Extension |
| `php-shmop` | Core Extension |
| `php-snmp` | Core Extension |
| `php-soap` | Core Extension |
| `php-sockets` | Core Extension |
| `php-sqlite3` | Core Extension |
| `php-sysvmsg` | Core Extension |
| `php-sysvsem` | Core Extension |
| `php-tidy` | Core Extension |
| `php-wddx` | Core Extension |
| `php-xml` | Core Extension |
| `php-xmlreader` | Core Extension |
| `php-xmlrpc` | Core Extension |
| `php-xsl` | Core Extension |
| `php-zip` | Core Extension |
| `php-zlib` | Core Extension |
| - | |
| `php-amqp` | Extra Extension |
| `php-apcu` | Extra Extension |
| `php-ast` | Extra Extension |
| `php-ds` | Extra Extension |
| `php-imagick` | Extra Extension |
| `php-mailparse` | Extra Extension |
| `php-memcached` | Extra Extension |
| `php-mongodb` | Extra Extension |
| `php-msgpack` | Extra Extension |
| `php-pcov` | Extra Extension |
| `php-phalcon` | Extra Extension |
| `php-psr` | Extra Extension |
| `php-redis` | Extra Extension |
| `php-ssh2` | Extra Extension |
| `php-swoole` | Extra Extension |
| `php-timecop` | Extra Extension |
| `php-libsodium` | Extra Extension |
| `php-scalar_objects` | Extra Extension |
| `php-secp256k1` | Extra Extension |
| `php-xdebug` | Extra Extension |
| - | |
| `argon2` | Extra Package |
| `argon2-dev` | Extra Package |
| `enchant` | Extra Package |
| `enchant-doc` | Extra Package |
| `enchant-dev` | Extra Package |
| `libargon2` | Extra Package |
| `libsecp256k1` | Extra Package |> Life's good!