{"id":23359811,"url":"https://github.com/firehed/php-project-template","last_synced_at":"2025-04-07T20:46:31.634Z","repository":{"id":38301940,"uuid":"424663964","full_name":"Firehed/php-project-template","owner":"Firehed","description":null,"archived":false,"fork":false,"pushed_at":"2023-03-02T11:00:11.000Z","size":153,"stargazers_count":1,"open_issues_count":15,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-13T22:27:01.783Z","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/Firehed.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":"2021-11-04T16:27:13.000Z","updated_at":"2023-02-14T18:09:49.000Z","dependencies_parsed_at":"2024-12-21T11:12:14.419Z","dependency_job_id":"4fcec2ae-4344-4d62-8ea8-466d848bf07b","html_url":"https://github.com/Firehed/php-project-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":"Firehed/php-library-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Firehed%2Fphp-project-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Firehed%2Fphp-project-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Firehed%2Fphp-project-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Firehed%2Fphp-project-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Firehed","download_url":"https://codeload.github.com/Firehed/php-project-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247729476,"owners_count":20986392,"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-12-21T11:12:02.111Z","updated_at":"2025-04-07T20:46:31.265Z","avatar_url":"https://github.com/Firehed.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# php-project-template\nRepository template for PHP projects. Sets up composer, docker builds CI with Github Actions, and more.\n\n## PHP\n- Ships with version `8.1`\n- Includes `apcu` and `opcache` extensions for performance\n- Includes `pdo-mysql` as a default database connector\n\n### Code Quality\n- Includes PHPUnit, PHPCS, and PHPStan\n- All are preconfigured and run during CI (See below)\n\n### Configuration\n- Provides a PSR-11 container for DI\n- Sets up support for `.env`\n\n## Git\n- Configures `.gitignore` for common excludes in a PHP project\n\n## Docker\n- Comes with a preconfigured basic Dockerfile\n- Comes with a preconfigured `docker-compose` file\n- Produces build stages for testing and deployment\n- **You will want to customize it**: it uses the built-in web-server, which is _not_ production-ready\n- `.dockerignore` also included for build optimizations\n\n## Composer\n- Placeholders for library name, description, and PSR-4 autoloading\n- Scripts for testing\n- Requires current version of PHP\n- Includes testing tools (configured) as dev dependencies\n\n## Database\n- Comes with MySQL 8 in docker-compose, and the application configured to connect to it\n- Comes with `doctrine/orm` pre-configured (using PHP 8 Attributes)\n- Comes with `doctrine/migrations` pre-configured for schema changes\n\n## Testing and CI\nCI is configured using Github Actions.\n\n- PHPUnit `^9.3` with default configuration (`src`/`tests`).\n    - Produces code coverage report\n    - Uploads to `codecov`\n- PHPStan with strict ruleset, max level, and the PHPUnit extension\n- PHP Code Sniffer configured with PSR-12\n- Builds and pushes Docker images. The `server` stage is what you'll want to run\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirehed%2Fphp-project-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffirehed%2Fphp-project-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirehed%2Fphp-project-template/lists"}