{"id":17489346,"url":"https://github.com/igorbrites/entity-generator-php","last_synced_at":"2025-07-08T10:04:20.815Z","repository":{"id":34735206,"uuid":"38713423","full_name":"igorbrites/entity-generator-php","owner":"igorbrites","description":"Batch to generate entities based on a database","archived":false,"fork":false,"pushed_at":"2015-11-05T13:06:54.000Z","size":164,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-02T16:34:12.823Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/igorbrites.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-07T20:36:30.000Z","updated_at":"2023-06-27T20:35:23.000Z","dependencies_parsed_at":"2022-09-15T03:51:46.296Z","dependency_job_id":null,"html_url":"https://github.com/igorbrites/entity-generator-php","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/igorbrites%2Fentity-generator-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igorbrites%2Fentity-generator-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igorbrites%2Fentity-generator-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igorbrites%2Fentity-generator-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/igorbrites","download_url":"https://codeload.github.com/igorbrites/entity-generator-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246059336,"owners_count":20717085,"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-19T05:24:36.968Z","updated_at":"2025-03-28T16:17:24.611Z","avatar_url":"https://github.com/igorbrites.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Entity Generator for PHP\n\n### Generates entities based on database\n\nTo use it, install via composer:\n\n```\ncomposer global require igorbrites/entity-generator=dev-master\n```\n\nEdit the `config.json` with the options below:\n- `namespace`: The namespace of the entities. Default: `null` (e.g.: `My\\\\Awesome\\\\Namespace`);\n- `output-dir`: (Required!) The output folder (e.g.: `/home/ubuntu/entities`);\n- `date-type`: The date fields type. Default `\\DateTime` (e.g.: `\\\\Carbon\\\\Carbon`);\n- `extends`: The class that the entities extends. Default `null` (e.g.: `\\\\My\\\\Awesome\\\\Class`);\n- `fk-pattern`: The pattern that fit your FKs. Default `([a-z_]+)_id` (e.g.: `id([a-z_]+)`);\n- `database`: (Required!) The database connection parameters:\n    - `schema`: The database name. Default `database`;\n    - `host`: The database host. Default `127.0.0.1`;\n    - `user`: The database user. Default `root`;\n    - `password`: The database password. Default ``;\n\nThen, run the command:\n\n```\nentity-generator\n```\n\nIt will generate two folders on the specified output folder, `classes` and `tests`, with your entities.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figorbrites%2Fentity-generator-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Figorbrites%2Fentity-generator-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figorbrites%2Fentity-generator-php/lists"}