PHPackages                             apie/common-value-objects - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. apie/common-value-objects

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

apie/common-value-objects
=========================

Composer package of the apie library: common value objects

1.0.0.x-dev(4mo ago)07.5k5MITPHPPHP &gt;=8.3

Since May 3Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/apie-lib/common-value-objects)[ Packagist](https://packagist.org/packages/apie/common-value-objects)[ RSS](/packages/apie-common-value-objects/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (11)Versions (3)Used By (5)

[![](https://raw.githubusercontent.com/apie-lib/apie-lib-monorepo/main/docs/apie-logo.svg)](https://raw.githubusercontent.com/apie-lib/apie-lib-monorepo/main/docs/apie-logo.svg)

common-value-objects
====================

[](#common-value-objects)

[![Latest Stable Version](https://camo.githubusercontent.com/c503c064fd565b279717fa1c83b270c46339ac7ef9e91f5b61f2066de33c3e87/68747470733a2f2f706f7365722e707567782e6f72672f617069652f636f6d6d6f6e2d76616c75652d6f626a656374732f76)](https://packagist.org/packages/apie/common-value-objects) [![Total Downloads](https://camo.githubusercontent.com/668da73cb946b20cb305d361392272292b657b2172569821e137cd609c008790/68747470733a2f2f706f7365722e707567782e6f72672f617069652f636f6d6d6f6e2d76616c75652d6f626a656374732f646f776e6c6f616473)](https://packagist.org/packages/apie/common-value-objects) [![Latest Unstable Version](https://camo.githubusercontent.com/6ad04ef5acb7776e733b5c3260bcb1d2be1f998de28cc62ea8687e63c2cabfe9/68747470733a2f2f706f7365722e707567782e6f72672f617069652f636f6d6d6f6e2d76616c75652d6f626a656374732f762f756e737461626c65)](https://packagist.org/packages/apie/common-value-objects) [![License](https://camo.githubusercontent.com/d368df2ed041573309fa6d334e92cd5fd0bc1ec2edb2d5342d14240d37e5d536/68747470733a2f2f706f7365722e707567782e6f72672f617069652f636f6d6d6f6e2d76616c75652d6f626a656374732f6c6963656e7365)](https://packagist.org/packages/apie/common-value-objects) [![PHP Composer](https://camo.githubusercontent.com/31e4fabd46abe1f5ffadb61dae7aefb71c910d93d1a58b034f4330271e501738/68747470733a2f2f617069652d6c69622e6769746875622e696f2f70726f6a656374436f7665726167652f636f7665726167652d636f6d6d6f6e2d76616c75652d6f626a656374732e737667)](https://apie-lib.github.io/projectCoverage/common-value-objects/index.html)

[![PHP Composer](https://github.com/apie-lib/common-value-objects/actions/workflows/php.yml/badge.svg?event=push)](https://github.com/apie-lib/common-value-objects/actions/workflows/php.yml)

This package is part of the [Apie](https://github.com/apie-lib) library. The code is maintained in a monorepo, so PR's need to be sent to the [monorepo](https://github.com/apie-lib/apie-lib-monorepo/pulls)

Documentation
-------------

[](#documentation)

A set of common value object classes that can be used right away or can be used as examples how to make common value objects.

### Enums

[](#enums)

enums are just PHP enums with common values. They are fully supported by Apie.

EnumsDescriptionGenderIndicate male or female### Identifiers

[](#identifiers)

Identifiers are used by Apie entities to tell the id of an entity. To use these as identifiers for your entity, you need to extend one of these and implement the IdentifierInterface. Otherwise you can also use them as property fields on an entity or a [composite value object](https://packagist.org/packages/apie/composite-value-objects).

Example:

```
