{"id":17780663,"url":"https://github.com/matheusfsc28/layercraft","last_synced_at":"2026-01-28T10:35:08.308Z","repository":{"id":258713625,"uuid":"875412766","full_name":"matheusfsc28/layercraft","owner":"matheusfsc28","description":"LayerCraft is a Composer package designed to streamline the creation of layered architecture in Laravel applications. This package automates the generation of necessary folders and templates for classes and interfaces, significantly reducing development time and enhancing code organization.","archived":false,"fork":false,"pushed_at":"2024-10-21T00:28:05.000Z","size":22,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-18T11:01:36.839Z","etag":null,"topics":["composer","craft","laravel","layer","layercraft","layered-architecture","package","php"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/matheusfsc28/layercraft","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/matheusfsc28.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2024-10-19T22:49:27.000Z","updated_at":"2025-09-03T13:43:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"9a823f11-86cd-4286-9718-16b9475ce8cf","html_url":"https://github.com/matheusfsc28/layercraft","commit_stats":null,"previous_names":["matheusfsc28/layercraft"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/matheusfsc28/layercraft","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matheusfsc28%2Flayercraft","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matheusfsc28%2Flayercraft/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matheusfsc28%2Flayercraft/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matheusfsc28%2Flayercraft/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matheusfsc28","download_url":"https://codeload.github.com/matheusfsc28/layercraft/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matheusfsc28%2Flayercraft/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28844014,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T07:39:25.367Z","status":"ssl_error","status_checked_at":"2026-01-28T07:39:24.487Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["composer","craft","laravel","layer","layercraft","layered-architecture","package","php"],"created_at":"2024-10-27T03:03:27.622Z","updated_at":"2026-01-28T10:35:08.303Z","avatar_url":"https://github.com/matheusfsc28.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Langs\n\n- [PT-BR 🇧🇷](#layercraft_pt)\n- [EN-US 🇺🇸](#layercraft_en)\n\n# LayerCraft_PT\n\nLayerCraft é um pacote para gerar uma arquitetura em camadas (Controller, Service, Interface, Repository, Model) em aplicações Laravel. Ele facilita a organização do código e promove boas práticas de desenvolvimento de maneira ágil.\n\n## Instalação\n\nVocê pode instalar o pacote via Composer. Execute o seguinte comando no seu terminal:\n\n```bash\ncomposer require matheusfsc28/layercraft\n```\n\n## Como usar\n\nNo seu terminal, na pasta do seu projeto Laravel, execute o seguinte comando:\n\n```bash\nphp artisan layercraft \u003cYourClassName\u003e\n```\n\nIsso criará a seguinte estrutura no projeto:\n\n```bash\n/seu-projeto\n├── app/\n│   ├── Http/\n│   │   └── Controllers/\n│   │       └── \u003cYourClassName\u003eController.php\n│   ├── Interfaces/\n│   │   └── \u003cYourClassName\u003eInterface.php\n│   ├── Models/\n│   │   └── \u003cYourClassName\u003e.php\n│   ├── Repositories/\n│   │   └── \u003cYourClassName\u003eRepository.php\n│   └── Services/\n│       └── \u003cYourClassName\u003eService.php\n```\n\nVocê também pode criar suas subpastas para manter a organização de acordo com suas necessidades:\n\n```bash\nphp artisan layercraft \u003cYourSubFolder\u003e\\\u003cYourClassName\u003e\n```\n\nA estrutura ficará da seguinte maneira:\n\n```bash\n/seu-projeto\n├── app/\n│   ├── Http/\n│   │   └── Controllers/\n│   │       └── \u003cYourSubFolder\u003e/\n│   │           └── \u003cYourClassName\u003eController.php\n│   ├── Interfaces/\n│   │   └── \u003cYourSubFolder\u003e/\n│   │       └── \u003cYourClassName\u003eInterface.php\n│   ├── Models/\n│   │   └── \u003cYourSubFolder\u003e/\n│   │       └── \u003cYourClassName\u003e.php\n│   ├── Repositories/\n│   │   └── \u003cYourSubFolder\u003e/\n│   │       └── \u003cYourClassName\u003eRepository.php\n│   └── Services/\n│       └── \u003cYourSubFolder\u003e/\n│           └── \u003cYourClassName\u003eService.php\n```\n\n### Estrutura Detalhada\n\n- **Controllers**: Contém a lógica do controlador.\n- **Interfaces**: Define a interface que o repositório deve implementar.\n- **Models**: Representa a entidade no banco de dados.\n- **Repositories**: Contém a lógica de acesso a dados.\n- **Services**: Implementa a lógica de negócios.\n\n## Licença\n\nEste projeto está licenciado sob a Licença MIT. Veja o arquivo LICENSE para mais detalhes.\n\n## Contato\n\nSe você tiver dúvidas ou sugestões, entre em contato:\n\n- **Nome**: Matheus Felipe\n- **Email**: \u003cdev.matheusfelipe@gmail.com\u003e\n- **GitHub**: [![GitHub](https://img.shields.io/badge/GitHub-matheusfsc28-blue?style=flat-square)](https://github.com/matheusfsc28)\n- **LinkedIn**: [![LinkedIn](https://img.shields.io/badge/LinkedIn-matheusfsc28-blue?style=flat-square)](https://www.linkedin.com/in/matheusfsc28)\n\n#\n\n# LayerCraft_EN\n\nLayerCraft is a package to generate a layered architecture (Controller, Service, Interface, Repository, Model) in Laravel applications. It helps organize the code and promotes good development practices in an agile way.\n\n## Installation\n\nYou can install the package via Composer. Run the following command in your terminal:\n\n```bash\ncomposer require matheusfsc28/layercraft\n```\n\n## How to use\n\nIn your terminal in the root of your Laravel project, run the following command:\n\n```bash\nphp artisan layercraft \u003cYourClassName\u003e\n```\n\nThis will create the following structure in the project:\n\n```bash\n/your-project\n├── app/\n│   ├── Http/\n│   │   └── Controllers/\n│   │       └── \u003cYourClassName\u003eController.php\n│   ├── Interfaces/\n│   │   └── \u003cYourClassName\u003eInterface.php\n│   ├── Models/\n│   │   └── \u003cYourClassName\u003e.php\n│   ├── Repositories/\n│   │   └── \u003cYourClassName\u003eRepository.php\n│   └── Services/\n│       └── \u003cYourClassName\u003eService.php\n```\n\nYou can also create your subfolders to keep according to your organization:\n\n```bash\nphp artisan layercraft \u003cYourSubFolder\u003e\\\u003cYourClassName\u003e\n```\n\nThe structure will be as follows:\n\n```bash\n/your-project\n├── app/\n│   ├── Http/\n│   │   └── Controllers/\n│   │       └── \u003cYourSubFolder\u003e/\n│   │           └── \u003cYourClassName\u003eController.php\n│   ├── Interfaces/\n│   │   └── \u003cYourSubFolder\u003e/\n│   │       └── \u003cYourClassName\u003eInterface.php\n│   ├── Models/\n│   │   └── \u003cYourSubFolder\u003e/\n│   │       └── \u003cYourClassName\u003e.php\n│   ├── Repositories/\n│   │   └── \u003cYourSubFolder\u003e/\n│   │       └── \u003cYourClassName\u003eRepository.php\n│   └── Services/\n│       └── \u003cYourSubFolder\u003e/\n│           └── \u003cYourClassName\u003eService.php\n```\n\n## Detailed Structure\n\n- **Controllers**: Contains the controller logic.\n- **Interfaces**: Defines the interface that the repository must implement.\n- **Models**: Represents the entity in the database.\n- **Repositories**: Contains the data access logic.\n- **Services**: Implements the business logic.\n\n## Contact\n\nIf you have any questions or suggestions, please contact:\n\n- **Name**: Matheus Felipe\n- **Email**: \u003cdev.matheusfelipe@gmail.com\u003e\n- **GitHub**: [![GitHub](https://img.shields.io/badge/GitHub-matheusfsc28-blue?style=flat-square)](https://github.com/matheusfsc28)\n- **LinkedIn**: [![LinkedIn](https://img.shields.io/badge/LinkedIn-matheusfsc28-blue?style=flat-square)](https://www.linkedin.com/in/matheusfsc28)\n\n#\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatheusfsc28%2Flayercraft","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatheusfsc28%2Flayercraft","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatheusfsc28%2Flayercraft/lists"}