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.3k↓26.9%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 1mo 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

26

—

LowBetter than 43% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity30

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://www.gravatar.com/avatar/67c78f317fdfb9f077b1f16c88193192f7562e999c536b25943b759c3b5099fb?d=identicon)[jails](/maintainers/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/passport

Laravel Passport provides OAuth2 server support to Laravel.

3.4k85.0M532](/packages/laravel-passport)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

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

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

712181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)[laravel/pail

Easily delve into your Laravel application's log files directly from the command line.

91545.3M590](/packages/laravel-pail)

PHPackages © 2026

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