bizmate/valueobjects

A PHP library/collection of classes aimed to help developers using and undestanding immutable objects.Forked from ytake/valueobjects due to unresponve PRs and broken builds.

3.0.1 2024-06-27 11:13 UTC

README

Build Status Coverage Status Scrutinizer Code Quality

License Latest Version Total Downloads StyleCI

Codacy Badge SensioLabsInsight

A PHP library/collection of classes aimed to help developers using and undestanding immutable objects.

This is fork of the educational package nicolopignatelli/valueobjects that aims to provide more functionality for basic tasks and act as a object oriented wrapper for PHP types.

Install

Supports >= PHP 7.0

$ composer require bizmate/valueobjects

Develop

To run tests, checks and get a shell to the development environment you need docker, docker-compose and make.

Run composer and docker

Running make up will build the php docker image and run composer install as part of it.

You can also open a shell inside the container, for instance to perform some commands like composer changes and updates by running make bash

Run tests

You can run unit

make tests

code style checks and fixes

make phpcs and `make phpcbf

or the security checker with

make securitychecker