PHPackages                             iak/make-testable - 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. iak/make-testable

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

iak/make-testable
=================

Create a test along with any class created using the laravel make command

1.0.0(5y ago)625.6k3MITPHPPHP ^7.4

Since Sep 17Pushed 4y ago1 watchersCompare

[ Source](https://github.com/iaK/make-testable)[ Packagist](https://packagist.org/packages/iak/make-testable)[ Docs](https://github.com/iak/make-testable)[ RSS](/packages/iak-make-testable/feed)WikiDiscussions master Synced 1w ago

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

\[SOON TO BE DEPRECATED\] Laravel make-testable
===============================================

[](#soon-to-be-deprecated-laravel-make-testable)

[![Latest Version on Packagist](https://camo.githubusercontent.com/4767b0f302311edadd0cd38bc49c9ff623a7600831acc06ec22eae51063dfa51/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f69616b2f6d616b652d7465737461626c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/iak/make-testable)[![GitHub Tests Action Status](https://camo.githubusercontent.com/445f830f3ddcb098827429dc8f01cfcce29c6ae0886946fefd8b0ce1e9ad31d1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f69616b2f6d616b652d7465737461626c652f54657374733f6c6162656c3d7465737473)](https://github.com/iak/make-testable/actions?query=workflow%3Arun-tests+branch%3Amaster)[![Total Downloads](https://camo.githubusercontent.com/091ca7365fe85241d15ee2d8c4714f04d410b45b3528301d99544b5907cd49d9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f69616b2f6d616b652d7465737461626c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/iak/make-testable)

*This functionality is soon available in laravel core. This package will therefore be deprecated and should not be installed &gt;= v8 laravel apps*

Create a test along with any class created using the laravel make command.

Usage
-----

[](#usage)

Simply add on a --test option to your make commands, and a test will be created simultaneously.

### Example

[](#example)

```
$ php artisan make:model Blog --test
```

is the same as

```
$ php artisan make:model Blog
$ php artisan make:test Models\BlogTest --unit
```

You can make tests for the following classes:

- Command
- Controller
- Event
- Job
- Listener
- Middleware
- Model
- Notification

Todo
----

[](#todo)

- Export a config file with customizable locations, naming conventions and options for the test command.

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

[](#installation)

You can install the package via composer:

```
composer require iak/make-testable --dev
```

Testing
-------

[](#testing)

```
composer test
```

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

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Isak Berglind](https://github.com/iaK)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95.7% 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

Unknown

Total

1

Last Release

2069d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9f8e167637ace3c09cf95c25f7d826a2352f06a7bd47d512f2ee5ed484840a27?d=identicon)[iaK](/maintainers/iaK)

---

Top Contributors

[![iaK](https://avatars.githubusercontent.com/u/2571644?v=4)](https://github.com/iaK "iaK (22 commits)")[![arazprisync](https://avatars.githubusercontent.com/u/75847327?v=4)](https://github.com/arazprisync "arazprisync (1 commits)")

---

Tags

iaKmake-testable

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/iak-make-testable/health.svg)

```
[![Health](https://phpackages.com/badges/iak-make-testable/health.svg)](https://phpackages.com/packages/iak-make-testable)
```

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[beberlei/assert

Thin assertion library for input validation in business models.

2.4k96.9M570](/packages/beberlei-assert)[mikey179/vfsstream

Virtual file system to mock the real file system in unit tests.

1.4k108.0M2.7k](/packages/mikey179-vfsstream)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)[phpspec/phpspec

Specification-oriented BDD framework for PHP 7.1+

1.9k36.7M3.1k](/packages/phpspec-phpspec)

PHPackages © 2026

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