{"id":51848826,"url":"https://github.com/k-kinzal/php-ai-toolkit","last_synced_at":"2026-07-23T16:30:38.312Z","repository":{"id":369407238,"uuid":"1188655807","full_name":"k-kinzal/php-ai-toolkit","owner":"k-kinzal","description":"A comprehensive toolkit for AI-assisted PHP development — PHPStan rules, PHPUnit reporters, config templates, and more","archived":false,"fork":false,"pushed_at":"2026-07-05T05:58:02.000Z","size":488,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-07-05T07:13:09.370Z","etag":null,"topics":["ai","ai-coding-assistant","code-quality","custom-rules","developer-tools","php","phpstan","phpunit","static-analysis","toolkit"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/k-kinzal/php-ai-toolkit","language":"PHP","has_issues":false,"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/k-kinzal.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-03-22T11:59:15.000Z","updated_at":"2026-07-05T05:58:06.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/k-kinzal/php-ai-toolkit","commit_stats":null,"previous_names":["k-kinzal/php-ai-toolkit"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/k-kinzal/php-ai-toolkit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k-kinzal%2Fphp-ai-toolkit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k-kinzal%2Fphp-ai-toolkit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k-kinzal%2Fphp-ai-toolkit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k-kinzal%2Fphp-ai-toolkit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/k-kinzal","download_url":"https://codeload.github.com/k-kinzal/php-ai-toolkit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k-kinzal%2Fphp-ai-toolkit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35809504,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-07-20T02:08:10.276Z","status":"online","status_checked_at":"2026-07-23T02:00:06.683Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["ai","ai-coding-assistant","code-quality","custom-rules","developer-tools","php","phpstan","phpunit","static-analysis","toolkit"],"created_at":"2026-07-23T16:30:37.606Z","updated_at":"2026-07-23T16:30:38.301Z","avatar_url":"https://github.com/k-kinzal.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# php-ai-toolkit\n\nA PHPStan extension that detects anti-patterns commonly introduced by AI code generation, plus output formatters optimized for both AI agents and humans.\n\n## Requirements\n\n- PHP ^8.0\n- PHPStan ^1.12 || ^2.0\n- PHPUnit ^9.6 || ^10.5 || ^11 || ^12 || ^13\n\nThe PHPUnit test reporter supports PHPUnit 9.6 and 10.5 or later through\nversion-specific adapters. PHPUnit 10+ uses the event extension API, while\nPHPUnit 9.6 uses the legacy listener API.\n\n## Quick Start\n\n### 1. Install\n\nThis package is not published on Packagist. Install it from the VCS repository by adding the repository to your `composer.json`:\n\n```json\n{\n    \"repositories\": [\n        {\n            \"type\": \"vcs\",\n            \"url\": \"https://github.com/k-kinzal/php-ai-toolkit.git\"\n        }\n    ]\n}\n```\n\nThen require it as a dev dependency:\n\n```bash\ncomposer require --dev k-kinzal/php-ai-toolkit\n```\n\n### 2. Install AI Agent Skills\n\n```bash\nvendor/bin/php-ai-toolkit install\n```\n\nAuto-detects AI agent directories (`.claude`, `.agents`, `.continue`, etc.) in your project root and installs skills. Use `--force` to overwrite, `--copy` to copy instead of symlinking.\n\n### 3. Run setup skills\n\nRun the following skills in your AI agent:\n\n- `/setup-toolkit-phpstan` — PHPStan at level max with strict rules and AI error formatter\n- `/setup-toolkit-phpunit` — PHPUnit with strict configuration and AI test reporter\n- `/setup-toolkit-php-cs-fixer` — PHP-CS-Fixer configuration\n- `/setup-toolkit-loc-guard` — LocGuard metrics checks for production source complexity and length limits\n- `/setup-toolkit-deptrac` — Deptrac architecture dependency rules for web apps, CLI apps, libraries, and modular projects\n- `/setup-toolkit-github-actions` — GitHub Actions CI for tests, lint gates, PHP compatibility, and pinned actions\n- `/setup-toolkit-agents-md` — AGENTS.md with project conventions and AI agent guidelines\n\nEach skill reads your project structure and generates appropriate configuration.\n\n## Documentation\n\n- [PHPStan Rules](docs/phpstan-rules.md) — Custom rules and their error identifiers\n- [PHPStan Configuration](docs/phpstan.md) — PHPStan settings and why each is needed\n- [PHPUnit Configuration](docs/phpunit.md) — PHPUnit settings and why each is needed\n- [PHP-CS-Fixer Configuration](docs/php-cs-fixer.md) — PHP-CS-Fixer settings and why each is needed\n- [LocGuard Configuration](docs/loc-guard.md) — Production source metrics checks and thresholds\n- [Deptrac Configuration](docs/deptrac.md) — Architecture dependency rules and adaptation guidance\n- [GitHub Actions Configuration](docs/github-actions.md) — CI jobs, PHP version coverage, and workflow hardening\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk-kinzal%2Fphp-ai-toolkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fk-kinzal%2Fphp-ai-toolkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk-kinzal%2Fphp-ai-toolkit/lists"}