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

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

mhidea/laravel-tester
=====================

Test your Laravel application

1.0.0(5y ago)014MITBlade

Since Apr 30Pushed 5y ago1 watchersCompare

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

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

LaravelTester
=============

[](#laraveltester)

Test your laravel routes. Routes and requests will be loaded automatically. This package doesn't need migration.

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

[](#installation)

Install using composer:

```
composer require mhidea/laravel-tester
```

Add serviceproviver to 'providers' in config/app.php:

```
Mhidea\laraveltester\LaravelTesterServiceProvider::class
```

Publish config file to config/laravel-tester.php:

```
php artisan vendor:publish --tag=laraveltester
```

Request headers
---------------

[](#request-headers)

Add your headers to laravel-tester.config after you publish it. If you put 'testertoken' in header value, it will take the value you give it once and will be saved for next request. It is useful for authentication. For example to add bearer token header you need to have:

```
"Authorization" => 'Bearer testertoken'
```

Now 'testertoken' will be replaced with token you give to input and will be saved for next requests.

Request parameters
------------------

[](#request-parameters)

Currently you can have four request parameter types:

1. **required url parameter**: is loaded from route path definition. e.g. id ```
    Route::post("mail/{id}", "Controller@readmail");
    ```
2. **optional url parameter**: is loaded from route path definition. e.g. id ```
    Route::get("mail/{id?}", "Controller@showmail");
    ```
3. **query paramete**r: is loaded from controller doc. Follow this pattern. Type is optional. ```
        * @queryParam parameter-name parameter-type parameter-description
    ```

    For example you will get username in request pane under queryParam. ```
        * @queryParam username string name of the user to show points
    ```
4. **body parameter**: is loaded from controller doc. Follow this pattern. Type is optional. ```
        * @bodyParam name type description
    ```

    For example you will get id in request pane under bodyParam. ```
        * @bodyParam id int current user_id to get info
    ```

    Object params are allowed. If you need to have objects, don't forget to mention the parameter with type 'object' in docs. ```
        * @bodyParam friend object friend to follow
        * @bodyParam friend.id int id of friend
    ```

    You can find more about documentation [here](https://beyondco.de/docs/laravel-apidoc-generator/getting-started/documenting-your-api#specifying-request-parameters).

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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

1836d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2ae2b1c21b6d22ff87f6111094baa1365c62db10debe6697aaf4380a39a6a80e?d=identicon)[Mhidea](/maintainers/Mhidea)

---

Top Contributors

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

---

Tags

testlaravel

### Embed Badge

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

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

###  Alternatives

[benconstable/phpspec-laravel

Test your Laravel applications with PhpSpec

144347.1k15](/packages/benconstable-phpspec-laravel)[hughsaffar/laravel-test-trap

Laravel Test Trap

18406.8k](/packages/hughsaffar-laravel-test-trap)[guanguans/laravel-soar

SQL optimizer and rewriter for laravel. - laravel 的 SQL 优化器和重写器。

2227.8k](/packages/guanguans-laravel-soar)

PHPackages © 2026

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