PHPackages                             crysalead/resource - 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. [Framework](/categories/framework)
4. /
5. crysalead/resource

ActiveLibrary[Framework](/categories/framework)

crysalead/resource
==================

Resource Routing &amp; Dispatching Framework

011.9k↓39.7%PHP

Since Aug 16Pushed 1y ago2 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

Resource - Resource Dispatching Strategy
========================================

[](#resource---resource-dispatching-strategy)

[![Build Status](https://camo.githubusercontent.com/0cb9d85d487c9c2575ae7e5028652a868d753f518b618d837af4261325d68fe2/68747470733a2f2f7472617669732d63692e636f6d2f63727973616c6561642f7265736f757263652e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/crysalead/resource)[![Code Coverage](https://camo.githubusercontent.com/5fa79172d015a6993712a9a7e4c5e6433001f4977995404619ef9979f4ca04b8/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f63727973616c6561642f7265736f757263652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/crysalead/resource/)

Resource dispatching strategy for [router](https://github.com/crysalead/router).

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

[](#installation)

```
composer require crysalead/resource
```

API
---

[](#api)

### Setting up the strategy

[](#setting-up-the-strategy)

Example of routes definition:

```
use Lead\Router\Router;
use Lead\Router\Resource\ResourceStrategy;

$router = new Router();

$router->strategy('resource', new ResourceStrategy());

$router->resource('MyResource');

// Matching any following URLs
// /my_resource
// /my_resource/:
// /my_resource//:
// /my_relation//my_resource
// /my_relation//my_resource/:
```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1306941?v=4)[Simon JAILLET](/maintainers/jails)[@jails](https://github.com/jails)

---

Top Contributors

[![jails](https://avatars.githubusercontent.com/u/1306941?v=4)](https://github.com/jails "jails (88 commits)")

### Embed Badge

![Health badge](/badges/crysalead-resource/health.svg)

```
[![Health](https://phpackages.com/badges/crysalead-resource/health.svg)](https://phpackages.com/packages/crysalead-resource)
```

###  Alternatives

[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k39.6M299](/packages/laravel-dusk)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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