dryspell/models

There is no license information available for the latest version (2.1.7) of this package.

PHP models framework, using typed properties.

2.1.7 2023-01-21 18:05 UTC

This package is auto-updated.

Last update: 2024-05-21 21:04:00 UTC


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