{"id":16666510,"url":"https://github.com/patricknelson/graph-composer-docker","last_synced_at":"2026-04-17T09:32:30.612Z","repository":{"id":47142561,"uuid":"405522404","full_name":"patricknelson/graph-composer-docker","owner":"patricknelson","description":"Container image for running an isolated instance of graph-composer.","archived":false,"fork":false,"pushed_at":"2021-09-12T03:41:31.000Z","size":21,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-15T03:41:23.779Z","etag":null,"topics":["dependency","docker","graph","graph-composer","php"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/patricknelson.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":"2021-09-12T01:51:43.000Z","updated_at":"2023-03-05T04:30:19.000Z","dependencies_parsed_at":"2022-09-04T19:00:57.326Z","dependency_job_id":null,"html_url":"https://github.com/patricknelson/graph-composer-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/patricknelson/graph-composer-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patricknelson%2Fgraph-composer-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patricknelson%2Fgraph-composer-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patricknelson%2Fgraph-composer-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patricknelson%2Fgraph-composer-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/patricknelson","download_url":"https://codeload.github.com/patricknelson/graph-composer-docker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patricknelson%2Fgraph-composer-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31923150,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T09:10:15.403Z","status":"ssl_error","status_checked_at":"2026-04-17T09:10:14.455Z","response_time":62,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["dependency","docker","graph","graph-composer","php"],"created_at":"2024-10-12T11:11:13.984Z","updated_at":"2026-04-17T09:32:30.596Z","avatar_url":"https://github.com/patricknelson.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# graph-composer-docker\n\nContainer image for running an isolated instance of the [`graph-composer`](https://github.com/clue/graph-composer#installation-using-composer)\ntool without having to install any of _its_ dependencies locally (such as `graphviz`, `composer` or even `php`).\n\n**NOTE:** The `show` command will not work since this is running inside of a container. It's recommended that you use\nthe `export` command instead.\n\n\n# Quick start\n\nLaunch an interactive shell and then just run `graph-composer.phar` as usual.\n\n```bash\n# Generic (replace LOCAL_PATH)\ndocker run -it --rm -v LOCAL_PATH:/graph-composer patricknelson/graph-composer-docker sh\n\n# ... then run graph-composer.phar as usual...\ngraph-composer.phar export \u003e graph.svg\n```\n\nOr, if you're lazy like me and don't want to type out your `LOCAL_PATH` every time and simply use the current directory:\n\n```bash\n# Relative to current directory (MacOS/Linux)\ndocker run -it --rm -v \"$(pwd):/graph-composer\" patricknelson/graph-composer-docker sh\n\n# Relative to current directory (Windows with cygwin)\ndocker run -it --rm -v \"$(cygpath -am .):/graph-composer\" patricknelson/graph-composer-docker sh\n```\n\nPack it into a single command (more complex). Note that you will have issues exporting to binary formats like `png`.\n\n```bash\n# Export to SVG in the current working directory (on host machine, which may vary from the LOCAL_PATH volume mount).\ndocker run -it --rm -v LOCAL_PATH:/graph-composer patricknelson/graph-composer-docker graph-composer.phar export \u003e graph.svg\n\n# Export directly to PNG file into the LOCAL_PATH NOTE: This version requires  passing\n# through 'sh' since redirecting output from docker may not be binary compatible.\ndocker run -it --rm -v LOCAL_PATH:/graph-composer sh -c '/usr/local/bin/graph-composer.phar export --format=png \u003e graph.pngpatricknelson/graph-composer-docker \"\n```\n\n\n# Build and run locally\n\n```bash\ngit clone git@github.com:patricknelson/graph-composer-docker.git\ndocker build . -t graph-composer-docker\n```\n\nOnce built, just drop into an interactive shell:\n\n```bash\n# Drop into interactive shell.\ndocker run -it --rm graph-composer-docker -v LOCAL_PATH:/graph-composer sh\n```\n\nNote: Make sure to replace `LOCAL_PATH` with the path to the project directory you want to start generating dependency\ngraphs for. See [quick start](#quick-start) for some more system specific alternatives to `LOCAL_PATH`.\n\n\n# Development of this image\n\nThis works by building `graph-composer.phar` from source ([clue/graph-composer](https://github.com/clue/graph-composer#installation-using-composer))\nusing `composer` and bundling it into a small PHP-based image.\n\nTo launch, just use `docker-compose up` and then load up an interactive shell:\n\n```bash\ndocker-compose up -d --build\ndocker-compose exec app sh\n\n# Don't forget to clean up when finished...\ndocker-compose down\n```\n\nIf you'd like to contribute, feel free to submit an issue or PR!\n\n\n# License\n\nReleased under GPL v3 (or later). See [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatricknelson%2Fgraph-composer-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatricknelson%2Fgraph-composer-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatricknelson%2Fgraph-composer-docker/lists"}