PHP Classes

PHP Value Objects: Access data in containers using value objects

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 106 All time: 9,705 This week: 455Up
Version License PHP version Categories
php-value-objects 1.0.0MIT/X Consortium ...5PHP 5, Databases, Design Patterns
Description 

Author

This package can be used to access data in containers using value objects.

It provides traits that implement base functions for mutable and immutable value objects.

The traits can be used on classes that can hold variable values that can be changed or not after the class objects are created.

Innovation Award
PHP Programming Innovation award nominee
July 2019
Number 5
Value objects are objects that contain information that is meant to be stored or retrieved from application storage containers like database servers.

This package provides traits that can easily turn any class into a value object class.

Manuel Lemos
Picture of Axel Pardemann
  Performance   Level  
Name: Axel Pardemann <contact>
Classes: 11 packages by
Country: Mexico Mexico
Age: 42
All time rank: 187220 in Mexico Mexico
Week rank: 170 Up3 in Mexico Mexico Up
Innovation award
Innovation award
Nominee: 3x

Details

<div align="center">

<h1>PHP Value Objects</h1>
<p align="center"> 
    <a href="https://packagist.org/packages/norse-blue/value-objects"><img alt="Stable Release" src="https://img.shields.io/packagist/v/norse-blue/value-objects.svg?style=flat-square&label=release&logo=packagist&logoColor=eceff4&colorA=4c566a&colorB=5e81ac"></a>
    <a href="https://travis-ci.com/norse-blue/php-value-objects"><img alt="Build Status" src="https://img.shields.io/travis/com/norse-blue/php-value-objects.svg?style=flat-square&label=build&logo=travis-ci&logoColor=eceff4&colorA=4c566a&colorB=88c0d0"></a>
    <a href="https://php.net/releases"><img alt="PHP Version" src="https://img.shields.io/packagist/php-v/norse-blue/value-objects.svg?style=flat-square&label=php&logo=php&logoColor=eceff4&colorA=4c566a&colorB=b48ead"></a>
    <a href="https://codeclimate.com/github/norse-blue/php-value-objects"><img alt="Maintainability" src="https://img.shields.io/codeclimate/maintainability/norse-blue/php-value-objects.svg?style=flat-square&label=maintainability&logo=code-climate&logoColor=eceff4&colorA=4c566a&colorB=88c0d0"></a>
    <a href="https://codeclimate.com/github/norse-blue/php-value-objects"><img alt="Test Coverage" src="https://img.shields.io/codeclimate/coverage/norse-blue/php-value-objects.svg?style=flat-square&label=coverage&logo=code-climate&logoColor=eceff4&colorA=4c566a&colorB=88c0d0"></a>
    <a href="https://packagist.org/packages/norse-blue/value-objects"><img alt="Total Downloads" src="https://img.shields.io/packagist/dt/norse-blue/value-objects.svg?style=flat-square&label=downloads&logoColor=eceff4&colorA=4c566a&colorB=88c0d0"></a>
    <a href="https://github.com/norse-blue/php-value-objects/blob/master/LICENSE.md"><img alt="License" src="https://img.shields.io/github/license/norse-blue/php-value-objects.svg?style=flat-square&label=license&logoColor=eceff4&colorA=4c566a&colorB=a3be8c"></a>
</p>

</div> <hr>

PHP Value Objects is a PHP library that implements the value object technique and lets you create your own value objects with the scaffolding already laid out for you.

Installation

>Requirements: >- PHP 7.3+

Install this package using Composer:

composer require norse-blue/value-objects

Usage

To get more in-depth knowledge about this package, please refer to the Official Documentation.

Changelog

Please refer to the CHANGELOG.md file for more information about what has changed recently.

Contributing

Contributions to this project are accepted and encouraged. Please read the CONTRIBUTING.md file for details on contributions.

Credits

Security

Please review our security policy to know how to report security vulnerabilities within this package.

Support the development

Do you like this project? Support it by donating

<a href="https://www.buymeacoffee.com/axelitus"><img src="docs/assets/images/buy-me-a-coffee.svg" width="180" alt="Buy me a coffee"></img></a>

License

This package is open-sourced software licensed under the MIT license.


  Files folder image Files (40)  
File Role Description
Files folder image.changelog (1 file)
Files folder image.github (4 files, 1 directory)
Files folder imagedocs (2 files, 2 directories)
Files folder imagesrc (1 file, 5 directories)
Files folder imagetests (1 file, 3 directories)
Accessible without login Plain text file .codeclimate.yml Data Auxiliary data
Accessible without login Plain text file .editorconfig Data Auxiliary data
Accessible without login Plain text file .phpcs.xml.dist Data Auxiliary data
Accessible without login Plain text file .styleci.yml Data Auxiliary data
Accessible without login Plain text file .travis.yml Data Auxiliary data
Accessible without login Plain text file CHANGELOG.md Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE.md Lic. License text
Accessible without login Plain text file php-value-objects.sublime-project Data Auxiliary data
Plain text file phpinsights.php Class Class source
Accessible without login Plain text file phpstan.neon.dist Data Auxiliary data
Accessible without login Plain text file phpunit.xml.dist Data Auxiliary data
Accessible without login Plain text file README.md Data Read me
Accessible without login Plain text file SECURITY.md Data Auxiliary data

  Files folder image Files (40)  /  .changelog  
File Role Description
  Accessible without login Plain text file CHANGELOG-0.0.0.md Data Auxiliary data

  Files folder image Files (40)  /  .github  
File Role Description
Files folder imageISSUE_TEMPLATE (3 files)
  Accessible without login Plain text file CODE_OF_CONDUCT.md Data Auxiliary data
  Accessible without login Plain text file CONTRIBUTING.md Data Auxiliary data
  Accessible without login Plain text file FUNDING.yml Data Auxiliary data
  Accessible without login Plain text file PULL_REQUEST_TEMPLATE.md Data Auxiliary data

  Files folder image Files (40)  /  .github  /  ISSUE_TEMPLATE  
File Role Description
  Accessible without login Plain text file BUG_REPORT.md Data Auxiliary data
  Accessible without login Plain text file FEATURE_REQUEST.md Data Auxiliary data
  Accessible without login Plain text file QUESTION_DISCUSSION.md Data Auxiliary data

  Files folder image Files (40)  /  docs  
File Role Description
Files folder imageassets (2 directories)
Files folder image_sass (1 directory)
  Accessible without login Plain text file index.md Data Auxiliary data
  Accessible without login Plain text file _config.yml Data Auxiliary data

  Files folder image Files (40)  /  docs  /  assets  
File Role Description
Files folder imageimages (1 file)
Files folder imagejs (1 file)

  Files folder image Files (40)  /  docs  /  assets  /  images  
File Role Description
  Accessible without login Plain text file buy-me-a-coffee.svg Data Auxiliary data

  Files folder image Files (40)  /  docs  /  assets  /  js  
File Role Description
  Accessible without login Plain text file search-data.json Data Auxiliary data

  Files folder image Files (40)  /  docs  /  _sass  
File Role Description
Files folder imagecustom (1 file)

  Files folder image Files (40)  /  docs  /  _sass  /  custom  
File Role Description
  Accessible without login Plain text file custom.scss Data Auxiliary data

  Files folder image Files (40)  /  src  
File Role Description
Files folder imageContracts (1 file)
Files folder imageExceptions (2 files)
Files folder imageImmutable (1 file)
Files folder imageMutable (1 file)
Files folder imageTraits (2 files)
  Plain text file ValueObject.php Class Class source

  Files folder image Files (40)  /  src  /  Contracts  
File Role Description
  Plain text file SimpleValueObjectContract.php Class Class source

  Files folder image Files (40)  /  src  /  Exceptions  
File Role Description
  Plain text file ImmutableValueObjectException.php Class Class source
  Plain text file InvalidValueException.php Class Class source

  Files folder image Files (40)  /  src  /  Immutable  
File Role Description
  Plain text file ImmutableSimpleValueObject.php Class Class source

  Files folder image Files (40)  /  src  /  Mutable  
File Role Description
  Plain text file SimpleValueObject.php Class Class source

  Files folder image Files (40)  /  src  /  Traits  
File Role Description
  Plain text file ImmutableValueObjectBehavior.php Class Class source
  Plain text file SimpleValueObjectBehavior.php Class Class source

  Files folder image Files (40)  /  tests  
File Role Description
Files folder imageHelpers (2 files)
Files folder imageImmutable (1 file)
Files folder imageMutable (1 file)
  Plain text file TestCase.php Class Class source

  Files folder image Files (40)  /  tests  /  Helpers  
File Role Description
  Plain text file Ispvo.php Class Class source
  Plain text file Spvo.php Class Class source

  Files folder image Files (40)  /  tests  /  Immutable  
File Role Description
  Plain text file ImmutableSimpleValueObjectTest.php Class Class source

  Files folder image Files (40)  /  tests  /  Mutable  
File Role Description
  Plain text file SimpleValueObjectTest.php Class Class source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:106
This week:0
All time:9,705
This week:455Up