Skip to content
This repository was archived by the owner on Aug 24, 2019. It is now read-only.

AEngine/entity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AEngine Entity

Some parts of the project were influenced by: Laravel, Symfony Framework's. Thank you!

Requirements

  • PHP >= 7.0

Installation

Run the following command in the root directory of your web project:

composer require aengine/entity

Usage

Example use Model and Collection (docs for collection by laravel)

class Car extends Model {
    public $brand = '';
    public $mark = '';
    public $color = '';
}

$cars = collect([
    new Car(['brand' => 'BMW', 'mark' => 'M4', 'color' => 'red']),
    new Car(['brand' => 'BMW', 'mark' => 'X5', 'color' => 'yellow']),
    new Car(['brand' => 'Peel', 'mark' => 'P50', 'color' => 'blue']), // Peel Engineering Company
]);

var_dump($cars);

Contributing

Please see CONTRIBUTING for details.

License

The AEngine Entity is licensed under the MIT license. See License File for more information.

About

Model and Collection classes

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages