PHPackages                             efureev/laravel-support - 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. efureev/laravel-support

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

efureev/laravel-support
=======================

PHP Support Package for Laravel

v4.0.0(2mo ago)48.2k2MITPHPPHP &gt;=8.4CI passing

Since Jan 28Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/efureev/laravel-support)[ Packagist](https://packagist.org/packages/efureev/laravel-support)[ RSS](/packages/efureev-laravel-support/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (10)Dependencies (18)Versions (107)Used By (0)

PHP Laravel Support
===================

[](#php-laravel-support)

[![](https://camo.githubusercontent.com/a0394ec19dc313b661f9c8356ab64ae772669def64dc3dc0527b5e1df4aead15/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d2533453d382e342d626c75652e737667)](https://camo.githubusercontent.com/a0394ec19dc313b661f9c8356ab64ae772669def64dc3dc0527b5e1df4aead15/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d2533453d382e342d626c75652e737667)[![](https://camo.githubusercontent.com/41a8d42a22455bd3be91abd4cb3f178a64733118b5e0778b123d29236a73e06c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d2533453d31332e302d7265642e737667)](https://camo.githubusercontent.com/41a8d42a22455bd3be91abd4cb3f178a64733118b5e0778b123d29236a73e06c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d2533453d31332e302d7265642e737667)[![PHP Laravel Package](https://github.com/efureev/laravel-support/actions/workflows/php.yml/badge.svg)](https://github.com/efureev/laravel-support/actions/workflows/php.yml)[![Latest Stable Version](https://camo.githubusercontent.com/58874d851fe803b9d11d79c34b09a7a4ce91848e312f07b2ff89ed8558027022/68747470733a2f2f706f7365722e707567782e6f72672f656675726565762f6c61726176656c2d737570706f72742f762f737461626c653f666f726d61743d666c6174)](https://packagist.org/packages/efureev/laravel-support)[![Total Downloads](https://camo.githubusercontent.com/f211184f1f17e40ea5e131c1a272116f6db564e9a22acc60d3ef1087e15470b1/68747470733a2f2f706f7365722e707567782e6f72672f656675726565762f6c61726176656c2d737570706f72742f646f776e6c6f616473)](https://packagist.org/packages/efureev/laravel-support)[![License](https://camo.githubusercontent.com/feee5b30da6fc3664c5917023716c735590268394eb0b73edeac2663a492c6c6/68747470733a2f2f706f7365722e707567782e6f72672f656675726565762f6c61726176656c2d737570706f72742f6c6963656e7365)](https://packagist.org/packages/efureev/laravel-support)

A collection of helpers, traits, validation rules and service-provider utilities for modern Laravel applications.

Requirements
------------

[](#requirements)

- PHP `>= 8.4`
- Laravel `>= 13.0`

Install
-------

[](#install)

```
composer require efureev/laravel-support
```

The package is auto-discovered, no manual provider registration is required.

Features
--------

[](#features)

The full documentation lives in [`/docs`](docs/index.md). Below is a short overview.

### Validation rules — `Php\Support\Laravel\Rules`

[](#validation-rules--phpsupportlaravelrules)

- `Delimited` — validates a delimited string (e.g. comma-separated emails), with `min`/`max`, custom separator, duplicate control and trimming options.
- `Authorized` — validates that the current user is authorized (`can`) to use a given model by its key.
- `HasValidate` — helper trait that adds reusable `validate`/`validateValue` helpers.

### Eloquent traits — `Php\Support\Laravel\Traits`

[](#eloquent-traits--phpsupportlaraveltraits)

- `Traits\Models\PostgresArray` — query scopes for searching inside native PostgreSQL arrays (`wherePgArrayContains`, `wherePgArrayContainsAny`, `wherePgArrayContainsOnly`, `wherePgArrayOverlapWith`). See `\Php\Support\Laravel\Tests\TestClasses\Models\PgArrayModel::scopeByTag`.
- `Traits\Models\HasModelEntityCache` — cache layer for model entities (with pluggable cachers).
- `Traits\Models\AllowToExecute` — guard helpers for model actions.
- `Traits\Models\WrapQuery` — query-wrapping helpers.
- `Traits\Modelable` / `Traits\ModelQueryable` — bind an Eloquent model into a request/class.
- `Traits\Requests\RequestModelable` — model resolution from requests.
- `Traits\Resources\HasMergeAdditional` — merge additional data into API resources.

### Sorting — `Php\Support\Laravel\Sorting`

[](#sorting--phpsupportlaravelsorting)

- `Sorting\Model\Sortable` — model trait to make records sortable (works with drag'n'drop).
- `Sorting\Database\Sortable` — migration helpers (`columnSortingPosition`).

See [docs/sortable.md](docs/sortable.md).

### Service providers — `Php\Support\Laravel\ServiceProviders`

[](#service-providers--phpsupportlaravelserviceproviders)

`AbstractServiceProvider` aggregates a set of helper traits: `HasCommands`, `HasPolicies`, `HasPathHelpers`, `HasRegisters`, `HasBooting`. See [docs/sp.md](docs/sp.md).

### Pagination &amp; Repositories

[](#pagination--repositories)

- `Pagination\PaginatedResourceArray` — nested paginated resource collections. See [docs/pagination.md](docs/pagination.md).
- `Repositories\AbstractRepository` — base Eloquent repository. See [docs/repository.md](docs/repository.md).

### Global helpers — `src/Global/base.php`

[](#global-helpers--srcglobalbasephp)

Autoloaded functions: `toCollect()`, `objectToArray()`. See [docs/global.md](docs/global.md).

Test
----

[](#test)

### Local

[](#local)

```
composer test       # PHPCS + PHPUnit
composer test-cover # with coverage
```

### Docker

[](#docker)

Runs the full test gate (PHPCS + PHPUnit) against PostgreSQL 18 inside containers. No local PostgreSQL installation is required.

```
composer test:docker
# or
docker compose up --build --abort-on-container-exit --exit-code-from app
```

Development
-----------

[](#development)

This is a library, so `composer.lock` is intentionally **not** committed and `"lock": false` is set in `composer.json`. Every CI run (and local `composer update`) resolves the latest matching dependency versions, which surfaces incompatibilities with new Laravel/PHP releases early. Pin versions in the consuming application, not here.

Changelog
---------

[](#changelog)

See [CHANGELOG.md](CHANGELOG.md).

License
-------

[](#license)

The MIT License (MIT). See [LICENSE](LICENSE).

###  Health Score

59

—

FairBetter than 98% of packages

Maintenance86

Actively maintained with recent releases

Popularity24

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity92

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 95.4% 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 ~22 days

Recently: every ~203 days

Total

104

Last Release

73d ago

Major Versions

v0.11.5 → v1.0.02021-04-28

v1.20 → v2.0.02024-03-13

v2.1.0 → v3.0.02025-02-24

v3.0.0 → v4.x-dev2026-06-04

PHP version history (11 changes)v0.0.1PHP &gt;=7.2

v0.5.0PHP &gt;=7.3

v0.9.3PHP &gt;=7.4

v0.11.0PHP ^7.4|^8.0

v1.0.0PHP ^8.0

v1.17.0PHP ^8.0 || ^8.1

v1.18.0PHP ^8.1 | ^8.2

v1.18.1PHP ^8.1 || ^8.2

v1.19.1PHP ^8.1

v2.0.0PHP ^8.2

v4.x-devPHP &gt;=8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/62a6e061d1ccab4d5de8dcba717b7634f91e4842b32ca26420b8261c66104bf7?d=identicon)[efureev](/maintainers/efureev)

---

Top Contributors

[![efureev](https://avatars.githubusercontent.com/u/5524684?v=4)](https://github.com/efureev "efureev (187 commits)")[![dikopylov](https://avatars.githubusercontent.com/u/38421064?v=4)](https://github.com/dikopylov "dikopylov (3 commits)")[![F0Rt04ka](https://avatars.githubusercontent.com/u/20201784?v=4)](https://github.com/F0Rt04ka "F0Rt04ka (2 commits)")[![yaremenkosa](https://avatars.githubusercontent.com/u/5374678?v=4)](https://github.com/yaremenkosa "yaremenkosa (2 commits)")[![codacy-badger](https://avatars.githubusercontent.com/u/23704769?v=4)](https://github.com/codacy-badger "codacy-badger (1 commits)")[![gitbook-bot](https://avatars.githubusercontent.com/u/31919211?v=4)](https://github.com/gitbook-bot "gitbook-bot (1 commits)")

---

Tags

castinghelperslaravelphpsupportphplaravelhelperssupport

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/efureev-laravel-support/health.svg)

```
[![Health](https://phpackages.com/badges/efureev-laravel-support/health.svg)](https://phpackages.com/packages/efureev-laravel-support)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.4M354](/packages/psalm-plugin-laravel)[efureev/laravel-trees

Multi-Tree structures for Laravel

14257.6k6](/packages/efureev-laravel-trees)[api-platform/laravel

API Platform support for Laravel

58190.1k21](/packages/api-platform-laravel)[forjedio/inertia-table

Backend-driven dynamic tables for Laravel + Inertia.js

272.0k](/packages/forjedio-inertia-table)[tehwave/laravel-achievements

Simple, elegant Achievements the Laravel way

7213.1k](/packages/tehwave-laravel-achievements)

PHPackages © 2026

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