PHPackages                             yaroslavche/php-project - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. yaroslavche/php-project

ActiveProject[Utility &amp; Helpers](/categories/utility)

yaroslavche/php-project
=======================

Clean PHP8 project with installed dev-tools

0.0.6(4y ago)136MITPHPPHP &gt;=8.1

Since Sep 7Pushed 4y ago1 watchersCompare

[ Source](https://github.com/yaroslavche/php-project)[ Packagist](https://packagist.org/packages/yaroslavche/php-project)[ RSS](/packages/yaroslavche-php-project/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (1)Dependencies (8)Versions (4)Used By (0)

[![PHP build](https://github.com/yaroslavche/php-project/actions/workflows/php.yml/badge.svg)](https://github.com/yaroslavche/php-project/actions/workflows/php.yml)[![License](https://camo.githubusercontent.com/bf1d6931e5c1e6359e45fb1a2e72e8b50e5ebd6f7b69e8970913ae7b447276ce/68747470733a2f2f706f7365722e707567782e6f72672f7961726f736c61766368652f7068702d70726f6a6563742f6c6963656e73653f666f726d61743d666c6174)](https://packagist.org/packages/yaroslavche/php-project)[![Latest Stable Version](https://camo.githubusercontent.com/8ad56fead4ad4b95228aef7e2e44f327aed85d8cdb243d0acb8e2611b498b733/68747470733a2f2f706f7365722e707567782e6f72672f7961726f736c61766368652f7068702d70726f6a6563742f762f737461626c653f666f726d61743d666c6174)](https://packagist.org/packages/yaroslavche/php-project)[![PHP Version](https://camo.githubusercontent.com/053985523ac58064a89ec0d91751cbac63510904aea44d86b21925b958685de9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f7961726f736c61766368652f7068702d70726f6a6563742f6465762d6d6173746572)](https://www.php.net/)

Clean PHP 8.1 project with dev tools.

Installation
------------

[](#installation)

Download and install

```
$ composer create-project yaroslavche/php-project project-name --prefer-source
```

or manually

```
$ git clone git@github.com:yaroslavche/php-project.git project-name
$ composer install --prefer-source
```

 Post cmdIn `composer.json` you can see `post-install-cmd` and `post-create-project-cmd`, which will:

- ask needed information
- change `composer.json`
- replace all occurrences (vendor, package) in `README.md`
- uncomment lines in `.gitattributes`
- remove self in `composer.json` (if remove installer after complete)
- remove installer (whole `internal` directory, by default)

Tools
-----

[](#tools)

 PHP\_CodeSniffer[squizlabs/PHP\_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer)

> PHP\_CodeSniffer is a set of two PHP scripts; the main phpcs script that tokenizes PHP, JavaScript and CSS files to detect violations of a defined coding standard, and a second phpcbf script to automatically correct coding standard violations. PHP\_CodeSniffer is an essential development tool that ensures your code remains clean and consistent.

Check:

```
$ composer phpcs
```

Fix:

```
$ composer phpcbf
```

 PHPMD - PHP Mess Detector[phpmd/phpmd](https://github.com/phpmd/phpmd)

> What PHPMD does is: It takes a given PHP source code base and look for several potential problems within that source. These problems can be things like: Possible bugs, Suboptimal code, Overcomplicated expressions, Unused parameters, methods, properties.

```
$ composer phpmd
```

 PHPStan - PHP Static Analysis Tool[phpstan/phpstan](https://github.com/phpstan/phpstan)

> PHPStan focuses on finding errors in your code without actually running it. It catches whole classes of bugs even before you write tests for the code. It moves PHP closer to compiled languages in the sense that the correctness of each line of the code can be checked before you run the actual line.

```
$ composer phpstan
```

 PHPUnit[sebastianbergmann/phpunit](https://github.com/sebastianbergmann/phpunit) | [Writing Tests](https://phpunit.readthedocs.io/en/8.3/writing-tests-for-phpunit.html)

> PHPUnit is a programmer-oriented testing framework for PHP. It is an instance of the xUnit architecture for unit testing frameworks.

Run tests:

```
$ composer phpunit
```

Code coverage

```
$ composer coverage
```

Will show results in console and if success, then generate `build/coverage/html/` directory (see `index.html` in browser) and `build/coverage/clover.xml` (which can be useful in some cases).

 Infection - Mutation Testing framework[infection/infection](https://github.com/infection/infection)

> Infection is a PHP mutation testing framework based on AST (Abstract Syntax Tree) mutations. It works as a CLI tool and can be executed from your project’s root.
>
> Mutation testing is a testing methodology that involves modifying a program in small ways and analyzing reactions of the test suite on these modifications. If tests pass after the code is changed, then we have either not covered line of code or the tests are not very efficient for the mutated piece of code.

```
$ composer infection
```

 Roave Security Advisories[Roave/SecurityAdvisories](https://github.com/Roave/SecurityAdvisories)

> Does not provide any API or usable classes: its only purpose is to prevent installation of software with known and documented security issues.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~486 days

Total

3

Last Release

1471d ago

Major Versions

0.0.5 → 8.1.x-dev2022-05-05

PHP version history (2 changes)0.0.5PHP &gt;=7.2

8.1.x-devPHP &gt;=8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/17838239?v=4)[Yaroslav](/maintainers/yaroslavche)[@yaroslavche](https://github.com/yaroslavche)

---

Top Contributors

[![yaroslavche](https://avatars.githubusercontent.com/u/17838239?v=4)](https://github.com/yaroslavche "yaroslavche (41 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/yaroslavche-php-project/health.svg)

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

PHPackages © 2026

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