https://github.com/event-engine/php-data
Immutable objects for Event Engine
https://github.com/event-engine/php-data
event-engine immutable-objects php7 prooph
Last synced: about 2 months ago
JSON representation
Immutable objects for Event Engine
- Host: GitHub
- URL: https://github.com/event-engine/php-data
- Owner: event-engine
- License: mit
- Created: 2019-03-20T17:07:54.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2025-01-16T12:12:26.000Z (5 months ago)
- Last Synced: 2025-04-02T04:59:22.497Z (2 months ago)
- Topics: event-engine, immutable-objects, php7, prooph
- Language: PHP
- Homepage: https://event-engine.github.io
- Size: 58.6 KB
- Stars: 20
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# EventEngine\Data
[](https://travis-ci.com/event-engine/php-data)
[](https://coveralls.io/github/event-engine/php-data?branch=master)Generate Immutable Objects with ease!

## Installation
```bash
composer require event-engine/php-data
```## Versions
- 1.x uses method return type hints to detect ImmutableRecord property types
- Use this version in PHP 7.2 - PHP 7.3 environments
- 2.x makes use of PHP 7.4 property type hints
- Use this version in >= PHP 7.4 environments
## PHPStorm TemplatesThe `EventEngine\Data` package contains a set of live templates specifically designed to work together with the `EventEngine\Data\ImmutableRecord`.
You can import the templates by following official [PHPStorm instructions](https://www.jetbrains.com/help/phpstorm/sharing-live-templates.html).
Please find the `settings.zip` [here](https://github.com/event-engine/php-data/blob/master/.env/PHPStorm/settings.zip).
## Usage
Usage is described in the [documentation](https://event-engine.io/api/immutable_state.html)