{"id":18598436,"url":"https://github.com/backendtea/architect","last_synced_at":"2026-02-14T03:36:24.609Z","repository":{"id":253511658,"uuid":"841113656","full_name":"BackEndTea/architect","owner":"BackEndTea","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-20T07:28:20.000Z","size":32,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-04T06:30:17.878Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/BackEndTea.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-11T17:18:54.000Z","updated_at":"2024-09-07T09:06:15.000Z","dependencies_parsed_at":"2024-11-07T01:41:14.866Z","dependency_job_id":"ad3fa49f-63eb-49e7-a169-066f32fee786","html_url":"https://github.com/BackEndTea/architect","commit_stats":null,"previous_names":["backendtea/architect"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/BackEndTea/architect","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BackEndTea%2Farchitect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BackEndTea%2Farchitect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BackEndTea%2Farchitect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BackEndTea%2Farchitect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BackEndTea","download_url":"https://codeload.github.com/BackEndTea/architect/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BackEndTea%2Farchitect/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29434207,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T03:34:37.767Z","status":"ssl_error","status_checked_at":"2026-02-14T03:34:09.092Z","response_time":53,"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":[],"created_at":"2024-11-07T01:32:41.780Z","updated_at":"2026-02-14T03:36:24.573Z","avatar_url":"https://github.com/BackEndTea.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Architect\n\nArchitect helps enforce architectural decisions in your PHP projects. \n\nFor example, you can enforce that the `src/` folder does not use the `test/` folder,\nor you can enforce a layered architecture, where you split up your code in a `Domain`, `Application`, \nand `Infrastructure` layer, where layers can only have dependencies inward.\n\nArchitect is currently very much in beta, so any provided feedback is really helpful.\n\n## Installation\n\n```bash\ncomposer require backendtea/architect --dev\n```\n\n## Usage\n\n### Config\n\nArchitect uses a php config file, by default it uses `architect.php` in the current directory.\nYou can pass another file with the `-c` flag if so desired.\n\nA basic configuration file, which checks the `src` and `tests` folder files,\nand has the `layered architecture` and `no src to test` rulesets.\n\n```php\n\u003c?php\n\nuse BackEndTea\\Architect\\Domain\\Config\\ConfigurationBuilder;\nuse BackEndTea\\Architect\\Domain\\Rule\\RuleFactory;\nuse Symfony\\Component\\Finder\\Finder;\n\nreturn ConfigurationBuilder::create()\n    -\u003epaths(Finder::create()\n        -\u003ein('src')\n        -\u003ein('tests')\n        -\u003ename('*.php')\n        -\u003efiles())\n    -\u003eaddRule(\n        RuleFactory::layeredArchitecture(),\n        RuleFactory::noSrcToTest(),\n    )\n;\n```\n\n## Running Architect\n\nWhen you have a configuration, you can run architect with:\n\n```bash\nvendor/bin/architect\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbackendtea%2Farchitect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbackendtea%2Farchitect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbackendtea%2Farchitect/lists"}