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

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

acid-solutions/value-objects
============================

v0.0.2(10y ago)11.7kPHPPHP &gt;=5.3.0

Since May 26Pushed 10y ago3 watchersCompare

[ Source](https://github.com/ACID-Solutions/value-objects)[ Packagist](https://packagist.org/packages/acid-solutions/value-objects)[ RSS](/packages/acid-solutions-value-objects/feed)WikiDiscussions master Synced 1mo ago

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

ValueObjects
============

[](#valueobjects)

It's an easy to use bulk of classes.

Install
-------

[](#install)

Classes
-------

[](#classes)

- Decimal
- String

### Decimal

[](#decimal)

Provide an easy way to use Decimal numbers

```
$decimal = new Decimal("1");

echo $decimal; // 1.00

$decimal === 1.00; // false

$decimal->value === 1.00; // true

$decimal() === 1.00; //true

$decimal->add('3')->multiple(4)->reduce(new Decimal(1));

echo $decimal; // 15.00

// Use it in function parameter

class SomeAwesomeClass
{
    public function plusOneMaybeAndDisplay( Decimal $prettyDecimal )
    {
        if ( rand(0,1) )
        {
            $prettyDecimal->add(1);
        }

        echo $prettyDecimal;
    }
}

// Methods:
$decimal->isEqualTo(x) // Boolean
$decimal->isPositive() // Boolean
$decimal->isLowerThan(x) // Boolean
$decimal->isLowerOrEqualTo(x) // Boolean
$decimal->isHigherThan(x) // Boolean
$decimal->isHigherOrEqualTo(x) // Boolean
```

### String

[](#string)

```
$myString = new String('a string');

$myString->upper()->contains('STRING');

// Use it in function parameter

class SomeAwesomeClass
{
    public function crazyFunction( String $sexyString )
    {
        // Do something with this fucking sexyString !
    }
}
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

2

Last Release

4008d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e0872a7b81ab21033b2fe8ffcca970ca17a28b92ba9638ae90621ed826d7acb7?d=identicon)[daniel-acid](/maintainers/daniel-acid)

---

Top Contributors

[![daniel-chris-lucas](https://avatars.githubusercontent.com/u/2169418?v=4)](https://github.com/daniel-chris-lucas "daniel-chris-lucas (2 commits)")

###  Code Quality

TestsBehat

### Embed Badge

![Health badge](/badges/acid-solutions-value-objects/health.svg)

```
[![Health](https://phpackages.com/badges/acid-solutions-value-objects/health.svg)](https://phpackages.com/packages/acid-solutions-value-objects)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[orchestra/canvas

Code Generators for Laravel Applications and Packages

20917.2M158](/packages/orchestra-canvas)[illuminate/pipeline

The Illuminate Pipeline package.

9346.6M213](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
