PHPackages                             soyhuce/dev-tools - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. soyhuce/dev-tools

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

soyhuce/dev-tools
=================

Laravel dev-tools

4.2.0(2mo ago)115.6k1[1 PRs](https://github.com/Soyhuce/dev-tools/pulls)MITPHPPHP ^8.3CI passing

Since May 12Pushed 2mo ago3 watchersCompare

[ Source](https://github.com/Soyhuce/dev-tools)[ Packagist](https://packagist.org/packages/soyhuce/dev-tools)[ RSS](/packages/soyhuce-dev-tools/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (16)Versions (21)Used By (0)

Dev Tools
=========

[](#dev-tools)

Tools for Laravel development

[![Latest Version on Packagist](https://camo.githubusercontent.com/a7a434dd7f834de0a3e5666738e77a1219c8329e55655b6c960da770dcbdbeba/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736f79687563652f6465762d746f6f6c732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/soyhuce/dev-tools)[![Total Downloads](https://camo.githubusercontent.com/348b371686b81b2def99ef1eae390d1a0a82af829d362c5c77be6910ca726514/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736f79687563652f6465762d746f6f6c732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/soyhuce/dev-tools)

- [Installation](#installation)
- [Available tools](#available-tools)
    - [Debug](#debug)
    - [Bottleneck Middleware](#bottleneckmiddleware)
    - [Image Faker](#image-faker)

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

[](#installation)

You can install the package via composer:

```
$ composer require soyhuce/dev-tools --dev
```

Laravel will discover the service provider `Soyhuce\DevTools\ServiceProvider`.

After installing Dev Tools, publish its assets using:

```
php artisan vendor:publish --provider="Soyhuce\DevTools\ServiceProvider" --tag="config"
```

You can also add the facade to your alias in `config\app.php` :

```
'Debug' => \Soyhuce\DevTools\Debug\Debug::class,
```

Available tools
---------------

[](#available-tools)

- [Debug](#debug) : Debugging tools
    - [Artisan](#artisan)
    - [Counter](#counter)
    - [Database](#database)
    - [Memory](#memory)
    - [Message](#message)
    - [Model](#model)
    - [Request](#request)
    - [Response](#response)
    - [Time](#time)
    - [Special case of http testing](#special-use-case-of-http-testing)
- [BottleneckMiddleware](#bottleneckmiddleware) : Middleware simulating a bottleneck
- [Image faker](#image-faker) : Generates random images locally

### Debug

[](#debug)

When activated, it allows logging some information on request execution: HTTP request, HTTP response, database requests, timings or even used memory.

All collected information timestamped and sent in your default log channel, with debug level.

Every module can be activated or deactivated separately thanks to the config file. You can configure the timestamp format as you wish.

### Artisan

[](#artisan)

Information are collected when running artisan commands. Artisan collector will collect the command name, argument and options when collection comes from an artisan command.

```
php artisan make:model User -m -f
```

```
[2020-06-11 08:26:38] local.DEBUG:
=> [2020-06-11 08:26:38.574492] artisan : 'make:model' User -m -f

```

#### Counter

[](#counter)

The counter can help to count stuffs. The counter does not need to exist before incrementing it. As it is initialized with 0.

```
