{"id":18553739,"url":"https://github.com/websemantics/pyro-entity","last_synced_at":"2025-05-15T11:34:04.487Z","repository":{"id":29015518,"uuid":"32542718","full_name":"websemantics/pyro-entity","owner":"websemantics","description":"An Entity is a representation of an Object Type which may correspond with a Stream,.. for example, a Person, a Company or an Animal can all be generated as Pyro Entities","archived":false,"fork":false,"pushed_at":"2015-03-30T03:39:31.000Z","size":208,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-17T11:12:05.643Z","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/websemantics.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-03-19T19:47:02.000Z","updated_at":"2021-01-13T19:45:20.000Z","dependencies_parsed_at":"2022-09-04T23:10:44.464Z","dependency_job_id":null,"html_url":"https://github.com/websemantics/pyro-entity","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/websemantics%2Fpyro-entity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/websemantics%2Fpyro-entity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/websemantics%2Fpyro-entity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/websemantics%2Fpyro-entity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/websemantics","download_url":"https://codeload.github.com/websemantics/pyro-entity/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254330982,"owners_count":22053087,"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-11-06T21:18:09.703Z","updated_at":"2025-05-15T11:34:04.458Z","avatar_url":"https://github.com/websemantics.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"#PyroEntity\n\nAn Entity is a representation of an Object Type which may correspond with a Stream,.. for example, a Person, a Company or an Animal can all be generated as Pyro Entities\n\n#{{entity_name}} Entity\n\n{{description}}\n\n#Install\n\n(1) Move the Http folder to your module's corresponding Http folder.\n\n(2) Add the following lines to your Module's ServiceProvider: {{module_name}}ModuleServiceProvider.\n\n\n    /**\n     * The class bindings.\n     *\n     * @var array\n     */\n    protected $bindings = [\n        '{{vendor_name}}\\\\{{module_name}}Module\\\\{{entity_name}}\\\\{{entity_name}}Model' =\u003e '{{vendor_name}}\\\\{{module_name}}Module\\\\{{entity_name}}\\\\{{entity_name}}Model'\n    ];\n\n    /**\n     * The singleton bindings.\n     *\n     * @var array\n     */\n    protected $singletons = [\n        '{{vendor_name}}\\\\{{module_name}}Module\\\\{{entity_name}}\\Contract\\\\{{entity_name}}RepositoryInterface' =\u003e '{{vendor_name}}\\\\{{module_name}}Module\\\\{{entity_name}}\\\\{{entity_name}}Repository',\n    ];\n\n\n    /**\n     * The addon routes.\n     *\n     * @var array\n     */\n    protected $routes = [\n        'admin/{{toLowerCase module_name}}/{{toLowerPlural entity_name}}'            =\u003e '{{vendor_name}}\\\\{{module_name}}Module\\Http\\Controller\\Admin\\\\{{toPlural entity_name}}Controller@index',\n        'admin/{{toLowerCase module_name}}/{{toLowerPlural entity_name}}/create'     =\u003e '{{vendor_name}}\\\\{{module_name}}Module\\Http\\Controller\\Admin\\\\{{toPlural entity_name}}Controller@create',\n        'admin/{{toLowerCase module_name}}/{{toLowerPlural entity_name}}/edit/{id}'  =\u003e '{{vendor_name}}\\\\{{module_name}}Module\\Http\\Controller\\Admin\\\\{{toPlural entity_name}}Controller@edit',\n    ];\n\n(3) Add the following code to the Module's sections in {{module_name}}Module.php\n\n    /**\n     * The module sections.\n     *\n     * @var array\n     */\n    protected $sections = [\n        '{{toLowerPlural entity_name}}'  =\u003e [\n            'buttons' =\u003e [\n                'create'\n            ]\n        ]\n    ];\n\n(4) Update your language file, at for example, 'resources/lang/en/addon.php'\n\n    return [\n        'section'     =\u003e [\n            '{{toLowerPlural entity_name}}' =\u003e '{{toPlural entity_name}}'\n        ]\n    ];\n\n(5) Finally, you can relocate the Plugin and the Seeder classes anywhere in your application.\n\n{{generatedBy}}","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebsemantics%2Fpyro-entity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebsemantics%2Fpyro-entity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebsemantics%2Fpyro-entity/lists"}