{"id":14975338,"url":"https://github.com/anglesoft/architect","last_synced_at":"2026-03-03T03:34:29.541Z","repository":{"id":62485955,"uuid":"157427955","full_name":"anglesoft/architect","owner":"anglesoft","description":"📐 Software architecture library for the Laravel Framework.","archived":false,"fork":false,"pushed_at":"2019-02-11T17:28:59.000Z","size":84,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-10T15:43:36.570Z","etag":null,"topics":["architect","architecture","architecture-library","artisan-command","laravel","laravel-framework","php","sprint","tdd"],"latest_commit_sha":null,"homepage":"","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/anglesoft.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":"2018-11-13T18:37:15.000Z","updated_at":"2019-02-11T17:29:05.000Z","dependencies_parsed_at":"2022-11-02T10:01:04.906Z","dependency_job_id":null,"html_url":"https://github.com/anglesoft/architect","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anglesoft%2Farchitect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anglesoft%2Farchitect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anglesoft%2Farchitect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anglesoft%2Farchitect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anglesoft","download_url":"https://codeload.github.com/anglesoft/architect/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241039364,"owners_count":19898672,"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":["architect","architecture","architecture-library","artisan-command","laravel","laravel-framework","php","sprint","tdd"],"created_at":"2024-09-24T13:51:53.471Z","updated_at":"2026-03-03T03:34:24.509Z","avatar_url":"https://github.com/anglesoft.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Architect\nSoftware architecture library for the Laravel Framework.\n\n## Introduction\n\nArchitect provides an expressive way to organize and generate boilerplate classes that will hold your application's business logic. The goal of this package is to implement a component-oriented back-end architecture. By using decoupled components, you may reuse parts of your code accross multiple services (Controllers and various API endpoints).\n\nArchitect will create tests for each classes it generates, encouraging a Test-Driven Development approach within your team.\n\n## Installation\n\n### Composer\n\nFirst, add the Architect package to your dependencies:\n\n```shell\ncomposer require angle/architect\n```\n\n### Run The Architect Installer\n\nTo finish the installation process and configure the package, use the ```architect:install``` Artisan command:\n\n```shell\nphp artisan architect:install\n```\n\n## Generating Sprints\n\nTo create a sprint, use the ```make:sprint``` Artisan command:\n\n```shell\nphp artisan make:sprint \"Create new user\"\n```\n\nThe new sprint will be placed in your ```sprints``` directory (you can set it either during installation, either by editing ```config/architect.php```). Each sprint file name contains a timestamp which allows Laravel to determine the order of the sprints.\n\n## Sprint Structure\n\nA sprint class contains one method: run. This method is used to generate new features, tasks, and tests for each of these.\n\nWithin this method you may use the Architect code Blueprint to expressively create new classes.\n\n```php\n\u003c?php\n\nuse Angle\\Architect\\Sprint;\nuse Angle\\Architect\\Code\\Blueprint;\nuse Angle\\Architect\\Facades\\Architect;\n\nclass CreateNewUserSprint extends Sprint\n{\n    /**\n     * Runs the sprint.\n     *\n     * @return void\n     */\n    public function run()\n    {\n        Architect::feature('Create new user', function (Blueprint $code) {\n            $code-\u003etask('validate request')-\u003eexpect('request')-\u003ereturn('is valid');\n            $code-\u003etask('save user')-\u003eexpect('request')-\u003ereturn('user');\n            $code-\u003etask('send email to administrators')-\u003eexpect('user');\n        });\n    }\n}\n```\n\n## Running Sprints\n\nTo run all of your sprints, execute the ```sprint``` Artisan command:\n\n```\nphp artisan sprint\n```\n\n### Pretending To Run Sprints\n\nYou can safely test your sprint by running the ```sprint``` Artisan command with the ```--pretend``` option:\n\n```\nphp artisan sprint --pretend\n```\n\n### Forcing Sprints To Overwrite Existing Files\n\nYou can force the overwriting of existing files by running the ```sprint``` Artisan command with the ```--force``` option:\n\n```\nphp artisan sprint --force\n```\n\n### Rolling Back Sprints\n\nJust like you do with Laravel Migrations, you can rollback sprints. This will remove any file generated by the last batch. Note: you can also append the ```--pretend``` option in order to preview changes.\n\n```\nphp artisan sprint:rollback\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanglesoft%2Farchitect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanglesoft%2Farchitect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanglesoft%2Farchitect/lists"}