2017 © Pedro Peláez
 

library 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.

image

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.

  • Thursday, November 17, 2016
  • by anekdotes
  • Repository
  • 2 Watchers
  • 0 Stars
  • 101 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 1 % Grown

The README.md

Anekdotes Staticmodel

Latest Stable Version Build Status codecov.io StyleCI License Total Downloads Codacy Badge, (*1)

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)

Installation

Install via composer into your project:, (*3)

composer require anekdotes/staticmodel

Usage

Create your static class by inheriting StaticModel. Fill it with your static data., (*4)

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., (*5)

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

The Versions

17/11 2016

dev-master

9999999-dev

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.

  Sources   Download

MIT

The Requires

 

The Development Requires

model array object static arrayaccess

12/10 2016

1.0.3

1.0.3.0

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.

  Sources   Download

MIT

The Requires

 

The Development Requires

model array object static arrayaccess

01/09 2016

1.0.2

1.0.2.0

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.

  Sources   Download

MIT

The Requires

 

The Development Requires

model array object static arrayaccess

29/07 2016

1.0.1

1.0.1.0

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.

  Sources   Download

MIT

The Requires

 

The Development Requires

model array object static arrayaccess

29/07 2016

1.0.0

1.0.0.0

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.

  Sources   Download

MIT

The Requires

 

The Development Requires

model array object static arrayaccess