PHPackages                             rhino-project/rhino-laravel - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. rhino-project/rhino-laravel

ActiveLibrary[HTTP &amp; Networking](/categories/http)

rhino-project/rhino-laravel
===========================

Automatic REST API generation for Laravel Eloquent models with built-in security, validation, and advanced querying

v4.5.0(2w ago)151MITPHPPHP ^8.0CI passing

Since May 25Pushed 2w agoCompare

[ Source](https://github.com/rhino-project/rhino-laravel)[ Packagist](https://packagist.org/packages/rhino-project/rhino-laravel)[ Docs](https://github.com/rhino-project/rhino-laravel)[ RSS](/packages/rhino-project-rhino-laravel/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (8)Dependencies (15)Versions (19)Used By (0)

Rhino — Laravel
===============

[](#rhino--laravel)

> Automatic REST API generation for Laravel Eloquent models with built-in security, validation, and advanced querying.

[![PHP Version](https://camo.githubusercontent.com/9c6d777d3575b9f8c41791525f706bd1a09b4562a525c8441416c4be43e6b877/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382e302532422d626c7565)](https://www.php.net/)[![Laravel Version](https://camo.githubusercontent.com/ac7c1e73d8621ed42b9f117757949df92e969c9814ee3bbfaa4e200ef665973e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c61726176656c2d31302532422d726564)](https://laravel.com/)[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)

Register a model, get a full REST API instantly.

Features
--------

[](#features)

\#FeatureDescription1**Automatic CRUD Endpoints**Generates `index`, `show`, `store`, `update`, `destroy` for every registered model.2**Authentication**Login, logout, password recovery/reset, invitation-based registration via Sanctum.3**Authorization &amp; Policies**Convention-based permission checks (`{slug}.{action}`), wildcard support.4**Role-Based Access Control**Per-org roles via `user_roles` pivot table.5**Attribute-Level Permissions**Control which fields each role can read and write.6**Validation**Dual-layer: format rules + field presence. Supports role-keyed rules.7**Cross-Tenant FK Validation**`exists:` rules auto-scoped to current org, even through indirect FK relationships.8**Filtering**`?filter[field]=value` with AND/OR logic.9**Sorting**`?sort=-created_at,title` — ascending and descending.10**Full-Text Search**`?search=term` across configured fields, supports relationship dot notation.10a**Named Scopes**`?scope=name` applies a model-whitelisted Eloquent named scope (with an optional `$defaultScope`); the current user is injected; non-whitelisted names return 403. Applies to index/trashed.11**Pagination**Header-based metadata (`X-Current-Page`, `X-Last-Page`, `X-Per-Page`, `X-Total`).12**Field Selection**`?fields[posts]=id,title,status` to reduce payload.13**Eager Loading**`?include=user,comments` with nested, Count/Exists suffixes, and auth per include.14**Multi-Tenancy**Organization-based data isolation, auto-set `organization_id`, global scope.15**Nested Ownership**Auto-detects org by walking `BelongsTo` chains.16**Route Groups**Multiple URL prefixes with different middleware/auth (`tenant`, `public`, custom).17**Soft Deletes**Trash, restore, force-delete endpoints with individual permissions.18**Audit Trail**Logs all CRUD events with old/new values, user, IP, and org context.19**Nested Operations**`POST /nested` for atomic multi-model transactions with `$N.field` references.20**Invitations**Token-based invite system with create, resend, cancel, accept, and role assignment.21**Hidden Columns**Base + model-level + policy-level dynamic column hiding per role.22**Auto-Scope Discovery**Auto-registers scopes by naming convention.23**UUID Primary Keys**`HasUuid` trait for auto-generated UUIDs.24**Middleware Support**Global per model + per action middleware.25**Action Exclusion**`$exceptActions` to disable specific CRUD routes.26**Generator CLI**`rhino:install`, `rhino:generate`, `rhino:blueprint`, `rhino:export-postman`.27**Postman Export**Auto-generated Postman Collection v2.1 with all endpoints.28**Blueprint System**YAML-to-code generation for models, migrations, factories, policies, tests, and seeders.Quick Start
-----------

[](#quick-start)

```
composer require rhino-project/rhino-laravel dev-main
php artisan rhino:install
```

Documentation
-------------

[](#documentation)

For full documentation, guides, and API reference visit:

****

License
-------

[](#license)

MIT — see [LICENSE](LICENSE) for details.

###  Health Score

43

—

FairBetter than 89% of packages

Maintenance96

Actively maintained with recent releases

Popularity13

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 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 ~4 days

Total

10

Last Release

20d ago

Major Versions

v0.9.0 → v4.0.02026-05-25

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6006674?v=4)[Bruno Cipolla](/maintainers/brunocmoreira)[@brunocmoreira](https://github.com/brunocmoreira)

---

Top Contributors

[![brunocmoreira](https://avatars.githubusercontent.com/u/6006674?v=4)](https://github.com/brunocmoreira "brunocmoreira (18 commits)")

---

Tags

apilaravelresteloquentcrudmulti-tenantrhino

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rhino-project-rhino-laravel/health.svg)

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

###  Alternatives

[zircote/swagger-php

Generate interactive documentation for your RESTful API using PHP attributes (preferred) or PHPDoc annotations

5.3k144.5M623](/packages/zircote-swagger-php)[dreamfactory/df-core

DreamFactory(tm) Core Components

1652.1k38](/packages/dreamfactory-df-core)[bjerke/laravel-bread

A boilerplate package for BREAD operations through REST API in Laravel

115.2k](/packages/bjerke-laravel-bread)[bjerke/api-query-builder

A query builder for Laravel that parses the request and uses Eloquent ORM to query database

267.7k1](/packages/bjerke-api-query-builder)[jarischaefer/hal-api

Enhances your HATEOAS experience by automating common tasks.

291.4k](/packages/jarischaefer-hal-api)[noitran/opendox

OpenApi(Swagger) 3.0 package for Lumen 5.5+ and Laravel 5.5+ with REDOC UI and SwaggerUI 3

2214.4k](/packages/noitran-opendox)

PHPackages © 2026

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