Download the PHP package withinboredom/record without Composer
On this page you can find all versions of the php package withinboredom/record. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package record
PHP Records
This aims to be a bare-bones library for creating immutable records in PHP.
Example:
Reason for existing
Immutable objects are a great way to prevent some classes of bugs and with PHP 8.1 we can finally make them a reality. This library provides a very simple (no bells and whistles) way to copy an object while changing one or two parameters using newer php syntax. The only thing missing is IDE support... :)
Installation
Running tests
Tests deps have been intentially left out of the composer.json file.
Add in the following to run the tests:
Then run the tests with: