PHPackages                             shubhcredit/ore - 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. shubhcredit/ore

ActiveLibrary

shubhcredit/ore
===============

Ore for the laravel, it make easy and fast development

v0.0.5(1y ago)08PHP

Since Jan 18Pushed 1y ago1 watchersCompare

[ Source](https://github.com/shubhcredit/ore)[ Packagist](https://packagist.org/packages/shubhcredit/ore)[ RSS](/packages/shubhcredit-ore/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)DependenciesVersions (7)Used By (0)

Laravel Ore Package
===================

[](#laravel-ore-package)

About Ore Package
-----------------

[](#about-ore-package)

This is the package which help to fast API development.

### How it support ?

[](#how-it-support-)

- By use it less code
- It is very easy to use
- Only define the model file
- Get resource task automated like
- List, save, show, edit, update and delete

### When we use it ?

[](#when-we-use-it-)

- Best use of the Ore is automate the crud of your module
- For example : some module only want crud on that
- Then use it like , category, subcategory, country, city, state, class, department etc

### How to install it ?

[](#how-to-install-it-)

- Very simple to install it using the composer

```
    composer require shubhcredit/ore

```

- After intall verify by hit the api route as

```
 {domain}/api/ore/up

```

- Response will as

```
    {
        "Status": true,
        "message": "Ore api route is ready to serve | Make development easy..."
    }

```

### How to use it ?

[](#how-to-use-it-)

- Create migration and model
- Then add your Ore property in your model file as

```
  public $ore=[
       ['name'=>'name','component'=>'text','required'=>'*','orevl'=>"required|unique:categories,name"],
       ['name'=>'image','component'=>'file','required'=>'*','orevl'=>'mimes:png,jpg,jpeg'],
       ['name'=>'group','component'=>'option','required'=>'*','orevl'=>'required','relation'=>"Group,id,name"],
       ['name'=>'department','component'=>'option','required'=>'*','orevl'=>'required','relation'=>"Department,id,name"],
       ['name'=>'description','component'=>'textarea','required'=>'*','orevl'=>'required'],
       ['name'=>'status','component'=>'enum','required'=>'*','orevl'=>'required','enum'=>['0'=>'Deactive','1'=>'Active']],
   ];

```

- Explanation :
- 'name' column name
- 'component' which type of data will be store
- 'required' use to show on input field label
- 'orevl' define the laravel input validation
- 'enum' add enum value , it save key in db it show mapped value
- In above example we take the category module
- Which has relation with the group and department module
- Define the relation as

```
  public function group_is(){
       return $this->belongsTo(Group::class,'group');
   }

   public function department_is(){
       return $this->belongsTo(Department::class,'department');
   }

```

- Now define the your module route as
- Use the controller in your route file

```
   use Shubhcredit\Ore\Controllers\Api\OreController;

```

- Define resource reoute prifix with 'ore'

```
   Route::resource('/ore/category', OreController::class);

```

### Note :

[](#note-)

- ore prefix is mendetory in the route

How to use permission ?
-----------------------

[](#how-to-use-permission-)

Very simple to use the permission in the ore package

### Ore gave these permission as

[](#ore-gave-these-permission-as)

```
 "ore_action": {
        "view": true,
        "create": true,
        "save": true,
        "edit": true,
        "update": true,
        "delete": false
    }

```

This key will available in each API response which is use on frontend creation

### Use of this permission

[](#use-of-this-permission)

- ***view*** denote to view
- ***create*** denote to get meta info to make the create form
- ***save*** denote to save the form data
- ***edit*** denote to get meta info and data to make edit form
- ***update*** denote to update form data
- ***delete*** denote to delete the data

### Define the permission

[](#define-the-permission)

To define the permission make the method in the model file ore will automatically fetch, follow these step to define the method :-

1. Use 'oreCan' prifix in the method name of permission for example view permission then method name will be as 'oreCanView'.
2. Function have not parameter
3. Function return bool i.e. ture/false

Take an example as

```
    public function oreCanView(){
        //@MAKE::you code here
        return true;
    }

```

**Note ::** Defult value of the all permission is ture until user defined method overwrite it.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance44

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity32

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.

###  Release Activity

Cadence

Every ~11 days

Total

5

Last Release

439d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fd1aaaf7e24a0d851e51cefbe24a832e490e488d114fd02738f165819b818106?d=identicon)[shubhcredit](/maintainers/shubhcredit)

---

Top Contributors

[![shubhcredit](https://avatars.githubusercontent.com/u/70737426?v=4)](https://github.com/shubhcredit "shubhcredit (6 commits)")

### Embed Badge

![Health badge](/badges/shubhcredit-ore/health.svg)

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

PHPackages © 2026

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