Model and Collection classes
Some parts of the project were influenced by: Laravel, Symfony Framework’s. Thank you!
Run the following command in the root directory of your web project:
composer require aengine/entity
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);
Please see CONTRIBUTING for details.
The AEngine Entity is licensed under the MIT license. See License File for more information.