PHPackages                             cable8mm/phpunit-start-kit - 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. cable8mm/phpunit-start-kit

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

cable8mm/phpunit-start-kit
==========================

Phpunit Start Kit is the simple code for starting TDD

v3.0.0(1mo ago)535MITPHPPHP ^8.3CI passing

Since Aug 1Pushed 1mo agoCompare

[ Source](https://github.com/cable8mm/phpunit-start-kit)[ Packagist](https://packagist.org/packages/cable8mm/phpunit-start-kit)[ RSS](/packages/cable8mm-phpunit-start-kit/feed)WikiDiscussions main Synced yesterday

READMEChangelog (10)Dependencies (4)Versions (15)Used By (0)

PHPUnit Start Kit
=================

[](#phpunit-start-kit)

[![code-style](https://github.com/cable8mm/phpunit-start-kit/actions/workflows/code-style.yml/badge.svg)](https://github.com/cable8mm/phpunit-start-kit/actions/workflows/code-style.yml)[![run-tests](https://github.com/cable8mm/phpunit-start-kit/actions/workflows/run-tests.yml/badge.svg)](https://github.com/cable8mm/phpunit-start-kit/actions/workflows/run-tests.yml)[![PHP Version](https://camo.githubusercontent.com/587a1bf9b7f9b8c0db444d7a39b04a0feafe5cb8ba31be156b4b4e90c64282b5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f6361626c65386d6d2f706870756e69742d73746172742d6b69742f706870)](https://camo.githubusercontent.com/587a1bf9b7f9b8c0db444d7a39b04a0feafe5cb8ba31be156b4b4e90c64282b5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f6361626c65386d6d2f706870756e69742d73746172742d6b69742f706870)[![Packagist Version](https://camo.githubusercontent.com/fddd1cc568dd16468543c3ccecc7e4e80638bebdf6a6835baebba6bc0655a125/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6361626c65386d6d2f706870756e69742d73746172742d6b6974)](https://camo.githubusercontent.com/fddd1cc568dd16468543c3ccecc7e4e80638bebdf6a6835baebba6bc0655a125/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6361626c65386d6d2f706870756e69742d73746172742d6b6974)[![Packagist Downloads](https://camo.githubusercontent.com/0b450ca053f6f4d365618c9ce4c1b14707e223faa37d65512c2f738ad6173e2c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6361626c65386d6d2f706870756e69742d73746172742d6b6974)](https://camo.githubusercontent.com/0b450ca053f6f4d365618c9ce4c1b14707e223faa37d65512c2f738ad6173e2c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6361626c65386d6d2f706870756e69742d73746172742d6b6974)[![Packagist License](https://camo.githubusercontent.com/cfeccdddb40aaf0c927036a5c6d869e85676eefe6c16fa7f196fde64f07d7048/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6361626c65386d6d2f706870756e69742d73746172742d6b6974)](https://camo.githubusercontent.com/cfeccdddb40aaf0c927036a5c6d869e85676eefe6c16fa7f196fde64f07d7048/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6361626c65386d6d2f706870756e69742d73746172742d6b6974)

A starter kit for creating PHP libraries with PHPUnit testing and modern development tools.

Requirements
------------

[](#requirements)

- PHP 8.3 or higher
- Composer 2.0 or higher

Features
--------

[](#features)

- ✅ **Pest Testing**: Pre-configured Pest 4.x support with example tests
- ✅ **Code Linting**: Laravel Pint for automatic code style enforcement
- ✅ **CI/CD Ready**: GitHub Actions workflows for testing and code style
- ✅ **Auto CHANGELOG**: Automatic changelog updates on GitHub releases
- ✅ **Modern PHP**: PHP 8.3+ with strict types and PSR-4 autoloading
- ✅ **EditorConfig**: Consistent coding styles across editors
- ✅ **Complete Documentation**: README, CHANGELOG, and MIT License included

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

[](#installation)

### As a Template (Recommended)

[](#as-a-template-recommended)

Create a new project from this starter kit:

```
composer create-project cable8mm/phpunit-start-kit
cd
```

### As a Dependency

[](#as-a-dependency)

```
composer require cable8mm/phpunit-start-kit
```

Quick Start
-----------

[](#quick-start)

1. **Update package information** in `composer.json`:

    - Change `name` to your package name (e.g., `your-vendor/your-package`)
    - Update `authors` information
    - Add your package dependencies
2. **Customize the source code**:

    - Modify `src/StartKit.php` with your implementation
    - Update namespace to match your package
3. **Write tests**:

    - Update `tests/StartKitTest.php` with your test cases
    - Add more test files as needed
4. **Update documentation**:

    - Edit `README.md` with your project description
    - Update `CHANGELOG.md` with your release notes

Available Commands
------------------

[](#available-commands)

```
# Run tests
composer test

# Check code style
composer inspect

# Fix code style automatically
composer lint

# Generate API documentation (requires doctum.phar)
composer apidoc
```

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

[](#project-structure)

```
.
├── src/
│   └── StartKit.php          # Main source code
├── tests/
│   └── StartKitTest.php      # Test files
├── .github/
│   └── workflows/
│       ├── run-tests.yml     # Automated testing
│       ├── code-style.yml    # Code linting
│       └── update-changelog.yml  # Auto CHANGELOG updates
├── composer.json             # Package configuration
├── phpunit.xml               # PHPUnit configuration
├── .editorconfig             # Editor configuration
├── CHANGELOG.md              # Change log
└── README.md                 # Project documentation

```

GitHub Actions Workflows
------------------------

[](#github-actions-workflows)

This starter kit includes three pre-configured GitHub Actions:

1. **run-tests.yml**: Runs tests on multiple PHP versions (8.2, 8.3, 8.4, 8.5)
2. **code-style.yml**: Automatically fixes code style with Laravel Pint
3. **update-changelog.yml**: Updates CHANGELOG.md when a new release is published

Testing
-------

[](#testing)

The kit includes example tests using Pest's elegant syntax:

```
test('it can be instantiated', function () {
    $startKit = new StartKit;

    expect($startKit)->toBeInstanceOf(StartKit::class);
});
```

Code Style
----------

[](#code-style)

This project uses [Laravel Pint](https://laravel.com/docs/pint) for code styling, which follows PSR-12 standards with Laravel conventions.

Contributing
------------

[](#contributing)

Contributions are welcome! Please feel free to submit a Pull Request.

License
-------

[](#license)

The PHPUnit Start Kit is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance91

Actively maintained with recent releases

Popularity13

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity82

Battle-tested with a long release history

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

Recently: every ~270 days

Total

14

Last Release

41d ago

Major Versions

v1.30.0 → v2.0.02024-03-03

2.x-dev → v3.0.02026-07-06

PHP version history (5 changes)1.0.0PHP &gt;=7.2

1.24PHP &gt;=7.4

1.x-devPHP &gt;=8.0

v2.0.0PHP ^8.0

v3.0.0PHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/c910c874a0263a18f9f976273054cd45faa3ffbcba7891992f4ab52d0656dd93?d=identicon)[Sam Lee](/maintainers/Sam%20Lee)

---

Top Contributors

[![cable8mm](https://avatars.githubusercontent.com/u/2672043?v=4)](https://github.com/cable8mm "cable8mm (70 commits)")

---

Tags

boilerplatecomposercomposer-packagephp8phpunitpsr-12psr-4skeletontemplate

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/cable8mm-phpunit-start-kit/health.svg)

```
[![Health](https://phpackages.com/badges/cable8mm-phpunit-start-kit/health.svg)](https://phpackages.com/packages/cable8mm-phpunit-start-kit)
```

PHPackages © 2026

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