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

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

xiaobei/demo-laravel
====================

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

02PHP

Since Jun 20Pushed 5y ago1 watchersCompare

[ Source](https://github.com/yy0821/xiaobei-demo-laravel)[ Packagist](https://packagist.org/packages/xiaobei/demo-laravel)[ RSS](/packages/xiaobei-demo-laravel/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

xiaobei-demo-laravel
====================

[](#xiaobei-demo-laravel)

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

框架要求
----

[](#框架要求)

Laravel &gt;= 5.1

安装
--

[](#安装)

```
composer require "xiaobei/demo-laravel"
```

配置
--

[](#配置)

### Laravel 应用

[](#laravel-应用)

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

```
'providers' => [
    // ...
    xiaobei\demo-laravel\DemoServiceProvide::class,
]
```

然后在浏览器中访问的路由如下

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

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![yy0821](https://avatars.githubusercontent.com/u/57890476?v=4)](https://github.com/yy0821 "yy0821 (3 commits)")

### Embed Badge

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

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

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/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.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)

PHPackages © 2026

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