PHPackages                             bugslife/query\_notice - 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. [Database &amp; ORM](/categories/database)
4. /
5. bugslife/query\_notice

ActiveLibrary[Database &amp; ORM](/categories/database)

bugslife/query\_notice
======================

In laravel,When you listen sql query and notice your by email.You can use this repository.

1.0.2(8y ago)224MITPHPPHP &gt;=7.0.0

Since Mar 3Pushed 8y ago1 watchersCompare

[ Source](https://github.com/757470062/query_notice)[ Packagist](https://packagist.org/packages/bugslife/query_notice)[ RSS](/packages/bugslife-query-notice/feed)WikiDiscussions dev Synced 3d ago

READMEChangelogDependenciesVersions (5)Used By (0)

query\_notice
=============

[](#query_notice)

In laravel,When you listen sql query and notice your by email.You can use this repository.

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

[](#installation)

```
composer require bugslife/query_notice

```

Provider
--------

[](#provider)

```
BugsLife\QueryNotice\Providers\QueryNoticeProvider::class,

```

Resource &amp; Config
---------------------

[](#resource--config)

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

```

migrations
----------

[](#migrations)

```
php artisan migrate

```

Usage
-----

[](#usage)

You can use it in the entire project, or use the middleware locally.Support log query or email to relevant developers.

#### Use it in the entire project.Set config/queryNotice.php.default is close.

[](#use-it-in-the-entire-projectset-configquerynoticephpdefault-is-close)

```
    /*
     * Open all object.
     */
    'is_all_object' => true,

```

#### Use the middleware locally.Set app\\Http\\Kernel.php.and use it.

[](#use-the-middleware-locallyset-apphttpkernelphpand-use-it)

```
    protected $routeMiddleware = [
        ...
        'query_notice' => \BugsLife\QueryNotice\Middleware\QueryMiddleware::class,
    ];

```

#### Write notice in log.Set config/queryNotice.php.default is open.

[](#write-notice-in-logset-configquerynoticephpdefault-is-open)

```
    /*
     * Set notice type open state. true equal open.
     */
    'notice_type_state' => [
        'log' => true,
        'mail' => false,
        'db' => false,
    ],

```

#### Write notice in log.When sql query run time is not greater than max time.Don't write in log? true is write.Set config/queryNotice.php.default is open.

[](#write-notice-in-logwhen-sql-query-run-time-is-not-greater-than-max-timedont-write-in-log-true-is-writeset-configquerynoticephpdefault-is-open)

```
    /*
     * When sql query run time is not greater than max time.Don't write in log? true is write.
     */
    'is_filter_log' => true,

```

#### Notice in users email.Set config/queryNotice.php.default is close.

[](#notice-in-users-emailset-configquerynoticephpdefault-is-close)

```
    /*
     * Set notice type open state. true equal open.
     */
    'notice_type_state' => [
        'log' => true,
        'mail' => true,
        'db' => false,
    ],

```

Extend your notice type
-----------------------

[](#extend-your-notice-type)

#### You can extends "BugsLife\\QueryNotice\\Format\\Format.php" and write function run().Set your format in "config\\queryNotice.php".

[](#you-can-extends-bugslifequerynoticeformatformatphp-and-write-function-runset-your-format-in-configquerynoticephp)

Demo

```
use BugsLife\QueryNotice\Format\Format;

class DatabaseFormat extends Format
{

    /**
     * Start use this format notice sql query.
     * @param $notice
     * @return mixed
     */
    public function run($notice)
    {
        // TODO: Implement run() method.
    }

```

```
    /*
     * Extend notice type.
     */
    'extend_notice_type' => [
        //Base format.This is demo.
        ...
        'db' => \Facades\BugsLife\QueryNotice\Format\Database\DatabaseFormat::class,
    ],

```

set Switch

```
    /*
     * Set notice type open state. true equal open.
     */
    'notice_type_state' => [
        'log' => true,
        'mail' => true,
        'db' => true,
    ],

```

Feature
-------

[](#feature)

1.Write in database.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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

Every ~11 days

Total

3

Last Release

2971d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1b967e82b8fa20432c73b8932c6c305548de113c4c23ffd1313f923fb53ea5e5?d=identicon)[bugslife](/maintainers/bugslife)

---

Top Contributors

[![757470062](https://avatars.githubusercontent.com/u/16420399?v=4)](https://github.com/757470062 "757470062 (14 commits)")

### Embed Badge

![Health badge](/badges/bugslife-query-notice/health.svg)

```
[![Health](https://phpackages.com/badges/bugslife-query-notice/health.svg)](https://phpackages.com/packages/bugslife-query-notice)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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