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(3y ago)141MITPHPPHP ^7.3|^8.0

Since Dec 5Pushed 3y 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 1w 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

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

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

1420d 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

[larastan/larastan

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

6.4k43.5M5.2k](/packages/larastan-larastan)[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.5k25.9M107](/packages/laravel-cashier)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[yadahan/laravel-authentication-log

Laravel Authentication Log provides authentication logger and notification for Laravel.

416632.8k5](/packages/yadahan-laravel-authentication-log)[laravel/cashier-paddle

Cashier Paddle provides an expressive, fluent interface to Paddle's subscription billing services.

264778.4k3](/packages/laravel-cashier-paddle)

PHPackages © 2026

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