PHPackages                             anekdotes/staticmodel - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. anekdotes/staticmodel

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

anekdotes/staticmodel
=====================

Abstract class used to create static Model classes. These classes have their data initiated in themselves. Allows Model operations to be used to a certain extent.

2.0.0(4y ago)0404MITPHPPHP &gt;=7.4.0

Since Jul 29Pushed 4y ago2 watchersCompare

[ Source](https://github.com/anekdotes/staticmodel)[ Packagist](https://packagist.org/packages/anekdotes/staticmodel)[ RSS](/packages/anekdotes-staticmodel/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (6)Used By (0)

Anekdotes Staticmodel
=====================

[](#anekdotes-staticmodel)

[![Latest Stable Version](https://camo.githubusercontent.com/bfd9e89fab6749c7afde9380c219bcb9d28ba158a5583fa776d12037fb572600/68747470733a2f2f706f7365722e707567782e6f72672f616e656b646f7465732f7374617469636d6f64656c2f762f737461626c65)](https://packagist.org/packages/anekdotes/staticmodel)[![Build Status](https://camo.githubusercontent.com/f5aa4060538494b1c49902d48da0426fda33ea08d7ad77dc80da75833d838894/68747470733a2f2f7472617669732d63692e6f72672f616e656b646f7465732f7374617469636d6f64656c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/anekdotes/staticmodel)[![codecov.io](https://camo.githubusercontent.com/ad39208c7445efab3b8cb6225a5709bba6d24150332587a3fce279a1a5479e7f/68747470733a2f2f636f6465636f762e696f2f67682f616e656b646f7465732f7374617469636d6f64656c2f636f7665726167652e737667)](https://codecov.io/gh/anekdotes/staticmodel?branch=master)[![StyleCI](https://camo.githubusercontent.com/a340e59a0fa5f27ffa98a39f218bff3d5e0fb216bd853ab554f2bbe45eb5630f/68747470733a2f2f7374796c6563692e696f2f7265706f732f36343438313731342f736869656c643f7374796c653d666c6174)](https://styleci.io/repos/64481714)[![License](https://camo.githubusercontent.com/f8c5937da6d3a5b1a2fd15f1b53c738877f0440613b7c5c0360a5a5c4fcbe88e/68747470733a2f2f706f7365722e707567782e6f72672f616e656b646f7465732f7374617469636d6f64656c2f6c6963656e7365)](https://packagist.org/packages/anekdotes/staticmodel)[![Total Downloads](https://camo.githubusercontent.com/b6e3a231b823fbe2c7a89d2fa0607165d1d1f19434ad6c202b430a956db3740f/68747470733a2f2f706f7365722e707567782e6f72672f616e656b646f7465732f7374617469636d6f64656c2f646f776e6c6f616473)](https://packagist.org/packages/anekdotes/staticmodel)[![Codacy Badge](https://camo.githubusercontent.com/3e7793a725dc4d70f5a695081466b6ac671ca4ec6df1e62bb8f2f2f6c262dd62/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f3530313334666562636566653463633738646166303763613435393639373238)](https://www.codacy.com/app/Grasseh/staticmodel?utm_source=github.com&utm_medium=referral&utm_content=anekdotes/staticmodel&utm_campaign=Badge_Grade)

Abstract class used to create static Model classes. These classes have their data initiated in themselves. Allows Model operations to be used to a certain extent.

Installation
------------

[](#installation)

Install via composer into your project:

```
composer require anekdotes/staticmodel

```

Usage
-----

[](#usage)

Create your static class by inheriting StaticModel. Fill it with your static data.

```
class Languages extends StaticModel {

  public static $data = array(
    array(
      'id' => 1,
      'name' => 'English',
      'small' => 'en'
    )
  );

}
```

You can then call the model as any other Illuminate model, and use most of Illuminate's functionalities.

```
$english = Languages::find(1);
$englishname = $english->name;
```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 65.2% 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 ~486 days

Total

5

Last Release

1679d ago

Major Versions

1.0.3 → 2.0.02021-11-24

PHP version history (2 changes)1.0.0PHP &gt;=5.6.0

2.0.0PHP &gt;=7.4.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/17788771?v=4)[Anekdotes](/maintainers/anekdotes)[@anekdotes](https://github.com/anekdotes)

---

Top Contributors

[![franatieu](https://avatars.githubusercontent.com/u/4522233?v=4)](https://github.com/franatieu "franatieu (15 commits)")[![Grasseh](https://avatars.githubusercontent.com/u/2159610?v=4)](https://github.com/Grasseh "Grasseh (8 commits)")

---

Tags

arraymodelobjectstaticArrayAccess

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/anekdotes-staticmodel/health.svg)

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

###  Alternatives

[symfony/property-access

Provides functions to read and write from/to an object or array using a simple string notation

2.8k309.5M3.0k](/packages/symfony-property-access)[cuyz/valinor

Dependency free PHP library that helps to map any input into a strongly-typed structure.

1.5k11.7M157](/packages/cuyz-valinor)[jasny/dotkey

Dot notation access for objects and arrays

14222.3k7](/packages/jasny-dotkey)[michaldudek/foundation

A set of useful PHP classes.

13112.4k13](/packages/michaldudek-foundation)[peridot-php/object-path

A string syntax to fetch values from array and object hierarchies

1054.5k1](/packages/peridot-php-object-path)[rotexsoft/versatile-collections

A collection package that can be extended to implement things such as a Dependency Injection Container, RecordSet objects for housing database records, a bag of http cookies, or technically any collection of items that can be looped over and whose items can each be accessed using array-access syntax or object property syntax.

186.1k1](/packages/rotexsoft-versatile-collections)

PHPackages © 2026

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