dryspell / models
PHP models framework, using typed properties.
Installs: 55
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/dryspell/models
Requires
- php: >=8.0
Requires (Dev)
- phpunit/phpunit: ^9.5
README
Framework to help with quickly creating models to use in any PHP application. Properties are defined as typed properties and use PHP 8 attributes to set options. Refer to the Dryspell\Models\Property
class for available options.
Installation
composer require dryspell/models
Usage
Create models
Create models by extending Dryspell\Models\BaseObject
. By default every model has an id, created_at and updated_at property.
Using models
Simply assign the values to the properties ans save the using an instance of dryspell/storage-interface
Todos
- Create better documentation
- Add helpers for validation and form creation
- Add more options for finding items
- Add more storage implementations
- Collect and support corner cases