{"id":13654993,"url":"https://github.com/geerlingguy/ansible-role-composer","last_synced_at":"2025-04-06T05:16:47.684Z","repository":{"id":14585366,"uuid":"17301909","full_name":"geerlingguy/ansible-role-composer","owner":"geerlingguy","description":"Ansible Role - Composer PHP Dependency Manager","archived":false,"fork":false,"pushed_at":"2024-07-16T19:21:16.000Z","size":101,"stargazers_count":182,"open_issues_count":2,"forks_count":104,"subscribers_count":13,"default_branch":"master","last_synced_at":"2024-10-10T04:06:31.166Z","etag":null,"topics":["ansible","composer","dependency-manager","packages","packagist","php","role"],"latest_commit_sha":null,"homepage":"https://galaxy.ansible.com/geerlingguy/composer/","language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/geerlingguy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"geerlingguy","patreon":"geerlingguy"}},"created_at":"2014-02-28T22:30:56.000Z","updated_at":"2024-08-19T21:48:53.000Z","dependencies_parsed_at":"2024-08-02T03:12:31.567Z","dependency_job_id":null,"html_url":"https://github.com/geerlingguy/ansible-role-composer","commit_stats":null,"previous_names":[],"tags_count":33,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geerlingguy%2Fansible-role-composer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geerlingguy%2Fansible-role-composer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geerlingguy%2Fansible-role-composer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geerlingguy%2Fansible-role-composer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/geerlingguy","download_url":"https://codeload.github.com/geerlingguy/ansible-role-composer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247436286,"owners_count":20938533,"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","composer","dependency-manager","packages","packagist","php","role"],"created_at":"2024-08-02T03:00:54.389Z","updated_at":"2025-04-06T05:16:47.668Z","avatar_url":"https://github.com/geerlingguy.png","language":"Jinja","funding_links":["https://github.com/sponsors/geerlingguy","https://patreon.com/geerlingguy"],"categories":["Jinja","role","Ansible roles"],"sub_categories":["Languages"],"readme":"# Ansible Role: Composer\n\n[![CI](https://github.com/geerlingguy/ansible-role-composer/actions/workflows/ci.yml/badge.svg)](https://github.com/geerlingguy/ansible-role-composer/actions/workflows/ci.yml)\n\nInstalls Composer, the PHP Dependency Manager, on any Linux or UNIX system.\n\n## Requirements\n\n  - `php` (version 5.4+) should be installed and working (you can use the `geerlingguy.php` role to install).\n  - `git` should be installed and working (you can use the `geerlingguy.git` role to install).\n\n## Role Variables\n\nAvailable variables are listed below, along with default values (see `defaults/main.yml`):\n\n    composer_path: /usr/local/bin/composer\n\nThe path where composer will be installed and available to your system. Should be in your user's `$PATH` so you can run commands simply with `composer` instead of the full path.\n\n    composer_keep_updated: false\n\nSet this to `true` to update Composer to the latest release every time the playbook is run.\n\n    composer_home_path: '~/.composer'\n    composer_home_owner: root\n    composer_home_group: root\n\nThe `COMPOSER_HOME` path and directory ownership; this is the directory where global packages will be installed.\n\n    composer_version: ''\n\nYou can install a specific release of Composer, e.g. `composer_version: '1.0.0-alpha11'`. If left empty the latest development version will be installed. Note that `composer_keep_updated` will override this variable, as it will always install the latest development version.\n\n    composer_version_branch: '--2'\n\nYou can choose which major branch of composer you wish to use. Default is `--2`. Note that `composer_keep_updated` will update the latest version available for this branch.\n\n    composer_global_packages: []\n\nA list of packages to install globally (using `composer global require`). If you want to install any packages globally, add a list item with a dictionary with the `name` of the package and a `release`, e.g. `- { name: phpunit/phpunit, release: \"4.7.*\" }`. The 'release' is optional, and defaults to `@stable`.\n\n    composer_add_to_path: true\n\nIf `true`, and if there are any configured `composer_global_packages`, the `vendor/bin` directory inside `composer_home_path` will be added to the system's default `$PATH` (for all users).\n\n    composer_project_path: /path/to/project\n\nPath to a composer project.\n\n    composer_add_project_to_path: false\n\nIf `true`, and if you have configured a `composer_project_path`, the `vendor/bin` directory inside `composer_project_path` will be added to the system's default `$PATH` (for all users).\n\n    composer_github_oauth_token: ''\n\nGitHub OAuth token, used to avoid GitHub API rate limiting errors when building and rebuilding applications using Composer. Follow GitHub's directions to [Create a personal access token](https://help.github.com/articles/creating-an-access-token-for-command-line-use/) if you run into these rate limit errors.\n\n    php_executable: php\n\nThe executable name or full path to the PHP executable. This is defaulted to `php` if you don't override the variable.\n\n### Staying on Composer 1\n\nWhile projects are upgrading to support Composer 2, it may be helpful to run Composer 1 instead. To do that, set these variables:\n\n    composer_version_branch: ''\n    composer_version: '1.10.12'\n\n## Dependencies\n\nNone (but make sure you've installed PHP; the `geerlingguy.php` role is recommended).\n\n## Example Playbook\n\n    - hosts: servers\n      roles:\n        - geerlingguy.composer\n\nAfter the playbook runs, `composer` will be placed in `/usr/local/bin/composer` (this location is configurable), and will be accessible via normal system accounts.\n\n## License\n\nMIT / BSD\n\n## Author Information\n\nThis role was created in 2014 by [Jeff Geerling](https://www.jeffgeerling.com/), author of [Ansible for DevOps](https://www.ansiblefordevops.com/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeerlingguy%2Fansible-role-composer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeerlingguy%2Fansible-role-composer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeerlingguy%2Fansible-role-composer/lists"}