sophokles/dataobject

Sophokles Data Object Library

1.0.0 2024-04-16 05:38 UTC

This package is auto-updated.

Last update: 2024-10-16 06:50:10 UTC


README

Sophokles library to generate from any array a data object

Installation

  1. Include as composer dependency using composer require sophokles/dataobject
  2. Run composer install to generate the vendor class autoloader
  3. The classes from Sophokles.dataobject can now be used in your composer project

Usage Examples

Small usage examples have been included in the examples/ folder. The examples are PHP scripts which shows how the object classes work.

  1. Define a custom model class object extending AbstractDataObject
  1. Create a new object from your model class, use your data array in the constructor
  1. Access to the data on your object by getters and setters