PHPackages                             wunit/wunit-laravel - 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. wunit/wunit-laravel

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

wunit/wunit-laravel
===================

A simplified version of the laravel framework unit test

1.0(6y ago)07MITPHP

Since Oct 29Pushed 6y ago1 watchersCompare

[ Source](https://github.com/linqianwxn/wunit-laravel)[ Packagist](https://packagist.org/packages/wunit/wunit-laravel)[ RSS](/packages/wunit-wunit-laravel/feed)WikiDiscussions master Synced today

READMEChangelog (1)DependenciesVersions (2)Used By (0)

wunit/wunit-laravel
===================

[](#wunitwunit-laravel)

方便与laravel框架中对于某一个类的方法调试；类似于单元测试

框架要求
----

[](#框架要求)

Laravel &gt;= 5.1 &amp; PHP &gt; 7.1.3

安装
--

[](#安装)

```
composer require "wunit/wunit-laravel"
```

配置
--

[](#配置)

### Laravel 应用

[](#laravel-应用)

在 `config/app.php` 注册 ServiceProvider 和 Facade (Laravel 5.5 无需手动注册)

```
'providers' => [
    // ...
    Wunit\WunitLaravel\Providers\WunitServiceProvide::class,
]
```

解除路由

```
Route::get('/', 'WunitController@index');
Route::post('/', 'WunitController@store')->name('wunit.store');
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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

Unknown

Total

1

Last Release

2384d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0a14f14188769e41f2de3e371ee8c76c0038c404925d0ffb46e72308da05ceee?d=identicon)[linqianwxn](/maintainers/linqianwxn)

---

Top Contributors

[![linqianwxn](https://avatars.githubusercontent.com/u/25974494?v=4)](https://github.com/linqianwxn "linqianwxn (1 commits)")

### Embed Badge

![Health badge](/badges/wunit-wunit-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/wunit-wunit-laravel/health.svg)](https://phpackages.com/packages/wunit-wunit-laravel)
```

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M677](/packages/phpspec-prophecy)[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[brianium/paratest

Parallel testing for PHP

2.5k118.8M753](/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.0k](/packages/orchestra-testbench)

PHPackages © 2026

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