Skip to content

Repository files navigation

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:

Support, Help and Faith:

Main Related Projects:

  • Ambientum by @hernandev Docker native solution for running Laravel projects. From Development to Production.

  • DDE by @whatwedo Local development environment toolset based on Docker


APK Repositories & Release Cycle

PHP 8.1

AlpinePHPRepository URL
Alpine 3.15PHP 8.1php.hernandev.com/v3.15/php-8.1
Alpine 3.14PHP 8.1php.hernandev.com/v3.14/php-8.1
Alpine 3.13PHP 8.1php.hernandev.com/v3.13/php-8.1
Alpine 3.12PHP 8.1php.hernandev.com/v3.12/php-8.1

PHP 8.0

AlpinePHPEnd of SupportRepository URL
Alpine 3.12PHP 8.0EOSphp.hernandev.com/v3.12/php-8.0
Alpine 3.11PHP 8.0EOSphp.hernandev.com/v3.11/php-8.0

PHP 7.4

AlpinePHPEnd of SupportRepository URL
Alpine 3.12PHP 7.4EOSphp.hernandev.com/v3.11/php-7.4
Alpine 3.10PHP 7.4EOSphp.hernandev.com/v3.10/php-7.4

PHP 7.3

AlpinePHPEnd of SupportRepository URL
Alpine 3.11PHP 7.3EOSphp.hernandev.com/v3.11/php-7.3
Alpine 3.10PHP 7.3EOSphp.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:

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.

FROM alpine:3.11
ADD 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 extensionsRUN 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 NameType
phpPHP Core
php-commonPHP Core
php-fpmPHP Core
php-cgiPHP Core
php-apache2PHP Core
php-docPHP Core
php-devPHP Core
-
php-sodiumCore Extension
php-bcmathCore Extension
php-bz2Core Extension
php-calendarCore Extension
php-ctypeCore Extension
php-curlCore Extension
php-dbaCore Extension
php-domCore Extension
php-embedCore Extension
php-enchantCore Extension
php-exifCore Extension
php-ftpCore Extension
php-gdCore Extension
php-gettextCore Extension
php-gmpCore Extension
php-iconvCore Extension
php-imapCore Extension
php-intlCore Extension
php-jsonCore Extension
php-ldapCore Extension
php-litespeedCore Extension
php-mbstringCore Extension
php-mcryptCore Extension
php-mysqliCore Extension
php-mysqlndCore Extension
php-odbcCore Extension
php-opcacheCore Extension
php-opensslCore Extension
php-pcntlCore Extension
php-pdoCore Extension
php-pdo_dblibCore Extension
php-pdo_mysqlCore Extension
php-pdo_pgsqlCore Extension
php-pdo_sqliteCore Extension
php-pearCore Extension
php-pgsqlCore Extension
php-pharCore Extension
php-phpdbgCore Extension
php-posixCore Extension
php-pspellCore Extension
php-sessionCore Extension
php-shmopCore Extension
php-snmpCore Extension
php-soapCore Extension
php-socketsCore Extension
php-sqlite3Core Extension
php-sysvmsgCore Extension
php-sysvsemCore Extension
php-tidyCore Extension
php-wddxCore Extension
php-xmlCore Extension
php-xmlreaderCore Extension
php-xmlrpcCore Extension
php-xslCore Extension
php-zipCore Extension
php-zlibCore Extension
-
php-amqpExtra Extension
php-apcuExtra Extension
php-astExtra Extension
php-dsExtra Extension
php-imagickExtra Extension
php-mailparseExtra Extension
php-memcachedExtra Extension
php-mongodbExtra Extension
php-msgpackExtra Extension
php-pcovExtra Extension
php-phalconExtra Extension
php-psrExtra Extension
php-redisExtra Extension
php-ssh2Extra Extension
php-swooleExtra Extension
php-timecopExtra Extension
php-libsodiumExtra Extension
php-scalar_objectsExtra Extension
php-secp256k1Extra Extension
php-xdebugExtra Extension
-
argon2Extra Package
argon2-devExtra Package
enchantExtra Package
enchant-docExtra Package
enchant-devExtra Package
libargon2Extra Package
libsecp256k1Extra Package

Life's good!

About

PHP APK Repository for Alpine Linux

Topics

Resources

Contributing

Stars

483 stars

Watchers

16 watching

Forks

Releases

Packages

Used by

Contributors

Languages