{"id":36977609,"url":"https://github.com/pineal-development/generator","last_synced_at":"2026-01-13T22:46:48.501Z","repository":{"id":44366361,"uuid":"507845629","full_name":"pineal-development/generator","owner":"pineal-development","description":"Automatically generate files for project","archived":false,"fork":false,"pushed_at":"2024-11-06T15:36:58.000Z","size":918,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-25T14:59:05.597Z","etag":null,"topics":["cli","cli-app","cli-generator","cli-tool","code-generation","code-generator","generator","utility"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/matronator/generator","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/pineal-development.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["matronator"],"patreon":"matronator","open_collective":null,"ko_fi":"matronator","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["https://www.paypal.me/matronator","https://www.blockchain.com/btc/address/35VRpVQaqFWjUCnVRpGineShz76QyYgSVg"]}},"created_at":"2022-06-27T09:32:28.000Z","updated_at":"2023-05-12T12:02:01.000Z","dependencies_parsed_at":"2023-01-30T01:15:59.717Z","dependency_job_id":null,"html_url":"https://github.com/pineal-development/generator","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/pineal-development/generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pineal-development%2Fgenerator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pineal-development%2Fgenerator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pineal-development%2Fgenerator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pineal-development%2Fgenerator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pineal-development","download_url":"https://codeload.github.com/pineal-development/generator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pineal-development%2Fgenerator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28403697,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T14:36:09.778Z","status":"ssl_error","status_checked_at":"2026-01-13T14:35:19.697Z","response_time":56,"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":["cli","cli-app","cli-generator","cli-tool","code-generation","code-generator","generator","utility"],"created_at":"2026-01-13T22:46:48.407Z","updated_at":"2026-01-13T22:46:48.491Z","avatar_url":"https://github.com/pineal-development.png","language":"PHP","funding_links":["https://github.com/sponsors/matronator","https://patreon.com/matronator","https://ko-fi.com/matronator","https://www.paypal.me/matronator","https://www.blockchain.com/btc/address/35VRpVQaqFWjUCnVRpGineShz76QyYgSVg"],"categories":[],"sub_categories":[],"readme":"# Matronator/Generator\n\n![MTRGen Logo](.github/logo.png)\n\nAutomatically generate Entity and related files from the console.\n\n## Instalation\n\n```\ncomposer require matronator/generator --dev\n```\n\n#### Troubleshooting\n\nIf you get this error when trying to install:\n\n```\nmatronator/generator dev-master requires composer-runtime-api ^2.2 -\u003e found composer-runtime-api[2.1.0] but it does not match the constraint.\n```\n\nRun this command to update composer to the latest version:\n\n```\ncomposer self-update\n```\n\nIf you can't or don't want to update composer, use version `\"^1.0\"` of this package as that doesn't depend on Composer runtime API 2.2.\n\n## Usage\n\nYou run the script from terminal using this command:\n\n```\n# Start interactive utility that walks you through steps to generate files\nvendor/bin/mtrgen\n\n# To list all available commands\nvendor/bin/mtrgen list\n\n# To see all generate commands\nvendor/bin/mtrgen list generate\n\n# To see usage of generate command\nvendor/bin/mtrgen generate --help\nvendor/bin/mtrgen gen -h\n\n# Generate entity only\nvendor/bin/mtrgen generate:entity EntityName\nvendor/bin/mtrgen gen:e EntityName\n\n# Generate entity, repo and facade\nvendor/bin/mtrgen generate --type=database Name\nvendor/bin/mtrgen gen -t database Name\n```\n\n#### Generating from config file\n\nYou can specify if you want to generate the files from a config by setting the `--config` (or the shorthand `-c`) option to the path to your config file, like this:\n\n```\nvendor/bin/mtrgen generate --config=path/to/config/file.yml\n```\n\nYou can find a sample config file in the `src/` folder under a name `config.sample.yml`. So if you installed this via Composer, it would be in `vendor/matronator/generator/src/config.sample.yml`.\n\n## Roadmap\n\nPlanned features for the project. Will be adding features as I think of them.\n\n* [x] Generate files\n* [x] Generate files from config\n* [x] Generate from templates\n* [x] Generate module files\n  * [x] BasePresenter\n  * [x] Presenter\n  * [x] Templates\n* [ ] Add global config to customize project structure\n  * [ ] Entity Traits to use\n  * [ ] Paths to files and configs\n\n## License\n\nMIT License\n\nCopyright (c) 2022 Matronator\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpineal-development%2Fgenerator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpineal-development%2Fgenerator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpineal-development%2Fgenerator/lists"}