{"id":26893552,"url":"https://github.com/dazz/puppet-composer","last_synced_at":"2025-10-04T16:19:36.358Z","repository":{"id":2933232,"uuid":"3944872","full_name":"dazz/puppet-composer","owner":"dazz","description":"Download composer.phar (http://getcomposer.org/) and setup apache","archived":false,"fork":false,"pushed_at":"2013-09-19T14:26:55.000Z","size":107,"stargazers_count":14,"open_issues_count":1,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-07T06:10:04.740Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Puppet","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dazz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-04-05T22:44:57.000Z","updated_at":"2014-06-05T10:39:41.000Z","dependencies_parsed_at":"2022-08-30T22:02:48.529Z","dependency_job_id":null,"html_url":"https://github.com/dazz/puppet-composer","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dazz%2Fpuppet-composer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dazz%2Fpuppet-composer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dazz%2Fpuppet-composer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dazz%2Fpuppet-composer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dazz","download_url":"https://codeload.github.com/dazz/puppet-composer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253774232,"owners_count":21962198,"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":"2025-03-31T23:58:20.422Z","updated_at":"2025-10-04T16:19:31.296Z","avatar_url":"https://github.com/dazz.png","language":"Puppet","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Puppet module to install composer\n\n## Description\n\ninstall php composer - from http://getcomposer.org/ with puppet-composer module\n\n## Installation\n\n    git submodule add git://github.com/dazz/puppet-composer.git modules/composer\n\n## Requirements\n\nThis requires additional modues in your project:\n\n    git submodule add git://github.com/puppetlabs/puppetlabs-apt.git modules/apt\n    git submodule add git://github.com/puppetlabs/puppetlabs-stdlib.git modules/stdlib\n    git submodule add git://github.com/camptocamp/puppet-augeas.git modules/augeas\n\n### puppetlabs-apt and puppetlabs-stdlib\n\nUsed for running `apt-get update` at least once before any package is installed.\npuppetlabs-apt has the puppetlabs-stdlib as dependency.\n\n### puppet-augeas\n\nAugeas is a command line tool to manipulate configuration from the shell. see for more [augeas.net](http://augeas.net/)\nComposer needs some php-ini values set. The modifications are handled by augeas.\n\n### PHP5-CLI\n\nTo run composer the package php5-cli needs to be installed.\n\n## Usage\n\nIn your manifest.pp:\n\n    ## top block to call apt-get update at least once ##\n    include apt::update\n    Exec { path =\u003e ['/usr/local/bin', '/opt/local/bin', '/usr/bin', '/usr/sbin', '/bin', '/sbin'], logoutput =\u003e true }\n    Exec[\"apt_update\"] -\u003e Package \u003c| |\u003e\n    ## end top block ##\n\n    class {\"composer\":\n      target_dir      =\u003e '/usr/local/bin',\n      composer_file   =\u003e 'composer',\n      download_method =\u003e 'curl', # download methods are curl or wget\n      logoutput       =\u003e false\n    }\n\n\nThe final file is just called `composer`. It is placed into the `target_dir` you specified in your manifest.\nIf you chose a path that is in the search path for executable files `composer` can be run from anywhere (see `PATH`).\n\n\n## Todo\n\n* add php5-cli install path as parameter\n\n## puppet-composer v0.8\n\n* install php5-cli package\n* modify php5-cli ini for running composer\n* download composer with curl or wget method\n* copy composer.phar to search path for executable files\n* run composer self-update (runs every time)\n\n## Motivation and call for participation\n\nI developed this module for installing the Symfony2 framework vendors. It is used in the [try-symfony2](https://github.com/dazz/try-symfony2) (still in beta, see develop branch) project .If you want to add to this puppet module please fork the develop branch (as I am working with `git-flow`) and send me a pull request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdazz%2Fpuppet-composer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdazz%2Fpuppet-composer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdazz%2Fpuppet-composer/lists"}