PHPackages                             moonspot/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. moonspot/value-objects

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

moonspot/value-objects
======================

Base classes for creating value objects which are easy to work with in JSON apis

v2.3.0(5mo ago)06.3k↓23.1%4BSD-3-ClausePHPPHP ^8.2CI passing

Since Dec 14Pushed 5mo ago2 watchersCompare

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

READMEChangelog (7)Dependencies (3)Versions (12)Used By (4)

Value Objects
=============

[](#value-objects)

This library provides a base for creating value objects that can be easily created from and converted into YAML and JSON for use in creating API endpoints.

\\Moonspot\\ValueObjects\\ValueObject
-------------------------------------

[](#moonspotvalueobjectsvalueobject)

This class provides methods for converting arrays, JSON, and YAML into objects and exporting them back to those forms.

```
