{"id":15167096,"url":"https://github.com/lkubb/salt-php-formula","last_synced_at":"2026-02-15T04:33:51.087Z","repository":{"id":134852500,"uuid":"508000658","full_name":"lkubb/salt-php-formula","owner":"lkubb","description":"Manage PHP with Salt.","archived":false,"fork":false,"pushed_at":"2024-11-13T23:28:34.000Z","size":203,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-12T10:49:47.505Z","etag":null,"topics":["php","salt","salt-formula","saltstack","saltstack-formula"],"latest_commit_sha":null,"homepage":"","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/lkubb.png","metadata":{"files":{"readme":"docs/README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-06-27T17:23:50.000Z","updated_at":"2024-11-13T23:28:37.000Z","dependencies_parsed_at":"2023-12-26T16:37:26.084Z","dependency_job_id":"98b39ceb-a502-45c0-9584-8dcda7e88b21","html_url":"https://github.com/lkubb/salt-php-formula","commit_stats":{"total_commits":22,"total_committers":1,"mean_commits":22.0,"dds":0.0,"last_synced_commit":"1c191de4ce38c26ab892a97d6bf1a7d154616bb3"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lkubb/salt-php-formula","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lkubb%2Fsalt-php-formula","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lkubb%2Fsalt-php-formula/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lkubb%2Fsalt-php-formula/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lkubb%2Fsalt-php-formula/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lkubb","download_url":"https://codeload.github.com/lkubb/salt-php-formula/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lkubb%2Fsalt-php-formula/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29469330,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T04:33:36.478Z","status":"ssl_error","status_checked_at":"2026-02-15T04:33:36.033Z","response_time":118,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["php","salt","salt-formula","saltstack","saltstack-formula"],"created_at":"2024-09-27T05:24:36.271Z","updated_at":"2026-02-15T04:33:51.070Z","avatar_url":"https://github.com/lkubb.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":".. _readme:\n\nPHP Formula\n===========\n\n|img_sr| |img_pc|\n\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.. |img_pc| image:: https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit\u0026logoColor=white\n   :alt: pre-commit\n   :scale: 100%\n   :target: https://github.com/pre-commit/pre-commit\n\nManage PHP with Salt.\n\n.. contents:: **Table of Contents**\n   :depth: 1\n\nGeneral notes\n-------------\n\nSee the full `SaltStack Formulas installation and usage instructions\n\u003chttps://docs.saltproject.io/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.saltproject.io/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.saltproject.io/en/latest/topics/development/conventions/formulas.html#versioning\u003e`_ for more details.\n\nIf you need (non-default) configuration, please refer to:\n\n- `how to configure the formula with map.jinja \u003cmap.jinja.rst\u003e`_\n- the ``pillar.example`` file\n- the `Special notes`_ section\n\nSpecial notes\n-------------\n\n\nConfiguration\n-------------\nAn example pillar is provided, please see `pillar.example`. Note that you do not need to specify everything by pillar. Often, it's much easier and less resource-heavy to use the ``parameters/\u003cgrain\u003e/\u003cvalue\u003e.yaml`` files for non-sensitive settings. The underlying logic is explained in `map.jinja`.\n\n\nAvailable states\n----------------\n\nThe following states are found in this formula:\n\n.. contents::\n   :local:\n\n\n``php``\n^^^^^^^\n*Meta-state*.\n\nThis installs the php package,\nmanages the php configuration file\n\n\n``php.package``\n^^^^^^^^^^^^^^^\nInstalls the php package only.\n\n\n``php.package.repo``\n^^^^^^^^^^^^^^^^^^^^\nThis state will install the configured php repository.\nThis works for apt/dnf/yum/zypper-based distributions only by default.\n\n\n``php.modules``\n^^^^^^^^^^^^^^^\nInstalls PHP module packages.\nHas a dependency on `php.package`_.\n\n\n``php.config``\n^^^^^^^^^^^^^^\nManages the php package configuration.\nHas a dependency on `php.package`_.\n\n\n``php.fpm``\n^^^^^^^^^^^\nInstalls PHP-FPM, manages its configuration including\npools and php.ini and starts/enables the PHP-FPM service.\n\n\n``php.fpm.config``\n^^^^^^^^^^^^^^^^^^\nConfigures PHP-FPM and has a\ndependency on `php.fpm.package`_.\n\n\n``php.fpm.ini``\n^^^^^^^^^^^^^^^\nManages the PHP-FPM php.ini and has a\ndependency on `php.fpm.package`_.\n\n\n``php.fpm.package``\n^^^^^^^^^^^^^^^^^^^\nInstalls PHP-FPM and service overrides and has a\ndependency on `php.package`_.\n\n\n``php.fpm.pools``\n^^^^^^^^^^^^^^^^^\nManages PHP-FPM pools and has a\ndependency on `php.fpm.package`_.\n\n\n``php.fpm.service``\n^^^^^^^^^^^^^^^^^^^\nStarts the PHP-FPM service and enables it at boot time.\nHas a dependency on `php.fpm.config`_, `php.fpm.ini`_\nand `php.fpm.pools`_.\n\n\n``php.clean``\n^^^^^^^^^^^^^\n*Meta-state*.\n\nUndoes everything performed in the ``php`` meta-state\nin reverse order, i.e.\nremoves the configuration file and then\nuninstalls the package.\n\n\n``php.package.clean``\n^^^^^^^^^^^^^^^^^^^^^\nRemoves the php package.\nHas a dependency on `php.config.clean`_.\n\n\n``php.package.repo.clean``\n^^^^^^^^^^^^^^^^^^^^^^^^^^\nThis state will remove the configured php repository.\nThis works for apt/dnf/yum/zypper-based distributions only by default.\n\n\n``php.modules.clean``\n^^^^^^^^^^^^^^^^^^^^^\nRemoves PHP module packages.\n\n\n``php.config.clean``\n^^^^^^^^^^^^^^^^^^^^\nRemoves the php package configuration.\n\n\n``php.fpm.clean``\n^^^^^^^^^^^^^^^^^\nUndoes everything done in `php.fpm`_ in reverse order, i. e.\nstops/disables the PHP-FPM service, removes its configuration\nincluding managed pools and php.ini and removes the package.\n\n\n``php.fpm.config.clean``\n^^^^^^^^^^^^^^^^^^^^^^^^\nRemoves the PHP-FPM configuration.\n\n\n``php.fpm.ini.clean``\n^^^^^^^^^^^^^^^^^^^^^\nRemoves the PHP-FPM php.ini.\n\n\n``php.fpm.package.clean``\n^^^^^^^^^^^^^^^^^^^^^^^^^\nRemoves PHP-FPM and service overrides and has a\ndependency on `php.fpm.config.clean`_.\n\n\n``php.fpm.pools.clean``\n^^^^^^^^^^^^^^^^^^^^^^^\nRemoves all managed PHP-FPM pools.\n\n\n``php.fpm.service.clean``\n^^^^^^^^^^^^^^^^^^^^^^^^^\nStops the PHP-FPM service and disables it at boot time.\n\n\n\nContributing to this repo\n-------------------------\n\nCommit messages\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\npre-commit\n^^^^^^^^^^\n\n`pre-commit \u003chttps://pre-commit.com/\u003e`_ is configured for this formula, which you may optionally use to ease the steps involved in submitting your changes.\nFirst install  the ``pre-commit`` package manager using the appropriate `method \u003chttps://pre-commit.com/#installation\u003e`_, then run ``bin/install-hooks`` and\nnow ``pre-commit`` will run automatically on each ``git commit``. ::\n\n  $ bin/install-hooks\n  pre-commit installed at .git/hooks/pre-commit\n  pre-commit installed at .git/hooks/commit-msg\n\nState documentation\n~~~~~~~~~~~~~~~~~~~\nThere is a script that semi-autodocuments available states: ``bin/slsdoc``.\n\nIf a ``.sls`` file begins with a Jinja comment, it will dump that into the docs. It can be configured differently depending on the formula. See the script source code for details currently.\n\nThis means if you feel a state should be documented, make sure to write a comment explaining it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flkubb%2Fsalt-php-formula","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flkubb%2Fsalt-php-formula","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flkubb%2Fsalt-php-formula/lists"}