alksily / entity
Model and Collection classes
Installs: 309
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/alksily/entity
Requires
- php: >=7.0
This package is auto-updated.
Last update: 2025-10-11 02:15:41 UTC
README
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 alksily/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 Alksily Entity is licensed under the MIT license. See License File for more information.