{"id":17226862,"url":"https://github.com/dantleech/php-diagram","last_synced_at":"2025-03-25T17:48:32.197Z","repository":{"id":66290731,"uuid":"292396541","full_name":"dantleech/php-diagram","owner":"dantleech","description":null,"archived":false,"fork":false,"pushed_at":"2020-09-03T23:22:21.000Z","size":13,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-30T15:44:25.707Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/dantleech.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-02T21:16:54.000Z","updated_at":"2021-02-20T19:55:39.000Z","dependencies_parsed_at":"2023-02-22T13:00:37.788Z","dependency_job_id":null,"html_url":"https://github.com/dantleech/php-diagram","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dantleech%2Fphp-diagram","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dantleech%2Fphp-diagram/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dantleech%2Fphp-diagram/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dantleech%2Fphp-diagram/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dantleech","download_url":"https://codeload.github.com/dantleech/php-diagram/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245515181,"owners_count":20628119,"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-10-15T04:17:25.475Z","updated_at":"2025-03-25T17:48:32.178Z","avatar_url":"https://github.com/dantleech.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"PHP Diagrams\n============\n\n[![Build Status](https://travis-ci.org/dantleech/php-diagrams.svg?branch=master)](https://travis-ci.org/dantleech/php-diagrams)\n\nLibrary to generate flow chart diagrams from a [Mermaid\nDSL](https://mermaid-js.github.io/mermaid/#/flowchart) inspired DSL.\n\nDisclaimer\n----------\n\nThis is a quick proof of concept.\n\nUsage\n-----\n\nGiven `example/mermaid.mm`:\n\n```\ngraph TD\n  A[Christmas] --\u003e|Get money| B[Go shopping]\n  B --\u003e C{Let me think}\n  C --\u003e|One| D[Laptop]\n  C --\u003e|Two| E[iPhone]\n  C --\u003e|Three| F[Car]\n```\n\nRun:\n\n```bash\n$ diagram generate example/mermaid.mm out.png \n```\n\nTo generate:\n\n![image](https://user-images.githubusercontent.com/530801/92037904-6e3c8e00-ed6a-11ea-8337-2bf2e0132407.png)\n\nSupported Markup\n----------------\n\nAll graphs must start with `graph TD` (`TD` is the orientation, but only one\norientation is supported)\n\nStandard nodes\n\n```\nfoobar --\u003e barfoo\n```\n\nRectangle with text\n\n```\nfoobar[This is Foobar] --\u003e barfoo\n```\n\nRhombus with text\n\n```\nfoobar{This is Foobar} --\u003e barfoo\n```\n\nLabel for edge:\n\n```\nfoobar{This is Foobar} --\u003e|and it goes to| barfoo[Barfoo]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdantleech%2Fphp-diagram","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdantleech%2Fphp-diagram","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdantleech%2Fphp-diagram/lists"}