PHPackages                             shimabox/laqu - 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. shimabox/laqu

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

shimabox/laqu
=============

Laqu is Laravel Db Query Helper.

v0.4.2(3y ago)187MITPHPPHP ^7.4|^8.0CI failing

Since Jul 8Pushed 3y ago1 watchersCompare

[ Source](https://github.com/shimabox/laqu)[ Packagist](https://packagist.org/packages/shimabox/laqu)[ Docs](https://github.com/shimabox/laqu)[ RSS](/packages/shimabox-laqu/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (6)Dependencies (8)Versions (13)Used By (0)

Laqu
====

[](#laqu)

\[ Japanese | [English](README-en.md) \]

Laqu is **La**ravel Db **Qu**ery Helper.

[![Run Tests](https://github.com/shimabox/laqu/workflows/Run%20Tests/badge.svg?branch=master)](https://github.com/shimabox/laqu/workflows/Run%20Tests/badge.svg?branch=master)[![License](https://camo.githubusercontent.com/640fd9feb7ce24079a9e8349025dc4eb6113c8a8d00e93661915ea2aab1f7e7d/68747470733a2f2f706f7365722e707567782e6f72672f7368696d61626f782f6c6171752f6c6963656e7365)](//packagist.org/packages/shimabox/laqu)[![Latest Stable Version](https://camo.githubusercontent.com/efe3a64087c805e5ebd90c59e33107b99e79688ee2bdebb23373fc710c405c9b/68747470733a2f2f706f7365722e707567782e6f72672f7368696d61626f782f6c6171752f76)](//packagist.org/packages/shimabox/laqu)[![Maintainability](https://camo.githubusercontent.com/66874e42de941424b4fe7a1dac944f194cd64f8dd59a662da0ce59382b9d3bc9/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f38356232333962363836353135306138616363332f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/shimabox/laqu/maintainability)[![Test Coverage](https://camo.githubusercontent.com/54e41168d9604cf0d88d40053a3fdf4a10212a74ed10b2ba1feafa7863e11e92/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f38356232333962363836353135306138616363332f746573745f636f766572616765)](https://codeclimate.com/github/shimabox/laqu/test_coverage)

Features
--------

[](#features)

- 実行されたdbクエリを確認できます
    - PHPUnit でのアサーション、実行時間による並べ替え、ビルド後のクエリのチェックなど

#### Attention

[](#attention)

このライブラリは、開発中に利用されることを想定しています。

See Also
--------

[](#see-also)

[【Laravel】実行されたDBクエリの確認ができるやつを書いた - Qiita](https://qiita.com/shimabox/items/11b5d3e3c02e7413fc9e "【Laravel】実行されたDBクエリの確認ができるやつを書いた - Qiita")

Requirement
-----------

[](#requirement)

- PHP 7.4+ or newer(7.4, 8.0)
- Laravel `6.x`, `7.x`, `8.x`

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

[](#installation)

Via composer.

```
$ composer require --dev shimabox/laqu

```

Develop.

```
$ git clone https://github.com/shimabox/laqu.git
$ cd laqu
$ composer install

```

Usage
-----

[](#usage)

### QueryAssertion

[](#queryassertion)

期待するクエリが流れているかPHPUnitでアサーションするためのものです。
traitです。assertQuery()を使います。

```
