benjaminhaeberli/php-skeleton

โœจ A modern PHP skeleton that includes CI/CD, PHPStan, Pest & more.

v0.1.0 2024-04-11 11:23 UTC

This package is auto-updated.

Last update: 2025-03-12 00:44:54 UTC


README

Skeleton Php

GitHub Workflow Status (main) Total Downloads GitHub Release GitHub Release Date GitHub License

Getting started ๐Ÿ”Ž

Requirements

Installation

You can create a new repository on GitHub or download the ZIP of the latest release.

You can also install it using composer :

composer create-project benjaminhaeberli/php-skeleton --prefer-source YourApp

Then, install composer packages :

composer install

Commands โŒจ๏ธ

More details in composer.json

Common

๐Ÿงน Keep a modern codebase with Pint (see default config)

composer pint

โš—๏ธ Run static analysis using PHPStan

composer phpstan

โœ… Run unit tests using PEST

composer pest

๐Ÿš€ Run the entire test suite

composer test

๐Ÿงฐ Validate composer.json and update dependencies

composer core:update

๐Ÿ“ˆ Expose code coverage using PEST (require XDEBUG in coverage mode)

composer pest:coverage

Code quality & refactoring

๐Ÿ’Ž Measure the code quality with PHPInsights (see config\insights.php)

composer phpinsights

โœ… Run refactors using Rector

composer rector

PHP skeleton is maintained by Benjamin Haeberli under the MIT license.