PHPackages                             elph-studio/laravel-testing-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. [Testing &amp; Quality](/categories/testing)
4. /
5. elph-studio/laravel-testing-tools

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

elph-studio/laravel-testing-tools
=================================

Laravel Testing Tools

v0.3.7(5mo ago)0792MITPHPPHP ^8.5

Since Dec 7Pushed 5mo agoCompare

[ Source](https://github.com/elph-studio/laravel-testing-tools)[ Packagist](https://packagist.org/packages/elph-studio/laravel-testing-tools)[ RSS](/packages/elph-studio-laravel-testing-tools/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (15)Used By (2)

[![Elephant Studio](https://avatars.githubusercontent.com/u/70107733?s=128)](https://avatars.githubusercontent.com/u/70107733?s=128)

Elephant Studio :: Laravel testing tools
========================================

[](#elephant-studio--laravel-testing-tools)

This package provides preconfigured `PHP Unit` and `Linting Tools` packages for Laravel projects.

It also includes vendor testing tool that can be run during GitHub workflow to disable PR merging if some vendors do not meet production requirements.

### PHP Unit configuration contains

[](#php-unit-configuration-contains)

1. Test Cases
    - [Unit Test Case](src/Test/TestCase/UnitTestCase.php)
    - [Integration Test Case](src/Test/TestCase/IntegrationTestCase.php)
    - [Feature Test Case](src/Test/TestCase/FeatureTestCase.php)
2. [Configuration file](src/Config/phpunit.xml)
    - Works with default tests directories *(these must be created)*:
        - `tests/Unit`
        - `tests/Integration`
        - `tests/Feature`
    - Also works with Laravel Modules *(not mandatory)*:
        - `Module/*/Test/Unit`
        - `Module/*/*/Test/Unit`
        - `Module/*/Test/Integration`
        - `Module/*/*/Test/Integration`
        - `Module/*/Test/Feature`
        - `Module/*/*/Test/Feature`
    - Configuration file will be used only if there is no local configuration file `config/phpunit.xml`

### Linting tools configuration contains

[](#linting-tools-configuration-contains)

1. Strict [PHP CS](https://github.com/squizlabs/PHP_CodeSniffer) [rules set](src/Config/phpcs_rules.xml)

    - [Slevoman Coding Standards](https://github.com/slevomat/coding-standard) - included
    - [Squizlabs PHP CodeSniffer Standards](https://github.com/squizlabs/PHP_CodeSniffer) - included
    - [OPAY Coding Stardards](https://github.com/opay/lib.php-linting-tools) - included
    - [Moxio PHP CodeSniffer Standards](https://github.com/Moxio/php-codesniffer-sniffs) - removed due to low maintainability and recurring conflicts with upper mentioned libraries latest versions
2. [PHP CS Fixer](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer) [rules set](src/Config/csfixer.php)
3. These rules sets will be used only if local rules set are not found in `config/phpcs_rules.xml` and `config/csfixer.php`

### Installation &amp; running

[](#installation--running)

Install

> composer require --dev elph-studio/laravel-testing-tools

Run PHP Unit tests:

> vendor/bin/unit

Run PHP Unit tests to test by specific filter:

> vendor/bin/unit someSpecificTestOrTestsCategory

Run Linting tools *(run both PHP CS and PHP CS Fixer)*:

> vendor/bin/lint

Run Linting tools to test exact file or directory:

> vendor/bin/lint path/to/file/or/directory

Automatic Lint fixing:

> vendor/bin/lint fix

Automatic Lint fixing of specific file or directory:

> vendor/bin/lint fix path/to/file/or/directory

### Running Vendors Validator in GitHub Workflow

[](#running-vendors-validator-in-github-workflow)

.env

```
VENDORS_VALIDATOR_URL=https://raw.githubusercontent.com/elph-studio/laravel-testing-tools/refs/heads/main/src/Helper/vendors_validator.php
VENDORS_VALIDATOR_SKIP=roave/security-advisories
```

workflow.yml

```
  vendors:
     name: Validate vendors
     runs-on: ubuntu-latest
     steps:
        - name: Checkout required files
          uses: actions/checkout@v4
          with:
             sparse-checkout: |
                .github/.env
                composer.lock
             sparse-checkout-cone-mode: false

        - name: Read .env file
          uses: xom9ikk/dotenv@v2.3.0
          with:
             path: .github/

        - name: Download vendors_validator
          run: |
             curl -sSL ${{ env.VENDORS_VALIDATOR_URL }} \
               -o vendors_validator.php

        - name: Validate vendors
          run: php vendors_validator.php --skip=${{ env.VENDORS_VALIDATOR_SKIP }}
```

Failed workflow example:

[![Failed workflow example](readme/images/vendors_validator_workflow.jpg)](readme/images/vendors_validator_workflow.jpg)

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance73

Regular maintenance activity

Popularity9

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity50

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

Every ~0 days

Total

14

Last Release

154d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/dfda633b595442c7c5a7dd8cfcd4b033e3d2beb89e0394a5c43c9cff19e706f0?d=identicon)[elph-studio](/maintainers/elph-studio)

---

Top Contributors

[![vitalij-vladimirov](https://avatars.githubusercontent.com/u/45896500?v=4)](https://github.com/vitalij-vladimirov "vitalij-vladimirov (68 commits)")

---

Tags

psrstandardsphpcstestingphpunitPHP\_CodeSnifferlintsniffsPhpCsFixerlinting

### Embed Badge

![Health badge](/badges/elph-studio-laravel-testing-tools/health.svg)

```
[![Health](https://phpackages.com/badges/elph-studio-laravel-testing-tools/health.svg)](https://phpackages.com/packages/elph-studio-laravel-testing-tools)
```

###  Alternatives

[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)[dealerdirect/phpcodesniffer-composer-installer

PHP\_CodeSniffer Standards Composer Installer Plugin

596161.9M1.9k](/packages/dealerdirect-phpcodesniffer-composer-installer)[phpcsstandards/phpcsextra

A collection of sniffs and standards for use with PHP\_CodeSniffer.

10224.3M44](/packages/phpcsstandards-phpcsextra)[moxio/php-codesniffer-sniffs

Custom sniffs for PHP\_CodeSniffer

18283.0k3](/packages/moxio-php-codesniffer-sniffs)[robiningelbrecht/phpunit-pretty-print

Prettify PHPUnit output

76460.0k15](/packages/robiningelbrecht-phpunit-pretty-print)

PHPackages © 2026

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