All Projects → geerlingguy → Ansible Role Composer

geerlingguy / Ansible Role Composer

Licence: mit
Ansible Role - Composer PHP Dependency Manager

Projects that are alternatives of or similar to Ansible Role Composer

composer-diff
Compares composer.lock changes and generates Markdown report so you can use it in PR description.
Stars: ✭ 51 (-65.77%)
Mutual labels:  packagist, composer, packages
Composer
Dependency Manager for PHP
Stars: ✭ 25,994 (+17345.64%)
Mutual labels:  composer, packages, dependency-manager
Awesome Composer
😎 A curated awesome list for Composer, Packagist, Satis, Plugins, Scripts, Composer related resources, tutorials.
Stars: ✭ 738 (+395.3%)
Mutual labels:  composer, dependency-manager, packagist
Satis Server
🐳 Private, self-hosted Composer/Satis repository with unlimited private and open-source packages and support for Git, Mercurial, and Subversion. HTTP API, HTTPs support, webhook handler, scheduled builds, Slack and HipChat integration.
Stars: ✭ 96 (-35.57%)
Mutual labels:  composer, packagist
Laravel Paket
Composer GUI. Manage Laravel dependencies from web interface without switching to command line!
Stars: ✭ 143 (-4.03%)
Mutual labels:  composer, packagist
Keygen Php
A fluent PHP random key generator.
Stars: ✭ 93 (-37.58%)
Mutual labels:  composer, packagist
Ansible Role Memcached
Ansible Role - Memcached
Stars: ✭ 54 (-63.76%)
Mutual labels:  ansible, role
Packeton
📦 Private, self-hosted Packagist/Composer/Satis repository with unlimited private repos.
Stars: ✭ 115 (-22.82%)
Mutual labels:  composer, packagist
Network Engine
This role provides the foundation for building network roles by providing modules and plugins that are common to all Ansible Network roles.
Stars: ✭ 108 (-27.52%)
Mutual labels:  ansible, role
Security Advisories
A database of PHP security advisories
Stars: ✭ 1,740 (+1067.79%)
Mutual labels:  composer, packagist
Ansible Role Logstash
Ansible Role - Logstash
Stars: ✭ 136 (-8.72%)
Mutual labels:  ansible, role
Aws Securitygroup Grapher
This ansible role gets information from an AWS VPC and generate a graphical representation of security groups
Stars: ✭ 93 (-37.58%)
Mutual labels:  ansible, role
Ansible Role Ruby
Ansible Role - Ruby
Stars: ✭ 77 (-48.32%)
Mutual labels:  ansible, role
Beetbox
Pre-provisioned L*MP stack
Stars: ✭ 94 (-36.91%)
Mutual labels:  ansible, composer
Packagist Mirror
Alibaba Cloud Packagist Mirror
Stars: ✭ 63 (-57.72%)
Mutual labels:  composer, packagist
Ansible Role Haproxy
Ansible Role - HAProxy
Stars: ✭ 112 (-24.83%)
Mutual labels:  ansible, role
Ansible Role Dotfiles
Ansible Role - Easy and flexible dotfile installation.
Stars: ✭ 133 (-10.74%)
Mutual labels:  ansible, role
Ansible Gitlab Runner
Ansible role to install gitlab-runner
Stars: ✭ 143 (-4.03%)
Mutual labels:  ansible, role
Ansible Role Nfs
Ansible Role - NFS
Stars: ✭ 141 (-5.37%)
Mutual labels:  ansible, role
Kontent Delivery Sdk Php
Kentico Kontent Delivery SDK for PHP
Stars: ✭ 41 (-72.48%)
Mutual labels:  composer, packagist

Ansible Role: Composer

CI

Installs Composer, the PHP Dependency Manager, on any Linux or UNIX system.

Requirements

  • php (version 5.4+) should be installed and working (you can use the geerlingguy.php role to install).
  • git should be installed and working (you can use the geerlingguy.git role to install).

Role Variables

Available variables are listed below, along with default values (see defaults/main.yml):

composer_path: /usr/local/bin/composer

The 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.

composer_keep_updated: false

Set this to true to update Composer to the latest release every time the playbook is run.

composer_home_path: '~/.composer'
composer_home_owner: root
composer_home_group: root

The COMPOSER_HOME path and directory ownership; this is the directory where global packages will be installed.

composer_version: ''

You 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.

composer_version_branch: '--2'

You 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.

composer_global_packages: []

A 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.

composer_add_to_path: true

If 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).

composer_project_path: /path/to/project

Path to a composer project.

composer_add_project_to_path: false

If 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).

composer_github_oauth_token: ''

GitHub 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 if you run into these rate limit errors.

php_executable: php

The executable name or full path to the PHP executable. This is defaulted to php if you don't override the variable.

Staying on Composer 1

While projects are upgrading to support Composer 2, it may be helpful to run Composer 1 instead. To do that, set these variables:

composer_version_branch: ''
composer_version: '1.10.12'

Dependencies

None (but make sure you've installed PHP; the geerlingguy.php role is recommended).

Example Playbook

- hosts: servers
  roles:
    - geerlingguy.composer

After the playbook runs, composer will be placed in /usr/local/bin/composer (this location is configurable), and will be accessible via normal system accounts.

License

MIT / BSD

Author Information

This role was created in 2014 by Jeff Geerling, author of Ansible for DevOps.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].