PHPackages                             dam1r89/test-hooks - 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. dam1r89/test-hooks

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

dam1r89/test-hooks
==================

Creates a webhooks that make end to end or manual testing of Laravel apps easier. Allows creating db snapshots and changing app date.

1.0.2(9y ago)02.3kMITPHP

Since Mar 31Pushed 9y ago1 watchersCompare

[ Source](https://github.com/dam1r89/laravel-test-hooks)[ Packagist](https://packagist.org/packages/dam1r89/test-hooks)[ RSS](/packages/dam1r89-test-hooks/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (4)Used By (0)

Adds a webhooks useful for testing

```
composer require --dev dam1r89/test-hooks

```

Configuration:
--------------

[](#configuration)

config/app.php

```
dam1r89\TestHooks\TestHooksServiceProvider::class,

```

Publish

```
php artisan vendor:publish --tag="testhooks"

```

by default it works only on `testing` and `local` environment.

Methods
-------

[](#methods)

Supports only mysql database.

MethodRouteParamsExplanationGET/test-hooks/dbReturn list of all statesPUT/test-hooks/db**force** - overrides previous state, **state** - state nameStore statePUT/test-hooks/db/restore**state** - state nameRestore previously saved stateGET/test-hooks/dateGet curren test datePUT/test-hooks/date**date** - in format '2017-04-01 13:00:13'Set testing dateDELETE/test-hooks/dateClear test dateExtension
---------

[](#extension)

With extension you can do it from chrome browser. Get it [here](https://chrome.google.com/webstore/detail/test-hooks/fiojdbbkhjjmppeppemgckijlngdhlha)

[![preview](https://cloud.githubusercontent.com/assets/3540487/24579737/2bb7568a-16fb-11e7-8c33-d21d47574526.gif)](https://cloud.githubusercontent.com/assets/3540487/24579737/2bb7568a-16fb-11e7-8c33-d21d47574526.gif)

###  Health Score

30

—

LowBetter than 65% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

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 ~1 days

Total

3

Last Release

3325d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0bba8f57f8d1c05d28ffd8ec432a1520579c5cc84d4f93995a0656f22324224d?d=identicon)[dam1r89](/maintainers/dam1r89)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/dam1r89-test-hooks/health.svg)

```
[![Health](https://phpackages.com/badges/dam1r89-test-hooks/health.svg)](https://phpackages.com/packages/dam1r89-test-hooks)
```

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M678](/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.8M753](/packages/brianium-paratest)[beberlei/assert

Thin assertion library for input validation in business models.

2.4k96.9M571](/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.0k](/packages/orchestra-testbench)

PHPackages © 2026

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