PHPackages                             orchestra/resources - 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. orchestra/resources

AbandonedArchivedLibrary

orchestra/resources
===================

\[DEPRECATED\] Resources Component for Orchestra Platform

v3.2.0(10y ago)120.1k↑2900%MITPHPPHP &gt;=5.5.0

Since Jun 19Pushed 10y ago1 watchersCompare

[ Source](https://github.com/orchestral/resources)[ Packagist](https://packagist.org/packages/orchestra/resources)[ Docs](http://orchestraplatform.com/docs/latest/components/resources/)[ RSS](/packages/orchestra-resources/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (10)Dependencies (6)Versions (24)Used By (0)

Resources Component for Orchestra Platform
==========================================

[](#resources-component-for-orchestra-platform)

[![Join the chat at https://gitter.im/orchestral/platform/components](https://camo.githubusercontent.com/abe08b740a4156153736f791393ec4da6619c4be73212e75769f52edacc0e2b5/68747470733a2f2f6261646765732e6769747465722e696d2f4a6f696e253230436861742e737667)](https://gitter.im/orchestral/platform/components?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

Resources Component is an optional adhoc routing manager that allow extension developer to add CRUD interface without touching Orchestra Platform 2. The idea is to allow controllers to be map to specific URL in Orchestra Platform Administrator Interface.

[![Latest Stable Version](https://camo.githubusercontent.com/626a86c109161d5ac0c294cd6ed8e8c7bdeade490bea702a689779169147fdbf/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6f72636865737472616c2f7265736f75726365732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/orchestra/resources)[![Total Downloads](https://camo.githubusercontent.com/b17328f5c863afb6d02544c27267d94a99af77713251a52eccecfdb7da50f578/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f72636865737472612f7265736f75726365732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/orchestra/resources)[![MIT License](https://camo.githubusercontent.com/962314e00cb02b06060f0c4c9f0cccefb84320f5c467524f1d402801fda17594/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6f72636865737472612f7265736f75726365732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/orchestra/resources)[![Build Status](https://camo.githubusercontent.com/c73116b7f579d7e4e478a4413742d171b40a1409e0f6d351442c77c6790b5f81/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6f72636865737472616c2f7265736f75726365732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/orchestral/resources)[![Coverage Status](https://camo.githubusercontent.com/cb2202d3ea2eb0a578595a12921ab921cdab483f9b13b6ab3e459fbc80dbb9e1/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f6f72636865737472616c2f7265736f75726365732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://coveralls.io/r/orchestral/resources?branch=master)[![Scrutinizer Quality Score](https://camo.githubusercontent.com/5b151c2f5e7c6335fd3761554033e877dd535c5add2ef0cf0af0597116651f79/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6f72636865737472616c2f7265736f75726365732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/orchestral/resources/)

Table of Content
----------------

[](#table-of-content)

- [Version Compatibility](#version-compatibility)
- [Installation](#installation)
- [Configuration](#configuration)
- [Usage](#usage)
    - [Adding a Resource](#adding-a-resource)
    - [Adding a Child Resource](#adding-a-child-resource)
    - [Returning Response from a Resource](#returning-response-from-a-resource)
- [Change Log](https://github.com/orchestral/resources/releases)

Version Compatibility
---------------------

[](#version-compatibility)

LaravelResources4.0.x2.0.x4.1.x2.1.x4.2.x2.2.x5.0.x3.0.x5.1.x3.1.x~5.23.2.xInstallation
------------

[](#installation)

To install through composer, simply put the following in your `composer.json` file:

```
{
    "require": {
        "orchestra/resources": "~3.0"
    }
}
```

And then run `composer install` from the terminal.

### Quick Installation

[](#quick-installation)

Above installation can also be simplify by using the following command:

```
composer require "orchestra/resources=~3.0"

```

Configuration
-------------

[](#configuration)

Add `Orchestra\Resources\ResourcesServiceProvider` service provider in `config/app.php`.

```
'providers' => [

    // ...

    Orchestra\Resources\ResourcesServiceProvider::class,
],
```

### Aliases

[](#aliases)

You might want to add `Orchestra\Support\Facades\Resources` to class aliases in `config/app.php`:

```
'aliases' => [

    // ...

    'Resources' => Orchestra\Resources\Facade::class,
],
```

Usage
-----

[](#usage)

### Adding a Resource

[](#adding-a-resource)

Normally we would identify an extension to a resource for ease of use, however Orchestra Platform still allow a single extension to register multiple resources if such requirement is needed.

```
use Orchestra\Support\Facades\Foundation;

Event::listen('orchestra.started: admin', function () {
    $robots = Resources::make('robotix', [
        'name'    => 'Robots.txt',
        'uses'    => 'Robotix\ApiController',
        'visible' => function () {
            return (Foundation::acl()->can('manage orchestra'));
        },
    ]);
});
```

NameUsagenameA name or title to refer to the resource.usesa path to controller, you can prefix with either `restful:` (default) or `resource:` to indicate how Orchestra Platform should handle the controller.visibleChoose whether to include the resource to Orchestra Platform Administrator Interface menu.Orchestra Platform Administrator Interface now would display a new tab next to Extension, and you can now navigate to available resources.

### Adding a Child Resource

[](#adding-a-child-resource)

A single resource might require multiple actions (or controllers), we allow such feature to be used by assigning child resources.

```
$robots->route('pages', 'resource:Robotix\PagesController');
```

Nested resource controller is also supported:

```
$robots['pages.comments'] = 'resource:Robotix\Pages\CommentController';
```

### Returning Response from a Resource

[](#returning-response-from-a-resource)

Controllers mapped as Orchestra Platform Resources is no different from any other controller except the layout is using Orchestra Platform Administrator Interface. You can use `View`, `Response` and `Redirect` normally as you would without Orchestra Platform integration.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 97.9% 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 ~41 days

Recently: every ~52 days

Total

23

Last Release

3794d ago

Major Versions

v2.2.2 → v3.0.02015-02-05

2.2.x-dev → v3.1.02015-05-24

PHP version history (3 changes)v2.0.0PHP &gt;=5.3.3

v2.2.0PHP &gt;=5.4.0

v3.1.1PHP &gt;=5.5.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/172966?v=4)[Mior Muhammad Zaki](/maintainers/crynobone)[@crynobone](https://github.com/crynobone)

---

Top Contributors

[![crynobone](https://avatars.githubusercontent.com/u/172966?v=4)](https://github.com/crynobone "crynobone (282 commits)")[![hostbrute](https://avatars.githubusercontent.com/u/10145071?v=4)](https://github.com/hostbrute "hostbrute (6 commits)")

---

Tags

laravelorchestra-platformorchestral

### Embed Badge

![Health badge](/badges/orchestra-resources/health.svg)

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

###  Alternatives

[orchestra/parser

XML Document Parser for Laravel and PHP

4581.7M5](/packages/orchestra-parser)[orchestra/tenanti

Tenant based Database Schema Manager for Laravel

588123.8k](/packages/orchestra-tenanti)[orchestra/asset

Asset Component for Orchestra Platform

52177.4k4](/packages/orchestra-asset)[orchestra/platform

Orchestra Platform

31013.0k3](/packages/orchestra-platform)[orchestra/imagine

Imagine (Wrapper) Component for Laravel

70207.0k3](/packages/orchestra-imagine)[orchestra/foundation

Orchestra Platform Foundation

5675.5k5](/packages/orchestra-foundation)

PHPackages © 2026

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