PHPackages                             koriym/php-skeleton - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. koriym/php-skeleton

ActiveLibrary[PSR &amp; Standards](/categories/psr-standards)

koriym/php-skeleton
===================

Generic PHP project skeleton package

1.3.2(1y ago)1793.9k27[1 PRs](https://github.com/koriym/Koriym.PhpSkeleton/pulls)MITPHPPHP ^8.1CI passing

Since Apr 23Pushed 1mo ago16 watchersCompare

[ Source](https://github.com/koriym/Koriym.PhpSkeleton)[ Packagist](https://packagist.org/packages/koriym/php-skeleton)[ Docs](https://github.com/koriym/Koriym.PhpSkeleton)[ RSS](/packages/koriym-php-skeleton/feed)WikiDiscussions 1.x Synced 3w ago

READMEChangelog (10)Dependencies (3)Versions (54)Used By (0)

A standard PHP project skeleton
===============================

[](#a-standard-php-project-skeleton)

Are you tired of copy-pasting your boilerplate PHP code whenever you need to start a new project?

This repository contains a single-line command that will automatically setup for you all the needed code to create a modern, clutter-free and test-oriented PHP package.

It will automatically install the following dependencies:

- [PHPUnit](https://phpunit.readthedocs.io/ja/latest/): provides testing framework.
- [PHP\_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer/wiki): detects violations of a defined set of coding standards.
- [PHPMD](https://phpmd.org): analyze your code to detect sub-optimal or overly complex code.
- [PHPStan](https://phpmd.org): discover bugs in your code without running it.
- [Psalm](https://psalm.dev): - another static analysis tool from Vimeo.
- [Infection](https://infection.github.io/): mutation testing framework to evaluate test quality.
- [ComposerRequireChecker](https://github.com/maglnet/ComposerRequireChecker) Check composer dependencies.

Project Structure
-----------------

[](#project-structure)

After installation, your project will have the following structure:

```
your-project/
├── src/                 # Source code
├── tests/               # Test files
│   └── Fake/            # Test doubles
├── vendor/              # Dependencies
├── vendor-bin/          # Development tool dependencies
├── build/               # Build artifacts (coverage reports, etc.)
├── composer.json        # Project configuration
├── phpcs.xml            # PHP_CodeSniffer configuration
├── phpmd.xml            # PHPMD configuration
├── phpstan.neon         # PHPStan configuration
├── phpunit.xml.dist     # PHPUnit configuration
├── psalm.xml            # Psalm configuration
├── composer-require-checker.json  # Composer dependencies checker configuration
└── README.md            # Project documentation

```

Create Project
--------------

[](#create-project)

To create your project, enter the following command in your console:

```
composer create-project koriym/php-skeleton

```

You will be asked a few questions to configure the project:

```
What is the vendor name ?
(MyVendor):Koriym

What is the package name ?
(MyPackage):AwesomePackage

What is your name ?
(Akihito Koriyama):

What is your email address ?
(akihito.koriyama@gmail.com):

```

Composer Commands
-----------------

[](#composer-commands)

Once installed, the project will automatically be configured, so you can run these commands in the root of your application:

### test

[](#test)

`composer test` runs [`phpunit`](https://github.com/sebastianbergmann/phpunit).

### tests

[](#tests)

`composer tests` runs `cs`, `sa`, and `test`.

### coverage, phpdbg, pcov

[](#coverage-phpdbg-pcov)

`composer coverage` builds a test coverage report using [XDebug](https://xdebug.org/). `composer phpdbg` builds a test coverage report using [phpdbg](https://www.php.net/manual/en/book.phpdbg.php). `composer pcov` builds a test coverage report using [pcov](https://github.com/krakjoe/pcov).

### mutation

[](#mutation)

`composer mutation` runs mutation testing using [Infection](https://infection.github.io/).

### cs, cs-fix

[](#cs-cs-fix)

`composer cs` checks coding standard. `composer cs-fix` fixes the PHP code to match coding standards.

### sa

[](#sa)

`composer sa` runs static code analysis tools (PHPStan and Psalm).

### build

[](#build)

`composer build` builds all reports (code quality, test coverage, require check).

Continuous Integration
----------------------

[](#continuous-integration)

This project includes several GitHub Actions workflows to ensure code quality and compatibility:

- **Continuous Integration**: Runs tests on PHP 8.1, 8.2, 8.3, and 8.4
- **Static Analysis**: Runs PHPStan, Psalm, PHPMD, and ComposerRequireChecker
- **Coding Standards**: Checks code style with PHP\_CodeSniffer
- **Mutation Testing**: Runs Infection to evaluate test quality (on 1.x branch and PRs)

These workflows are pre-configured for common PHP project needs, but feel free to modify or remove them to suit your project's requirements.

###  Health Score

58

—

FairBetter than 98% of packages

Maintenance70

Regular maintenance activity

Popularity36

Limited adoption so far

Community26

Small or concentrated contributor base

Maturity85

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 86.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~91 days

Recently: every ~251 days

Total

52

Last Release

160d ago

Major Versions

0.9.0 → 1.0.0-alpha2018-04-13

PHP version history (12 changes)0.7.0PHP &gt;=5.5.0

0.7.5PHP ~5.6|~7.0

0.8.1PHP ^5.6 || ^7.0

0.8.3PHP &gt;=5.6.0

0.9.0PHP &gt;=7.0.0

1.1.0PHP &gt;=7.1.0

1.1.3PHP &gt;=7.2.0

1.1.5PHP ^7.2 || ^8.0

1.1.12PHP ^7.3 || ^8.0

1.1.14PHP ^7.4 || ^8.0

1.2.0PHP ^8.0

1.3.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/db4fc75ffc631168d0d7143b6f2c24b1534dfb921212bd851c026c5cbbb1344d?d=identicon)[koriym](/maintainers/koriym)

---

Top Contributors

[![koriym](https://avatars.githubusercontent.com/u/529021?v=4)](https://github.com/koriym "koriym (391 commits)")[![NaokiTsuchiya](https://avatars.githubusercontent.com/u/17171732?v=4)](https://github.com/NaokiTsuchiya "NaokiTsuchiya (20 commits)")[![kenjis](https://avatars.githubusercontent.com/u/87955?v=4)](https://github.com/kenjis "kenjis (13 commits)")[![kumamidori](https://avatars.githubusercontent.com/u/384567?v=4)](https://github.com/kumamidori "kumamidori (6 commits)")[![77web](https://avatars.githubusercontent.com/u/296615?v=4)](https://github.com/77web "77web (4 commits)")[![hidenorigoto](https://avatars.githubusercontent.com/u/89830?v=4)](https://github.com/hidenorigoto "hidenorigoto (4 commits)")[![ttskch](https://avatars.githubusercontent.com/u/4360663?v=4)](https://github.com/ttskch "ttskch (2 commits)")[![akovardin](https://avatars.githubusercontent.com/u/365223?v=4)](https://github.com/akovardin "akovardin (2 commits)")[![bakura10](https://avatars.githubusercontent.com/u/1198915?v=4)](https://github.com/bakura10 "bakura10 (1 commits)")[![Ayesh](https://avatars.githubusercontent.com/u/811553?v=4)](https://github.com/Ayesh "Ayesh (1 commits)")[![m-housni](https://avatars.githubusercontent.com/u/26806310?v=4)](https://github.com/m-housni "m-housni (1 commits)")[![hajimemat](https://avatars.githubusercontent.com/u/24850340?v=4)](https://github.com/hajimemat "hajimemat (1 commits)")[![piotzkhider](https://avatars.githubusercontent.com/u/7950487?v=4)](https://github.com/piotzkhider "piotzkhider (1 commits)")[![sanmai](https://avatars.githubusercontent.com/u/139488?v=4)](https://github.com/sanmai "sanmai (1 commits)")[![siketyan](https://avatars.githubusercontent.com/u/12772118?v=4)](https://github.com/siketyan "siketyan (1 commits)")[![christiaan](https://avatars.githubusercontent.com/u/118490?v=4)](https://github.com/christiaan "christiaan (1 commits)")

---

Tags

phpskeletonpsrSkeleton

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/koriym-php-skeleton/health.svg)

```
[![Health](https://phpackages.com/badges/koriym-php-skeleton/health.svg)](https://phpackages.com/packages/koriym-php-skeleton)
```

###  Alternatives

[psr/container

Common Container Interface (PHP FIG PSR-11)

10.0k1.0B4.4k](/packages/psr-container)[psr/clock

Common interface for reading the clock.

644362.7M474](/packages/psr-clock)[lctrs/psalm-psr-container-plugin

Let Psalm understand better psr11 containers

17670.2k13](/packages/lctrs-psalm-psr-container-plugin)[mayflower/mo4-coding-standard

PHP CodeSniffer ruleset implementing the MO4 coding standards extending the Symfony coding standards.

17524.8k7](/packages/mayflower-mo4-coding-standard)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
