{"id":14235848,"url":"https://github.com/codecasts/php-alpine","last_synced_at":"2025-12-29T23:43:31.952Z","repository":{"id":41247866,"uuid":"83367264","full_name":"codecasts/php-alpine","owner":"codecasts","description":"PHP APK Repository for Alpine Linux","archived":false,"fork":false,"pushed_at":"2023-02-13T16:03:33.000Z","size":9700,"stargazers_count":482,"open_issues_count":28,"forks_count":56,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-08-06T18:56:12.702Z","etag":null,"topics":["alpine","docker","dockerfiles","php","php-versions"],"latest_commit_sha":null,"homepage":"https://github.com/codecasts/php-alpine","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codecasts.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-27T23:19:54.000Z","updated_at":"2025-08-03T13:02:00.000Z","dependencies_parsed_at":"2023-01-22T10:30:30.355Z","dependency_job_id":null,"html_url":"https://github.com/codecasts/php-alpine","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/codecasts/php-alpine","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codecasts%2Fphp-alpine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codecasts%2Fphp-alpine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codecasts%2Fphp-alpine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codecasts%2Fphp-alpine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codecasts","download_url":"https://codeload.github.com/codecasts/php-alpine/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codecasts%2Fphp-alpine/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269813625,"owners_count":24479340,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["alpine","docker","dockerfiles","php","php-versions"],"created_at":"2024-08-20T21:02:24.778Z","updated_at":"2025-12-29T23:43:31.908Z","avatar_url":"https://github.com/codecasts.png","language":"Shell","readme":"## PHP-ALPINE: Fresh PHP binaries APK repository for Alpine Linux.\n\n**Currently Supporting PHP 8.1**, also, PHP 8.0 and PHP 7.4.\n\nThis project provides a simple alternative for running updated PHP binaries on Alpine Linux.\nWe pack and release PHP versions as soon they are available on http://php.net. (At least, we try to.)\nAdditionally, many PECL extensions are also available as packages as well.\n\n\n#### Created by:\n  - Diego Hernandes - **[@hernandev](https://github.com/hernandev)**\n  \n#### Support, Help and Faith:\n  - Ueli Banholzer - **[@xarem](https://github.com/xarem)** \n  - whatwedo GmbH - **[@whatwedo](https://github.com/whatwedo)**\n  - individual [contributors](https://github.com/codecasts/php-alpine/graphs/contributors)\n\n\n#### Main Related Projects:\n- **[Ambientum](https://github.com/ambientum/ambientum)** by [@hernandev](https://github.com/hernandev) \n  Docker native solution for running Laravel projects. From Development to Production. \n\n- **[DDE](https://github.com/whatwedo/dde)** by [@whatwedo](https://github.com/whatwedo) \n  Local development environment toolset based on Docker\n\n\n---\n\n\n## APK Repositories \u0026 Release Cycle\n\n### PHP 8.1\n\n| Alpine | PHP | Repository URL\n| - | - | -\n| ![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)\n| ![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)\n| ![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)\n| ![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)\n\n\n### PHP 8.0\n\n| Alpine | PHP | End of Support | Repository URL\n| - | - | - | -\n| ![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)\n| ![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)\n\n### PHP 7.4\n\n| Alpine | PHP | End of Support | Repository URL\n| - | - | - | -\n| ![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)\n| ![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)\n\n### PHP 7.3\n\n| Alpine | PHP | End of Support | Repository URL\n| - | - | - | -\n| ![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)\n| ![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)\n\n\nBuilds are available as soon as possible, and EOS is determined by:\n- If either PHP or Alpine release reaches end of support, the repository will stop receiving updates.\n- Support for both PHP and Alpine are estimated for around 2 years from release date.\n\nActive support reference:\n\n- PHP: https://www.php.net/supported-versions.php\n- Alpine: https://wiki.alpinelinux.org/wiki/Alpine_Linux:Releases  \n\n\u003e Replace examples below with desired Alpine and PHP versions.\n\n\n## Snippets\n\nThe following code snippets are intended for quick usage on either shell scripts or Dockerfile\n\n\u003e Notice that `main` and `community` official repositories must be enabled.\n\n### Dockerfile\n\nYou may skip the ca-certificates part if you replace HTTPS by HTTP but you should not. PHP packages will eventually install ca-certificates anyway.\n\n```dockerfile\nFROM alpine:3.11\n\nADD https://php.hernandev.com/key/php-alpine.rsa.pub /etc/apk/keys/php-alpine.rsa.pub\n\nRUN apk --update-cache add ca-certificates \u0026\u0026 \\\n    echo \"https://php.hernandev.com/v3.11/php-7.4\" \u003e\u003e /etc/apk/repositories\n\n# install php and some extensions\nRUN apk add --update-cache \\\n    php \\\n    php-bz2 \\\n    php-json \\\n    php-mysql \\\n    php-any-other-available-package... \n```\n\n\n## Available Packages\n\nThis is the complete available packages list:\n\n| Package Name          | Type            |\n| -                     | -               |\n| `php`                 | PHP Core        |\n| `php-common`          | PHP Core        |\n| `php-fpm`             | PHP Core        |\n| `php-cgi`             | PHP Core        |\n| `php-apache2`         | PHP Core        |\n| `php-doc`             | PHP Core        |\n| `php-dev`             | PHP Core        |\n|  -                    |                 |\n| `php-sodium`          | Core Extension  |\n| `php-bcmath`          | Core Extension  |\n| `php-bz2`             | Core Extension  |\n| `php-calendar`        | Core Extension  |\n| `php-ctype`           | Core Extension  |\n| `php-curl`            | Core Extension  |\n| `php-dba`             | Core Extension  |\n| `php-dom`             | Core Extension  |\n| `php-embed`           | Core Extension  |\n| `php-enchant`         | Core Extension  |\n| `php-exif`            | Core Extension  |\n| `php-ftp`             | Core Extension  |\n| `php-gd`              | Core Extension  |\n| `php-gettext`         | Core Extension  |\n| `php-gmp`             | Core Extension  |\n| `php-iconv`           | Core Extension  |\n| `php-imap`            | Core Extension  |\n| `php-intl`            | Core Extension  |\n| `php-json`            | Core Extension  |\n| `php-ldap`            | Core Extension  |\n| `php-litespeed`       | Core Extension  |\n| `php-mbstring`        | Core Extension  |\n| `php-mcrypt`          | Core Extension  |\n| `php-mysqli`          | Core Extension  |\n| `php-mysqlnd`         | Core Extension  |\n| `php-odbc`            | Core Extension  |\n| `php-opcache`         | Core Extension  |\n| `php-openssl`         | Core Extension  |\n| `php-pcntl`           | Core Extension  |\n| `php-pdo`             | Core Extension  |\n| `php-pdo_dblib`       | Core Extension  |\n| `php-pdo_mysql`       | Core Extension  |\n| `php-pdo_pgsql`       | Core Extension  |\n| `php-pdo_sqlite`      | Core Extension  |\n| `php-pear`            | Core Extension  |\n| `php-pgsql`           | Core Extension  |\n| `php-phar`            | Core Extension  |\n| `php-phpdbg`          | Core Extension  |\n| `php-posix`           | Core Extension  |\n| `php-pspell`          | Core Extension  |\n| `php-session`         | Core Extension  |\n| `php-shmop`           | Core Extension  |\n| `php-snmp`            | Core Extension  |\n| `php-soap`            | Core Extension  |\n| `php-sockets`         | Core Extension  |\n| `php-sqlite3`         | Core Extension  |\n| `php-sysvmsg`         | Core Extension  |\n| `php-sysvsem`         | Core Extension  |\n| `php-tidy`            | Core Extension  |\n| `php-wddx`            | Core Extension  |\n| `php-xml`             | Core Extension  |\n| `php-xmlreader`       | Core Extension  |\n| `php-xmlrpc`          | Core Extension  |\n| `php-xsl`             | Core Extension  |\n| `php-zip`             | Core Extension  |\n| `php-zlib`            | Core Extension  |\n|  -                    |                 |\n| `php-amqp`            | Extra Extension |\n| `php-apcu`            | Extra Extension |\n| `php-ast`             | Extra Extension |\n| `php-ds`              | Extra Extension |\n| `php-imagick`         | Extra Extension |\n| `php-mailparse`       | Extra Extension |\n| `php-memcached`       | Extra Extension |\n| `php-mongodb`         | Extra Extension |\n| `php-msgpack`         | Extra Extension |\n| `php-pcov`            | Extra Extension |\n| `php-phalcon`         | Extra Extension |\n| `php-psr`             | Extra Extension |\n| `php-redis`           | Extra Extension |\n| `php-ssh2`            | Extra Extension |\n| `php-swoole`          | Extra Extension |\n| `php-timecop`         | Extra Extension |\n| `php-libsodium`       | Extra Extension |\n| `php-scalar_objects`  | Extra Extension |\n| `php-secp256k1`       | Extra Extension |\n| `php-xdebug`          | Extra Extension |\n|  -                    |                 |\n| `argon2`              | Extra Package   |\n| `argon2-dev`          | Extra Package   |\n| `enchant`             | Extra Package   |\n| `enchant-doc`         | Extra Package   |\n| `enchant-dev`         | Extra Package   |\n| `libargon2`           | Extra Package   |\n| `libsecp256k1`        | Extra Package   |\n\n\n\u003e Life's good!\n","funding_links":[],"categories":["Shell"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodecasts%2Fphp-alpine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodecasts%2Fphp-alpine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodecasts%2Fphp-alpine/lists"}