{"id":18648257,"url":"https://github.com/capistrano/composer","last_synced_at":"2025-08-21T18:33:34.742Z","repository":{"id":62355199,"uuid":"10531693","full_name":"capistrano/composer","owner":"capistrano","description":"Capistrano extension for Composer tasks","archived":false,"fork":false,"pushed_at":"2019-07-10T13:05:24.000Z","size":28,"stargazers_count":183,"open_issues_count":15,"forks_count":48,"subscribers_count":14,"default_branch":"master","last_synced_at":"2024-12-18T01:20:07.473Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/capistrano.png","metadata":{"files":{"readme":"README.md","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}},"created_at":"2013-06-06T16:59:45.000Z","updated_at":"2024-06-14T18:23:39.000Z","dependencies_parsed_at":"2022-10-31T10:50:29.433Z","dependency_job_id":null,"html_url":"https://github.com/capistrano/composer","commit_stats":null,"previous_names":["roots/capistrano-composer"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capistrano%2Fcomposer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capistrano%2Fcomposer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capistrano%2Fcomposer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capistrano%2Fcomposer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/capistrano","download_url":"https://codeload.github.com/capistrano/composer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230202419,"owners_count":18189457,"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-07T06:29:52.885Z","updated_at":"2024-12-20T03:10:18.280Z","avatar_url":"https://github.com/capistrano.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Capistrano::Composer\n\nComposer support for Capistrano 3.x\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'capistrano', '~\u003e 3.1.0'\ngem 'capistrano-composer'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install capistrano-composer\n\n## Usage\n\nRequire the module in your `Capfile`:\n\n```ruby\nrequire 'capistrano/composer'\n```\n\n`capistrano/composer` comes with 5 tasks:\n\n* composer:install\n* composer:install_executable\n* composer:dump_autoload\n* composer:self_update\n* composer:run\n\nThe `composer:install` task will run before deploy:updated as part of\nCapistrano's default deploy, or can be run in isolation with:\n\n```bash\n$ cap production composer:install\n```\n\nBy default it is assumed that you have the composer executable installed and in your\n`$PATH` on all target hosts.\n\n### Configuration\n\nConfigurable options, shown here with defaults:\n\n```ruby\nset :composer_install_flags, '--no-dev --no-interaction --quiet --optimize-autoloader'\nset :composer_roles, :all\nset :composer_working_dir, -\u003e { fetch(:release_path) }\nset :composer_dump_autoload_flags, '--optimize'\nset :composer_download_url, \"https://getcomposer.org/installer\"\nset :composer_version, '1.0.0-alpha8' #(default: not set)\n```\n\n### Installing composer as part of a deployment\n\nAdd the following to `deploy.rb` to manage the installation of composer during\ndeployment (composer.phar is install in the shared path).\n\n```ruby\nSSHKit.config.command_map[:composer] = \"php #{shared_path.join(\"composer.phar\")}\"\n\nnamespace :deploy do\n  after :starting, 'composer:install_executable'\nend\n```\n\n### Accessing composer commands directly\n\nThis library also provides a `composer:run` task which allows access to any\ncomposer command.\n\nFrom the command line you can run\n\n```bash\n$ cap production composer:run['status','--profile']\n```\n\nOr from within a rake task using capistrano's `invoke`\n\n```ruby\ntask :my_custom_composer_task do\n  invoke \"composer:run\", :update, \"--dev --prefer-dist\"\nend\n```\n\n### Removing the default install task\n\nIf you do not want to run the default install task on `deploy:updated`, (for \nexample, if you do not have root level dependencies stored in a `composer.json`\nyou can remove it by adding the following line to your `config/deploy.rb`:\n\n```ruby\nRake::Task['deploy:updated'].prerequisites.delete('composer:install')\n```\n\nYou can then call `composer.install` task within your own defined tasks, at an \nappropriate juncture.\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcapistrano%2Fcomposer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcapistrano%2Fcomposer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcapistrano%2Fcomposer/lists"}