PHPackages                             ordnael/api-model - 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. [API Development](/categories/api)
4. /
5. ordnael/api-model

ActiveLibrary[API Development](/categories/api)

ordnael/api-model
=================

Extendable class for REST API based models - instead of the traditional Database based one - that integrates common Laravel's Model class functionalities.

v1.1.1(4y ago)141MITPHPPHP ^7.3|^8.0

Since Dec 5Pushed 4y ago1 watchersCompare

[ Source](https://github.com/leandroschabarum/api-model)[ Packagist](https://packagist.org/packages/ordnael/api-model)[ RSS](/packages/ordnael-api-model/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (10)Dependencies (7)Versions (15)Used By (0)

ApiModel
========

[](#apimodel)

### *REST API based models*

[](#rest-api-based-models)

[![GitHub release (latest by date)](https://camo.githubusercontent.com/c109795e9ce9eee47d83fdccae827ea6b8423330a0fdb0e6882299aa0fa50c7c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6c65616e64726f73636861626172756d2f6170692d6d6f64656c3f636f6c6f723d303037346237)](https://camo.githubusercontent.com/c109795e9ce9eee47d83fdccae827ea6b8423330a0fdb0e6882299aa0fa50c7c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6c65616e64726f73636861626172756d2f6170692d6d6f64656c3f636f6c6f723d303037346237) [![Packagist Downloads](https://camo.githubusercontent.com/bf6d6c7ac835032cf6f6a64672ff4c90ebe9e3660e50465dfa336960ad6900a8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f72646e61656c2f6170692d6d6f64656c3f636f6c6f723d303037346237)](https://camo.githubusercontent.com/bf6d6c7ac835032cf6f6a64672ff4c90ebe9e3660e50465dfa336960ad6900a8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f72646e61656c2f6170692d6d6f64656c3f636f6c6f723d303037346237) [![GitHub issues](https://camo.githubusercontent.com/6ffc70cbcb594ca9988f9bb42f2e0c996b84e17edca6ef4d4888e048efd02d58/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6c65616e64726f73636861626172756d2f6170692d6d6f64656c3f636f6c6f723d353939383161)](https://camo.githubusercontent.com/6ffc70cbcb594ca9988f9bb42f2e0c996b84e17edca6ef4d4888e048efd02d58/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6c65616e64726f73636861626172756d2f6170692d6d6f64656c3f636f6c6f723d353939383161) [![GitHub](https://camo.githubusercontent.com/61b9811a0e8a02545383eebf3903fc497047176b5b274ff93c563146180bc663/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6c65616e64726f73636861626172756d2f6170692d6d6f64656c3f636f6c6f723d353939383161)](https://camo.githubusercontent.com/61b9811a0e8a02545383eebf3903fc497047176b5b274ff93c563146180bc663/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6c65616e64726f73636861626172756d2f6170692d6d6f64656c3f636f6c6f723d353939383161)

Extendable class for REST API based models that integrates common Laravel's Model class functionalities.

---

### Usage

[](#usage)

After running the artisan command to generate your ApiModel, it is necessary to add your endpoints to the respective API class that is generated along with the model.

This is the interface used to manipulate API resources over HTTP requests and is critical for the inner workings of your model. The ApiModel should behave similar to the Model class from Laravel.

### Artisan Command

[](#artisan-command)

```
php artisan make:apimodel
```

---

#### Status

[](#status)

Currently in development. Any bugs or feature requests can be opened under Issues (templates are available).

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

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

Every ~18 days

Recently: every ~50 days

Total

12

Last Release

1466d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c5fe3987045202e5b85747d25770b0bd92f9b66d615a621bcf33bcae3a9151aa?d=identicon)[leandro.schabarum](/maintainers/leandro.schabarum)

---

Top Contributors

[![leandroschabarum](https://avatars.githubusercontent.com/u/74164755?v=4)](https://github.com/leandroschabarum "leandroschabarum (85 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M345](/packages/psalm-plugin-laravel)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M131](/packages/roots-acorn)[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.5k55.4M8.4k](/packages/larastan-larastan)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5021.9k](/packages/simplestats-io-laravel-client)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M194](/packages/laravel-ai)

PHPackages © 2026

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