A bunch of general-purpose value objects you can use in your Laravel application.
Full Changelog: https://github.com/michael-rubel/laravel-value-objects/compare/6.0.0...7.0.0
Full Changelog: https://github.com/michael-rubel/laravel-value-objects/compare/5.1.1...6.0.0
translator
dependency and require illuminate/validation
by @michael-rubel in https://github.com/michael-rubel/laravel-value-objects/pull/41
empty
with explicit string comparison by @michael-rubel in https://github.com/michael-rubel/laravel-value-objects/pull/42
Full Changelog: https://github.com/michael-rubel/laravel-value-objects/compare/5.1.0...5.1.1
Url
value object by @michael-rubel in https://github.com/michael-rubel/laravel-value-objects/pull/39
Full Changelog: https://github.com/michael-rubel/laravel-value-objects/compare/5.0.1...5.1.0
Full Changelog: https://github.com/michael-rubel/laravel-value-objects/compare/5.0.0...5.0.1
FullName
object by @michael-rubel in https://github.com/michael-rubel/laravel-value-objects/pull/33
Boolean
object 🔧 by @michael-rubel in https://github.com/michael-rubel/laravel-value-objects/pull/30
float
support in Number
by @olsza in https://github.com/michael-rubel/laravel-value-objects/pull/34
Full Changelog: https://github.com/michael-rubel/laravel-value-objects/compare/4.2.1...5.0.0
[BC] CHANGED: The parameter $number of MichaelRubel\ValueObjects\Concerns\SanitizesNumbers#sanitize() changed from int|string|null to int|string|float|null [BC] REMOVED: Method MichaelRubel\ValueObjects\Collection\Primitive\Boolean#isInTrueValues() was removed [BC] REMOVED: Method MichaelRubel\ValueObjects\Collection\Primitive\Boolean#isInFalseValues() was removed [BC] CHANGED: Type of property MichaelRubel\ValueObjects\Collection\Primitive\Boolean#$value changed from bool|int|string to bool [BC] CHANGED: Property MichaelRubel\ValueObjects\Collection\Primitive\Boolean#$trueValues changed default value [BC] CHANGED: Property MichaelRubel\ValueObjects\Collection\Primitive\Boolean#$falseValues changed default value [BC] CHANGED: The parameter $number of MichaelRubel\ValueObjects\Collection\Primitive\Number#__construct() changed from int|string to int|string|float [BC] CHANGED: The parameter $number of MichaelRubel\ValueObjects\Concerns\SanitizesNumbers#sanitize() changed from int|string|null to int|string|float|null
BigNumber
object to underlying methods 📚 by @michael-rubel in https://github.com/michael-rubel/laravel-value-objects/pull/29
Number
object by @olsza in https://github.com/michael-rubel/laravel-value-objects/pull/31
Number
object by @olsza in https://github.com/michael-rubel/laravel-value-objects/pull/32
Full Changelog: https://github.com/michael-rubel/laravel-value-objects/compare/4.2.0...4.2.1
Number
by @michael-rubel in https://github.com/michael-rubel/laravel-value-objects/pull/27
Full Changelog: https://github.com/michael-rubel/laravel-value-objects/compare/4.1.0...4.2.0
asFloat
casting method to Number
🔨 by @michael-rubel in https://github.com/michael-rubel/laravel-value-objects/pull/26
Full Changelog: https://github.com/michael-rubel/laravel-value-objects/compare/4.0.2...4.1.0
BigNumber
object immutable 🔧 by @michael-rubel in https://github.com/michael-rubel/laravel-value-objects/pull/25
Full Changelog: https://github.com/michael-rubel/laravel-value-objects/compare/4.0.1...4.0.2