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

Latest commit

 

History

History
37 lines (27 loc) · 971 Bytes

File metadata and controls

37 lines (27 loc) · 971 Bytes

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.