PHPackages                             aedart/model - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. aedart/model

Abandoned → [aedart/athenaeum](/?search=aedart%2Fathenaeum)ArchivedLibrary

aedart/model
============

Collection of getter- / setter-interfaces with various trait implementations, for different kinds of 'common' properties.

3.3.0(7y ago)07821BSD-3-ClausePHPPHP &gt;=7.1.0

Since Oct 21Pushed 7y ago1 watchersCompare

[ Source](https://github.com/aedart/model)[ Packagist](https://packagist.org/packages/aedart/model)[ Docs](https://github.com/aedart/model)[ RSS](/packages/aedart-model/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (25)Used By (1)

[![Build Status](https://camo.githubusercontent.com/98bbaa4bdb7e46c7ce19cb834a7212bd0035194e070136831f9be1bc19ce8086/68747470733a2f2f7472617669732d63692e6f72672f6165646172742f6d6f64656c2e7376673f6272616e63683d646576)](https://travis-ci.org/aedart/model)[![Latest Stable Version](https://camo.githubusercontent.com/ceb31a4210846d95fa21be83f7980994c3147a6ca298e3d13befdb63a8e6bae7/68747470733a2f2f706f7365722e707567782e6f72672f6165646172742f6d6f64656c2f762f737461626c65)](https://packagist.org/packages/aedart/model)[![Total Downloads](https://camo.githubusercontent.com/a8052a12120443358c735e3c0b7ce20d558f28316586b66d55359d4f3a3085bf/68747470733a2f2f706f7365722e707567782e6f72672f6165646172742f6d6f64656c2f646f776e6c6f616473)](https://packagist.org/packages/aedart/model)[![Latest Unstable Version](https://camo.githubusercontent.com/81d106a4f02d95630d8d181daf2d285be1150a0bf8cd462ba6e60ce1c5e2ccf3/68747470733a2f2f706f7365722e707567782e6f72672f6165646172742f6d6f64656c2f762f756e737461626c65)](https://packagist.org/packages/aedart/model)[![License](https://camo.githubusercontent.com/06b37ba4df7cda4c15ff67b9088b1d2728a539881ce30c8318a04ddfef7371e9/68747470733a2f2f706f7365722e707567782e6f72672f6165646172742f6d6f64656c2f6c6963656e7365)](https://packagist.org/packages/aedart/model)

Deprecated - Model
==================

[](#deprecated---model)

**Package has been replaced by [aedart/athenaeum](https://github.com/aedart/athenaeum)**All aware-of components have been migrated into the [Athenaeum package](https://aedart.github.io/athenaeum/components/support/properties.html).

Collection of [getters and setters](http://en.wikipedia.org/wiki/Mutator_method)-interfaces with various trait implementations, for different kinds of "common" properties. Can be used for creating [DTOs](https://en.wikipedia.org/wiki/Data_transfer_object).

Contents
========

[](#contents)

- [When to use this](#when-to-use-this)
- [How to install](#how-to-install)
- [Quick start](#quick-start)
    - [Create your interface](#create-your-interface)
    - [Concrete implementation](#concrete-implementation)
- [Available properties](#available-properties)
- [Contribution](#contribution)
- [Acknowledgement](#acknowledgement)
- [Versioning](#versioning)
- [License](#license)

When to use this
----------------

[](#when-to-use-this)

- When there is a strong need to interface what properties must be available on a given object
- (When multiple objects share the same properties)

How to install
--------------

[](#how-to-install)

```
composer require aedart/model
```

This package uses [composer](https://getcomposer.org/). If you do not know what that is or how it works, I recommend that you read a little about, before attempting to use this package.

Quick start
-----------

[](#quick-start)

### Create your interface

[](#create-your-interface)

In the following example, we create a simple person interface, which consists of an id, name and description;

```
