PHPackages                             g3n1us/laravel-model-api - 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. g3n1us/laravel-model-api

ActivePackage

g3n1us/laravel-model-api
========================

Provides a unified api to access model data using basic naming conventions

v1.0(7y ago)0202PHPCI failing

Since Oct 8Pushed 5y ago1 watchersCompare

[ Source](https://github.com/g3n1us/laravel-model-api)[ Packagist](https://packagist.org/packages/g3n1us/laravel-model-api)[ RSS](/packages/g3n1us-laravel-model-api/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)DependenciesVersions (4)Used By (0)

laravel-model-api
=================

[](#laravel-model-api)

A controller providing a logical url structure for accessing model data

Usage: modelname is the snake cased version of the model. If singular, will display either the first model or the one specified by id. If plural, a paginated list of items will be output. If html is specified, the \_\_toString method will explicitly be called, returning any overloaded version in the model, usually custom html output.

$\_GET parameters for plural form only:

`paginate` - 0 results in no pagination, default = 1

`per_page` = results per page, disables pagination, integer default is pagination default, 15

`offset` = offset, return results starting at this offset

`limit` - limit to return, disables pagination

`pluck`/`property` - pluck a value from the returned objects

$\_GET parameters for singular form only:

`html` - returns the model's overloaded \_\_toString method instead of the default JSON representation, also an URL parameter

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

 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

Unknown

Total

1

Last Release

2771d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3c333ee6f326dcf1db86250abc626934305f2a584ad240fffd26ca14c111016e?d=identicon)[g3n1us](/maintainers/g3n1us)

---

Top Contributors

[![g3n1us](https://avatars.githubusercontent.com/u/2233924?v=4)](https://github.com/g3n1us "g3n1us (8 commits)")

### Embed Badge

![Health badge](/badges/g3n1us-laravel-model-api/health.svg)

```
[![Health](https://phpackages.com/badges/g3n1us-laravel-model-api/health.svg)](https://phpackages.com/packages/g3n1us-laravel-model-api)
```

PHPackages © 2026

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