{"id":27160990,"url":"https://github.com/flownative/docker-composer","last_synced_at":"2026-04-18T17:02:26.684Z","repository":{"id":142961430,"uuid":"233654610","full_name":"flownative/docker-composer","owner":"flownative","description":"Image providing PHP and composer for build purposes (used by the Beach builder.)","archived":false,"fork":false,"pushed_at":"2025-02-20T08:56:43.000Z","size":107,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-02-20T09:38:07.865Z","etag":null,"topics":["composer","docker-image","php","release-automation"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/flownative.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":["robertlemke"]}},"created_at":"2020-01-13T17:36:07.000Z","updated_at":"2025-02-20T08:56:05.000Z","dependencies_parsed_at":"2024-02-22T12:28:34.201Z","dependency_job_id":"014cc9ac-09a6-41f8-8a16-8d78f73c0422","html_url":"https://github.com/flownative/docker-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/flownative%2Fdocker-composer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flownative%2Fdocker-composer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flownative%2Fdocker-composer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flownative%2Fdocker-composer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flownative","download_url":"https://codeload.github.com/flownative/docker-composer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247947857,"owners_count":21023066,"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":["composer","docker-image","php","release-automation"],"created_at":"2025-04-09T00:08:28.947Z","updated_at":"2026-04-18T17:02:21.623Z","avatar_url":"https://github.com/flownative.png","language":"Shell","funding_links":["https://github.com/sponsors/robertlemke"],"categories":[],"sub_categories":[],"readme":"[![MIT license](http://img.shields.io/badge/license-MIT-brightgreen.svg)](http://opensource.org/licenses/MIT)\n[![Maintenance level: Love](https://img.shields.io/badge/maintenance-%E2%99%A1%E2%99%A1%E2%99%A1-ff69b4.svg)](https://www.flownative.com/en/products/open-source.html)\n\n# Composer Docker Image\n\nThis Docker image provides [Composer](https://getcomposer.org/) based on\nthe Flownative Beach PHP images. By configuring your shell you can use\nthis image as a replacement for a regular locally installed Composer.\n\nYou may want to use this solution if you need to maintain projects using\nComposer and Local Beach or Flownative Beach, because the PHP images\nused for the development and hosting environment will be exactly the\nsame like the one used as a base for this image.\n\n## Shell Configuration\n\nTo simplify the `docker run` calls, you may want to configure your shell\nto do the heavy lifting for you. The easiest way is to declare functions\nin your `.bashrc`, `.zshrc` or other shell profile.\n\nFor example, in order to use Composer based on PHP 7.4 with ZSH, add the\nfollowing to your `.zshrc` or the like:\n\n```\ncomposer74 () {\n    tty=\n    tty -s \u0026\u0026 tty=--tty\n    docker run \\\n        $tty \\\n        --interactive \\\n        --rm \\\n        --user $(id -u):$(id -g) \\\n        --volume /etc/passwd:/etc/passwd:ro \\\n        --volume /etc/group:/etc/group:ro \\\n        --volume $(pwd):/application:delegated \\\n        --volume $HOME/.composer/cache:/home/composer/cache:delegated \\\n        --volume $HOME/.composer/auth.json:/home/composer/auth.json \\\n        flownative/composer:7.4 \"$@\"\n}\n```\n\nNow you can run Composer simply by running something like the following:\n\n```\ncomposer74 -v update\n```\n\n## Private Packagist\n\nIf dependencies are located in Private Packagist, you need to provide\nthe HTTP Basic Auth credentials to the Composer container via the\n`COMPOSER_AUTH` environment variable. Credentials are provided as a JSON\nstring ( [see Composer documentation](https://getcomposer.org/doc/articles/http-basic-authentication.md)).\n\n```\ncomposer74 () {\n    tty=\n    tty -s \u0026\u0026 tty=--tty\n    docker run \\\n        $tty \\\n        --interactive \\\n        --rm \\\n        --user $(id -u):$(id -g) \\\n        -e COMPOSER_AUTH=\"{\"http-basic\":{\"repo.packagist.com\":{\"username\":\"token\",\"password\":\"a524b…8ace\"}}\" \\\n        --volume /etc/passwd:/etc/passwd:ro \\\n        --volume /etc/group:/etc/group:ro \\\n        --volume $(pwd):/application:delegated \\\n        --volume $HOME/.composer/cache:/home/composer/cache:delegated \\\n        --volume $HOME/.composer/auth.json:/home/composer/auth.json \\\n        flownative/composer:7.4 \"$@\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflownative%2Fdocker-composer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflownative%2Fdocker-composer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflownative%2Fdocker-composer/lists"}