PHPackages                             tobya/anymodel - 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. [Database &amp; ORM](/categories/database)
4. /
5. tobya/anymodel

ActiveLibrary[Database &amp; ORM](/categories/database)

tobya/anymodel
==============

Allows creation of a Laravel Entity Model for an arbitrary table

v1.8(1y ago)14.3k↑50%MITPHP

Since Apr 28Pushed 1y ago1 watchersCompare

[ Source](https://github.com/tobya/AnyModel)[ Packagist](https://packagist.org/packages/tobya/anymodel)[ RSS](/packages/tobya-anymodel/feed)WikiDiscussions main Synced today

READMEChangelog (8)DependenciesVersions (11)Used By (0)

AnyModel
--------

[](#anymodel)

### Allows creation of a Laravel Entity Model for an arbitrary table or view

[](#allows-creation-of-a-laravel-entity-model-for-an-arbitrary-table-or-view)

Allow creation of Laravel Entity Model for any arbitrary table without needing to declare a Model first.

This is particuarily useful if you have a legacy application that uses Views and you do not wish to create a model for each view.

```
    // return a new model built from vw_ConfirmedBookings table/view
    $Bookings =  AnyModel::table('vw_ConfirmedBookings')
                                  ->where('Confirmed',true)
                                  ->orderBy('updated_at')
                                  ->get();

    // Work with model in normal way
    $Bookings->each(function($Booking){
        AddName( $Booking->name);
    });
```

### Installation

[](#installation)

```
 composer require tobya/anymodel

```

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

Recently: every ~130 days

Total

10

Last Release

637d ago

### Community

Maintainers

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

---

Top Contributors

[![tobya](https://avatars.githubusercontent.com/u/325502?v=4)](https://github.com/tobya "tobya (9 commits)")

---

Tags

activerecordentity-frameworklaravellaravel-packagemodelphp

### Embed Badge

![Health badge](/badges/tobya-anymodel/health.svg)

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

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k117.2M118](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[pgvector/pgvector

pgvector support for PHP

198741.5k12](/packages/pgvector-pgvector)[jfelder/oracledb

Oracle DB driver for Laravel

11518.4k](/packages/jfelder-oracledb)

PHPackages © 2026

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