{"id":18422816,"url":"https://github.com/ecgalaxy/php","last_synced_at":"2026-05-03T05:45:38.046Z","repository":{"id":110282464,"uuid":"474064327","full_name":"ecgalaxy/php","owner":"ecgalaxy","description":"Ansible role which installs PHP language and extensions - Repository mirror - development takes place on code.europa.eu","archived":false,"fork":false,"pushed_at":"2024-08-01T12:35:59.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-13T14:18:46.977Z","etag":null,"topics":["ansible-role","php","php-cli","php-oci8"],"latest_commit_sha":null,"homepage":"https://code.europa.eu/ecgalaxy/php","language":null,"has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"eupl-1.2","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ecgalaxy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-25T15:27:29.000Z","updated_at":"2024-08-01T12:31:19.000Z","dependencies_parsed_at":"2024-05-28T18:23:53.278Z","dependency_job_id":null,"html_url":"https://github.com/ecgalaxy/php","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecgalaxy%2Fphp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecgalaxy%2Fphp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecgalaxy%2Fphp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecgalaxy%2Fphp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ecgalaxy","download_url":"https://codeload.github.com/ecgalaxy/php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248724625,"owners_count":21151561,"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","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":["ansible-role","php","php-cli","php-oci8"],"created_at":"2024-11-06T04:33:49.802Z","updated_at":"2026-05-03T05:45:38.040Z","avatar_url":"https://github.com/ecgalaxy.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"ECGALAXY php role\n=================\n\nThis Ansible role installs PHP and extensions.\n\nSupported PHP versions: 8.1, 8.2, 8.3 (default), 8.4 and 8.5 (not supported on Amazon Linux 2).\n\nRequirements\n------------\n\nNone.\n\nRole Variables\n--------------\n\n* `php_version`: the PHP version to install\n* `php_enabled_apt_repos`: additional APT repositories to enable\n* `php_enabled_yum_repos`: additional Yum repositories to enable\n* `php_installed_packages`: the list of packages to install\n* `php_installed_packages_extra`: additional packages to install\n* `php_install_xdebug`: should Xdebug be installed or not\n* `php_install_oci8_extension`: should the OCI8 extension be installed or not\n* `php_oci8_extension_ini_path`: where to store the OCI8 ini file (Ubuntu)\n* `php_oracle_instantclient_path`: Oracle Instant Client path\n* `php_remove_al2_extras_packages`: should amazon-linux-extras PHP packages be removed or not\n\nSee `defaults` and `vars` for the default values.\n\nDependencies\n------------\n\n* optional: ecgalaxy.bootstrap\n* optional: ecgalaxy.common_packages\n* optional: ecgalaxy.oracle_instantclient\n\nOn Amazon Linux 2 and Ubuntu, the `ecgalaxy.oracle_instantclient` role should be executed first\nif `php_install_oci8_extension` is set to `true` (which is the default value).\n\nExample Playbook\n----------------\n\n    - hosts: all\n      roles:\n        - ecgalaxy.bootstrap\n        - ecgalaxy.common_packages\n        - ecgalaxy.oracle_instantclient\n        - ecgalaxy.php\n\nOne-liner\n---------\n\nTo globally install the default PHP version:\n\n    bash \u003c(curl -s https://code.europa.eu/-/snippets/1/raw/main/ansible-role.sh) ecgalaxy.php\n\nTo globally install PHP 8.2:\n\n    bash \u003c(curl -s https://code.europa.eu/-/snippets/1/raw/main/ansible-role.sh) ecgalaxy.php --extra-vars '{\"php_version\":\"8.2\"}'\n\nYou may need to execute the `ecgalaxy.oracle_instantclient` first (Amazon Linux 2, Ubuntu):\n\n    bash \u003c(curl -s https://code.europa.eu/-/snippets/1/raw/main/ansible-role.sh) ecgalaxy.oracle_instantclient\n\nSee [ansible-role](https://code.europa.eu/-/snippets/1) for instructions.\n\nPlease verify the script integrity first.\n\nUsing multiple PHP versions\n---------------------------\n\nInstalling and using multiple PHP versions is supported by executing the role multiple times with different values of `php_version`.\n\nTo switch to another version, use the `sudo update-alternatives` (Ubuntu) or `module load php\u003cversion\u003e` (Amazon Linux, RedHat) command.\n\nFor instance, to switch to PHP 8.2:\n\nOn Ubuntu:\n\n    sudo update-alternatives --set php /usr/bin/php8.2\n\nOn Amazon Linux, RedHat:\n\n    . /etc/profile.d/modules.sh\n    module load php82\n\nLicense\n-------\n\nCopyright the European Union 2022.\n\nLicensed under the EUPL-1.2 or later.\n\nAuthor Information\n------------------\n\nECGALAXY team.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fecgalaxy%2Fphp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fecgalaxy%2Fphp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fecgalaxy%2Fphp/lists"}