{"id":38534599,"url":"https://github.com/mamchenkov/CakePHP-GraphViz-Models","last_synced_at":"2026-01-25T02:01:12.203Z","repository":{"id":62523185,"uuid":"1714748","full_name":"mamchenkov/CakePHP-GraphViz-Models","owner":"mamchenkov","description":"A tool to generate a graph of model relationships","archived":false,"fork":false,"pushed_at":"2020-02-08T13:29:51.000Z","size":32,"stargazers_count":24,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-08-06T16:35:20.540Z","etag":null,"topics":["cakephp","dot","graphviz","php"],"latest_commit_sha":null,"homepage":"http://mamchenkov.net","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mamchenkov.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":"2011-05-07T08:16:26.000Z","updated_at":"2021-01-19T18:36:33.000Z","dependencies_parsed_at":"2022-11-02T15:31:49.762Z","dependency_job_id":null,"html_url":"https://github.com/mamchenkov/CakePHP-GraphViz-Models","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mamchenkov/CakePHP-GraphViz-Models","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mamchenkov%2FCakePHP-GraphViz-Models","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mamchenkov%2FCakePHP-GraphViz-Models/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mamchenkov%2FCakePHP-GraphViz-Models/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mamchenkov%2FCakePHP-GraphViz-Models/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mamchenkov","download_url":"https://codeload.github.com/mamchenkov/CakePHP-GraphViz-Models/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mamchenkov%2FCakePHP-GraphViz-Models/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28677718,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T01:00:35.747Z","status":"online","status_checked_at":"2026-01-23T02:00:08.296Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["cakephp","dot","graphviz","php"],"created_at":"2026-01-17T07:00:28.915Z","updated_at":"2026-01-25T02:01:12.190Z","avatar_url":"https://github.com/mamchenkov.png","language":"PHP","funding_links":[],"categories":["Debugging"],"sub_categories":[],"readme":"CakePHP GraphViz Relations\n-----------------------\n\nThis is a CakePHP shell that will find all models in your CakePHP application and\nplugins, figure out the relationships between them, and will build a nice graph,\nvisualzing those relationships for you.\n\nIt supports CakePHP 2.x, and requires PHP 5.3.3 or greater.  But there\nare numerous ways it can fail to work for you.  If it does fail, please let me\nknow and I'll try to fix it.\n\n\nIntallation via Composer\n\n```\nrequire: {\n\t\"mamchenkov/cakephp-graphviz-models\": \"dev-master\"\n}\n```\n\nLoad plugin in `app/Config/bootstrap.php`\n\n```php\nCakePlugin::load('GraphVizRelations');\n```\n\n\nRequirements\n------------\n\nSince version 2.1 (Angry Blue Octopus On Steroids), this script relies on phpDocumentor/Graphviz\npackage, rather than directly on the command-line dot tool.\nBut you will need to install the Graphviz command line tool incl. dot.\n\n\nUsage\n-----\n\nThe simplest way to use this shell is just to run it via CakePHP console:\n\n```\n$ Console/cake GraphVizRelations.graph\n```\n\nThis should generate a graph.png image in your current directory.  Please have a look.\n\nIf you need more control, there are two options that this shell understand from the\ncommand line: filename and format.   You can use either the filename option like so:\n\n```\n$ Console/cake GraphVizRelations.graph /tmp/my_models.png\n```\n\nOr you can use both options together like so:\n\n```\n$ Console/cake GraphVizRelations.graph /tmp/my_models.svg svg\n```\n\nNo special magic is done about the filename.  What You Give Is What You Get.  As for the\nformat, you can use anything that GraphViz supports and understands.\n\nIf you are still looking for more control, have a look inside the script.  There are\nplenty of settings, options, parameters, and comments for you to make sense of it all. It\nmight be helpful to get familiar with GraphViz Dot Language, just to feel a tiny bit more\nconfident.\n\nEnjoy!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmamchenkov%2FCakePHP-GraphViz-Models","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmamchenkov%2FCakePHP-GraphViz-Models","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmamchenkov%2FCakePHP-GraphViz-Models/lists"}