{"id":19871888,"url":"https://github.com/saltstack-formulas/php-formula","last_synced_at":"2025-06-30T03:35:52.583Z","repository":{"id":8924515,"uuid":"10653490","full_name":"saltstack-formulas/php-formula","owner":"saltstack-formulas","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-07T20:02:25.000Z","size":890,"stargazers_count":57,"open_issues_count":28,"forks_count":229,"subscribers_count":43,"default_branch":"master","last_synced_at":"2025-04-07T21:22:39.614Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html","language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/saltstack-formulas.png","metadata":{"files":{"readme":"docs/README.rst","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.md","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-06-12T22:09:56.000Z","updated_at":"2023-06-23T18:20:37.000Z","dependencies_parsed_at":"2025-01-07T04:15:35.979Z","dependency_job_id":null,"html_url":"https://github.com/saltstack-formulas/php-formula","commit_stats":null,"previous_names":[],"tags_count":33,"template":false,"template_full_name":null,"purl":"pkg:github/saltstack-formulas/php-formula","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saltstack-formulas%2Fphp-formula","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saltstack-formulas%2Fphp-formula/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saltstack-formulas%2Fphp-formula/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saltstack-formulas%2Fphp-formula/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saltstack-formulas","download_url":"https://codeload.github.com/saltstack-formulas/php-formula/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saltstack-formulas%2Fphp-formula/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262704850,"owners_count":23351155,"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":[],"created_at":"2024-11-12T16:13:54.821Z","updated_at":"2025-06-30T03:35:52.558Z","avatar_url":"https://github.com/saltstack-formulas.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":".. _readme:\n\nphp-formula\n===========\n\n|img_travis| |img_sr|\n\n.. |img_travis| image:: https://travis-ci.com/saltstack-formulas/php-formula.svg?branch=master\n   :alt: Travis CI Build Status\n   :scale: 100%\n   :target: https://travis-ci.com/saltstack-formulas/php-formula\n.. |img_sr| image:: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg\n   :alt: Semantic Release\n   :scale: 100%\n   :target: https://github.com/semantic-release/semantic-release\n\nFormula to set up and configure php\n\n.. list-table::\n   :name: banner-breaking-changes-v1.0.0\n   :header-rows: 1\n   :widths: 1\n\n   * - WARNING: BREAKING CHANGES SINCE ``v1.0.0``\n   * - Prior to\n       `v1.0.0 \u003chttps://github.com/saltstack-formulas/php-formula/releases/tag/v1.0.0\u003e`_,\n       this formula provided two methods for managing PHP;\n       the old method under ``php`` and the new method under ``php.ng``.\n       The old method has now been removed and ``php.ng`` has been promoted to\n       be ``php`` in its place.\n\n       If you are not in a position to migrate, please pin your repo to the final\n       release tag before\n       `v1.0.0 \u003chttps://github.com/saltstack-formulas/php-formula/releases/tag/v1.0.0\u003e`_,\n       i.e.\n       `v0.40.1 \u003chttps://github.com/saltstack-formulas/php-formula/releases/tag/v0.40.1\u003e`_.\n\n       To migrate from ``php.ng``, simply modify your pillar to promote the\n       entire section under ``php:ng`` so that it is under ``php`` instead.\n       So with the editor of your choice, highlight the entire section and then\n       unindent one level.  Finish by removing the ``ng:`` line.\n\n       To migrate from the old ``php``, first convert to ``php.ng`` under\n       `v0.40.1 \u003chttps://github.com/saltstack-formulas/php-formula/releases/tag/v0.40.1\u003e`_.\n       and then follow the steps laid out in the paragraph directly above.\n\n.. contents:: **Table of Contents**\n\nGeneral notes\n-------------\n\nSee the full `SaltStack Formulas installation and usage instructions\n\u003chttps://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html\u003e`_.\n\nIf you are interested in writing or contributing to formulas, please pay attention to the `Writing Formula Section\n\u003chttps://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html#writing-formulas\u003e`_.\n\nIf you want to use this formula, please pay attention to the ``FORMULA`` file and/or ``git tag``,\nwhich contains the currently released version. This formula is versioned according to `Semantic Versioning \u003chttp://semver.org/\u003e`_.\n\nSee `Formula Versioning Section \u003chttps://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html#versioning\u003e`_ for more details.\n\nContributing to this repo\n-------------------------\n\n**Commit message formatting is significant!!**\n\nPlease see `How to contribute \u003chttps://github.com/saltstack-formulas/.github/blob/master/CONTRIBUTING.rst\u003e`_ for more details.\n\nAvailable states\n----------------\n\nPlease provide feedback by filing issues,\ndiscussing in ``#salt`` in Freenode and the mailing list as normal.\n\n**Note:** php states require the merge parameter of salt.modules.pillar.get(),\nfirst available in the Helium release.\n\n.. contents::\n    :local:\n\n``php``\n^^^^^^^^^^\n\nInstalls the php package.\n\n``php.adodb``\n^^^^^^^^^^^^^^^^\n\nInstalls the php-adodb package.\n\n``php.apache2``\n^^^^^^^^^^^^^^^^^^\n\nMeta-state that combines `php.apache2.install`_ and `php.apache2.ini`_.\n\n``php.apache2.ini``\n^^^^^^^^^^^^^^^^^^^^^^\n\nManages the apache2 php.ini file\n\n``php.apache2.install``\n^^^^^^^^^^^^^^^^^^^^^^^^^^\n\nInstalls the apache2 and libapache2-mod-php5 package. Debian Only.\n\n``php.apc``\n^^^^^^^^^^^^^^\n\nInstalls the php-apc package.\nDisabled on opensuse need server:php repo\n\n``php.apcu``\n^^^^^^^^^^^^^^^\n\nInstalls the php-apcu package.\nDisabled on opensuse need server:php repo\n\n``php.auth-sasl``\n^^^^^^^^^^^^^^^^^^^^\n\nInstalls the php-auth-sasl package.\n\n``php.bcmath``\n^^^^^^^^^^^^^^^^^\n\nInstalls the php-bcmath package.\n\n``php.bz2``\n^^^^^^^^^^^^^^\n\nInstalls the php-bz2 package.\n\n``php.cache-lite``\n^^^^^^^^^^^^^^^^^^^^^\n\nInstalls the php-cache-lite package.\n\n``php.cgi``\n^^^^^^^^^^^^^^\n\nInstalls the php-cgi package.\nDisabled on opensuse only php5-fastcgi available.\n\n``php.cli``\n^^^^^^^^^^^^^^\n\nMeta-state that combines `php.cli.install`_ and `php.cli.ini`_.\n\n``php.cli.ini``\n^^^^^^^^^^^^^^^^^^\n\nManages the php-cli ini file.\n\n``php.cli.install``\n^^^^^^^^^^^^^^^^^^^^^^\n\nInstalls the php-cli package.\n\n``php.composer``\n^^^^^^^^^^^^^^^^^^^\n\nInstalls [composer](https://getcomposer.org) and keeps it updated.\n\n``php.console-table``\n^^^^^^^^^^^^^^^^^^^^^^^^\n\nInstalls the php-console-table package.\n\n``php.ctype``\n^^^^^^^^^^^^^^^^\n\nInstalls the php-ctype package.\n\n``php.curl``\n^^^^^^^^^^^^^^^\n\nInstalls the php5-curl package on Debian, and ensures that curl itself is\ninstalled for RedHat systems, this is due to the curl libs being provided by\nphp-common, which will get installed with the main php package.\n\n``php.dba``\n^^^^^^^^^^^^^^\n\nInstalls the php-dba package.\n\n``php.dev``\n^^^^^^^^^^^^^^\n\nInstalls the php5-dev and build-essential package.\n\n``php.filter``\n^^^^^^^^^^^^^^^^^\n\nInstalls the php-filter package.\n\n``php.fpm``\n^^^^^^^^^^^^^^\n\nMeta-state that combines all php.fpm states.\n\n``php.fpm.config``\n^^^^^^^^^^^^^^^^^^^^^\n\nManages the (non-pool) php-fpm config files.\n\n``php.fpm.install``\n^^^^^^^^^^^^^^^^^^^^^^\n\nInstalls the php-fpm package.\n\n``php.fpm.pools``\n^^^^^^^^^^^^^^^^^^^^\n\nMeta-state that combines `php.fpm.service`_ and `php.fpm.pools_config`_\n\n``php.fpm.pools_config``\n^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\nManages php-fpm pool config files.\n\n``php.fpm.service``\n^^^^^^^^^^^^^^^^^^^^^^\n\nManages the php-fpm service.\n\n``php.gd``\n^^^^^^^^^^^^^\n\nInstalls the php-gd package.\n\n``php.gearman``\n^^^^^^^^^^^^^^^^^^\n\nInstalls the php-gearman package.\n\n``php.geoip``\n^^^^^^^^^^^^^^^^\n\nInstalls the php-geoip package.\n\n``php.geshi``\n^^^^^^^^^^^^^^^^\n\nInstalls the php-geshi package.\n\n``php.gettext``\n^^^^^^^^^^^^^^^^^^\n\nInstalls the php-gettext package.\n\n``php.gmp``\n^^^^^^^^^^^^^^\n\nInstalls the php-gmp package. Debian Only.\n\n``php.hash``\n^^^^^^^^^^^^^^^\n\nInstalls the php-hash package.\n\n``php.http``\n^^^^^^^^^^^^^^^\n\nInstalls the php-http package.\n\n``php.hhvm``\n^^^^^^^^^^^^^^^\n\nMeta-state that combines php.hhvm states\n\n``php.hhvm.config``\n^^^^^^^^^^^^^^^^^^^^^^\n\nManages the php-hhvm config files\n\n``php.hhvm.install``\n^^^^^^^^^^^^^^^^^^^^^^^\n\nInstalls the php-hhvm package\n\n``php.hhvm.repo``\n^^^^^^^^^^^^^^^^^\n\nConfigures the hhvm repo for debian/ubuntu\n\n``php.hhvm.service``\n^^^^^^^^^^^^^^^^^^^^^^^\n\nManages the php-hhvm service.\n\n``php.igbinary``\n^^^^^^^^^^^^^^^^^^^\n\nInstalls the php-igbinary package.\n\n``php.imagick``\n^^^^^^^^^^^^^^^^^^\n\nInstalls the php-imagick package.\nDisabled on opensuse no package.\n\n``php.imap``\n^^^^^^^^^^^^^^^\n\nInstalls the php-imap package.\n\n``php.intl``\n^^^^^^^^^^^^^^^\n\nInstalls the php-intl package.\n\n``php.json``\n^^^^^^^^^^^^^^^\n\nInstalls the php-json package.\n\n``php.ldap``\n^^^^^^^^^^^^^^^\n\nInstalls the php-ldap package.\n\n``php.mail``\n^^^^^^^^^^^^^^^\n\nInstalls the php-mail package.\n\n``php.mbstring``\n^^^^^^^^^^^^^^^^^^^\n\nInstalls the php-mbstring package.\n\n``php.mcrypt``\n^^^^^^^^^^^^^^^^^\n\nInstalls the php-mcrypt package.\n\n``php.mdb2``\n^^^^^^^^^^^^^^^\n\nInstalls the php-mdb2 package.\n\n``php.mdb2-driver-mysql``\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\nInstalls the php-mdb2-driver-mysql package.\n\n``php.mdb2-driver-pgsql``\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\nInstalls the php-mdb2-driver-pgsql package.\n\n``php.memcache``\n^^^^^^^^^^^^^^^^^^^\n\nInstalls the php-memcache package.\nDisabled on opensuse need server:php:extensions repo\n\n``php.memcached``\n^^^^^^^^^^^^^^^^^^^^\n\nInstalls the php-memcached package.\nDisabled on opensuse need server:php:extensions repo\n\n``php.modules``\n^^^^^^^^^^^^^^^^^^\n\nCalls ``php.\u003cname\u003e`` for each entry in ``php:modules`` if available, or\ntry to install the matching packages that can be set via from\n``php:lookup:pkgs``\n\n``php.mongo``\n^^^^^^^^^^^^^^^^\n\nInstalls the php-mongo package.\n\n``php.mongodb``\n^^^^^^^^^^^^^^^^^^\n\nInstalls the php-mongodb package.\n\n``php.msgpack``\n^^^^^^^^^^^^^^^^^^\n\nInstalls the php-msgpack package.\n\n``php.mysql``\n^^^^^^^^^^^^^^^^\n\nInstalls the php-mysql package.\n\n``php.mysqlnd``\n^^^^^^^^^^^^^^^^^^\n\nInstalls the php-mysqlnd package.\nDisabled on opensuse no package.\n\n``php.net-smtp``\n^^^^^^^^^^^^^^^^^^^\n\nInstalls the php-net-smtp package.\n\n``php.net4``\n^^^^^^^^^^^^^^^\n\nInstalls the php-net4 package.\n\n``php.net6``\n^^^^^^^^^^^NET6\n\nInstalls the php-net6 package.\n\n``php.oauth``\n^^^^^^^^^^^^^^^^\n\nInstalls the php-oauth package.\n\n``php.opcache``\n^^^^^^^^^^^^^^^^^^\n\nInstalls the php-opcache package.\n\n``php.openssl``\n^^^^^^^^^^^^^^^^^^\n\nInstalls the php-openssl package.\n\n``php.pear``\n^^^^^^^^^^^^^^^\n\nInstalls the php-pear package.\n\n``php.pgsql``\n^^^^^^^^^^^^^^^^\n\nInstalls the php-pgsql package.\n\n``php.phar``\n^^^^^^^^^^^^^^^\n\nInstalls the php-phar package.\n\n``php.posix``\n^^^^^^^^^^^^^^^^\n\nInstalls the php-posix package.\n\n``php.pspell``\n^^^^^^^^^^^^^^^^^\n\nInstalls the php-pspell package.\n\n``php.readline``\n^^^^^^^^^^^^^^^^^^^\n\nInstalls the php-readline package.\n\n``php.redis``\n^^^^^^^^^^^^^^^^\n\nInstalls the php-redis package.\nDisabled on opensuse need server:php:extensions repo\n\n``php.seclib``\n^^^^^^^^^^^^^^^^^\n\nInstalls the php-seclib package.\n\n``php.session``\n^^^^^^^^^^^^^^^^^^\n\nInstalls the php-session package.\n\n``php.snmp``\n^^^^^^^^^^^^^^^\n\nInstalls the php-snmp package.\n\n``php.soap``\n^^^^^^^^^^^^^^^\n\nInstalls the php-soap package.\n\n``php.sqlite``\n^^^^^^^^^^^^^^^^^\n\nInstalls the php-sqlite package,\n\n``php.ssh2``\n^^^^^^^^^^^^^^^\n\nInstalls the php-ssh2 package,\n\n``php.suhosin``\n^^^^^^^^^^^^^^^^^^\n\nInstalls the php-suhosin package.\n\n``php.svn``\n^^^^^^^^^^^^^^\n\nInstalls the php-svn package.\n\n``php.sybase``\n^^^^^^^^^^^^^^^^^\n\nInstalls the php-sybase package.\n\n``php.tcpdf``\n^^^^^^^^^^^^^^^^\n\nInstalls the php-tcpdf package.\n\n``php.tidy``\n^^^^^^^^^^^^^^^\n\nInstalls the php-tidy package.\n\n``php.uuid``\n^^^^^^^^^^^^^^^\n\nInstalls the php-uuid package.\n\n``php.xcache``\n^^^^^^^^^^^^^^^^^\n\nMeta-state that combines `php.xcache.install`_ and `php.xcache.ini`_.\n\n``php.xcache.ini``\n^^^^^^^^^^^^^^^^^^^^^\n\nManages the php-xcache ini file\n\n``php.xcache.install``\n^^^^^^^^^^^^^^^^^^^^^^^^^\n\nInstalls the php-xcache package.\nDisabled on opensuse need server:php:extensions repo\n\n``php.xdebug``\n^^^^^^^^^^^^^^^^^\n\nInstalls the php-xdebug package.\n\n``php.xml``\n^^^^^^^^^^^^^^\n\nInstalls the php-xml package.\n\n``php.xsl``\n^^^^^^^^^^^^^^\n\nInstalls the php-xsl package.\n\n``php.zip``\n^^^^^^^^^^^^^^\n\nInstalls the php-zip package.\n\n``php.zlib``\n^^^^^^^^^^^^^^\n\nInstalls the php-zlib package.\n\nTesting\n-------\n\nLinux testing is done with ``kitchen-salt``.\n\nRequirements\n^^^^^^^^^^^^\n\n* Ruby\n* Docker\n\n.. code-block:: bash\n\n   $ gem install bundler\n   $ bundle install\n   $ bin/kitchen test [platform]\n\nWhere ``[platform]`` is the platform name defined in ``kitchen.yml``,\ne.g. ``debian-9-2019-2-py3``.\n\n``bin/kitchen converge``\n^^^^^^^^^^^^^^^^^^^^^^^^\n\nCreates the docker instance and runs the ``php`` main states, ready for testing.\n\n``bin/kitchen verify``\n^^^^^^^^^^^^^^^^^^^^^^\n\nRuns the ``inspec`` tests on the actual instance.\n\n``bin/kitchen destroy``\n^^^^^^^^^^^^^^^^^^^^^^^\n\nRemoves the docker instance.\n\n``bin/kitchen test``\n^^^^^^^^^^^^^^^^^^^^\n\nRuns all of the stages above in one go: i.e. ``destroy`` + ``converge`` + ``verify`` + ``destroy``.\n\n``bin/kitchen login``\n^^^^^^^^^^^^^^^^^^^^^\n\nGives you SSH access to the instance for manual testing.\n\nTesting with Vagrant\n--------------------\n\nWindows/FreeBSD/OpenBSD testing is done with ``kitchen-salt``.\n\nRequirements\n^^^^^^^^^^^^\n\n* Ruby\n* Virtualbox\n* Vagrant\n\nSetup\n^^^^^\n\n.. code-block:: bash\n\n   $ gem install bundler\n   $ bundle install --with=vagrant\n   $ bin/kitchen test [platform]\n\nWhere ``[platform]`` is the platform name defined in ``kitchen.vagrant.yml``,\ne.g. ``windows-81-latest-py3``.\n\nNote\n^^^^\n\nWhen testing using Vagrant you must set the environment variable ``KITCHEN_LOCAL_YAML`` to ``kitchen.vagrant.yml``.  For example:\n\n.. code-block:: bash\n\n   $ KITCHEN_LOCAL_YAML=kitchen.vagrant.yml bin/kitchen test      # Alternatively,\n   $ export KITCHEN_LOCAL_YAML=kitchen.vagrant.yml\n   $ bin/kitchen test\n\nThen run the following commands as needed.\n\n``bin/kitchen converge``\n^^^^^^^^^^^^^^^^^^^^^^^^\n\nCreates the Vagrant instance and runs the ``php`` main states, ready for testing.\n\n``bin/kitchen verify``\n^^^^^^^^^^^^^^^^^^^^^^\n\nRuns the ``inspec`` tests on the actual instance.\n\n``bin/kitchen destroy``\n^^^^^^^^^^^^^^^^^^^^^^^\n\nRemoves the Vagrant instance.\n\n``bin/kitchen test``\n^^^^^^^^^^^^^^^^^^^^\n\nRuns all of the stages above in one go: i.e. ``destroy`` + ``converge`` + ``verify`` + ``destroy``.\n\n``bin/kitchen login``\n^^^^^^^^^^^^^^^^^^^^^\n\nGives you RDP/SSH access to the instance for manual testing.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaltstack-formulas%2Fphp-formula","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaltstack-formulas%2Fphp-formula","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaltstack-formulas%2Fphp-formula/lists"}