PHPackages                             hotfix31/default-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. [Testing &amp; Quality](/categories/testing)
4. /
5. hotfix31/default-project

ActiveProject[Testing &amp; Quality](/categories/testing)

hotfix31/default-project
========================

This is a default structure for PHP projects.

v1.8.0(5y ago)09BSD-3-ClausePHPPHP &gt;=7.4

Since Sep 17Pushed 5y agoCompare

[ Source](https://github.com/hotfix31/default-project)[ Packagist](https://packagist.org/packages/hotfix31/default-project)[ RSS](/packages/hotfix31-default-project/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)Dependencies (2)Versions (13)Used By (0)

Default Project
===============

[](#default-project)

This is a default structure for PHP projects. With this template you can speed up the process of creating of new: open-source, proprietary, test, demo and etc. projects!

This template has basic configuration for [PHPUnit](https://github.com/sebastianbergmann/phpunit) and [PHP-CS-Fixer](https://github.com/friendsofphp/php-cs-fixer) libraries, configured `composer.json`with PSR-4 namespaces for source code and tests, `.gitignore` with basic files and directories to exclude them from Git and README with cool badges :)

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

[](#installation)

For creating new project based on this template just execute the following command

```
$ composer create-project hotfix31/default-project project-name
```

> NOTE: You can add `--no-dev` right after `create-project` flag if you don't want to install dev dependencies to your project

Usage
-----

[](#usage)

Main changes that you need to do:

1. Update `name`, `description`, `keywords`, `authors` section of the `composer.json` file, [lines 2-4](composer.json#L2-L4), [9-10](composer.json#L9-L10).
2. Update header template in `.php_cs.dist` file, [lines 4-9](.php_cs.dist#L4-L9).

Other changes that you may do:

1. Change namespace for source code in `composer.json`, [line 23](composer.json#L23) and for tests [line 28](composer.json#L28).
2. Change PHP version in `composer.json` [line 16](composer.json#L15).
3. Change rules for code style in `.php_cs.dist` file.
4. Add some new files and directories to `.gitignore` file to exclude them from Git.
5. Update readme according to your project
6. Update changelog according to your project

Code style fixer
----------------

[](#code-style-fixer)

To check the code style just run the following command

```
$ composer cs-check
```

to fix the code style run next command

```
$ composer cs-fix
```

Tests
-----

[](#tests)

You can run tests with composer command

```
$ composer tests
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~89 days

Recently: every ~156 days

Total

10

Last Release

1992d ago

PHP version history (4 changes)v1.0.0PHP &gt;=7.1

v1.2.0PHP &gt;=7.2

v1.3.0PHP &gt;=7.3

v1.7.0PHP &gt;=7.4

### Community

Maintainers

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

---

Top Contributors

[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (22 commits)")[![greeflas](https://avatars.githubusercontent.com/u/17636915?v=4)](https://github.com/greeflas "greeflas (22 commits)")[![hotfix31](https://avatars.githubusercontent.com/u/1555884?v=4)](https://github.com/hotfix31 "hotfix31 (6 commits)")

---

Tags

phpunittemplatestructureSkeletonproject

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/hotfix31-default-project/health.svg)

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

###  Alternatives

[phpunit/phpunit

The PHP Unit Testing framework.

20.0k910.7M134.8k](/packages/phpunit-phpunit)[phpunit/php-text-template

Simple template engine.

7.4k868.0M73](/packages/phpunit-php-text-template)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[johnkary/phpunit-speedtrap

Find and report on slow tests in your PHPUnit test suite

78137.2M122](/packages/johnkary-phpunit-speedtrap)[spatie/phpunit-snapshot-assertions

Snapshot testing with PHPUnit

69417.9M510](/packages/spatie-phpunit-snapshot-assertions)[dg/bypass-finals

Removes final keyword from source code on-the-fly and allows mocking of final methods and classes

56426.3M456](/packages/dg-bypass-finals)

PHPackages © 2026

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