Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 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 (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-02-07T16:20:45.000Z (11 months ago)
- Last Synced: 2024-09-29T20:22:34.175Z (3 months ago)
- Topics: event-engine, immutable-objects, php7, prooph
- Language: PHP
- Homepage: https://event-engine.github.io
- Size: 55.7 KB
- Stars: 20
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# EventEngine\Data
[![Build Status](https://travis-ci.com/event-engine/php-data.svg?branch=master)](https://travis-ci.com/event-engine/php-data)
[![Coverage Status](https://coveralls.io/repos/github/event-engine/php-data/badge.svg?branch=master)](https://coveralls.io/github/event-engine/php-data?branch=master)Generate Immutable Objects with ease!
![Value Object Template vo_string](https://event-engine.io/api/img/vo_string.gif)
## 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)