You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Composite Entity is a lightweight and intelligent PHP 8.1+ class that shines in its ability to be serialized and deserialized from an array.
7
-
This smart feature makes it extremely useful when managing data from databases.
6
+
Composite Entity is a PHP 8.1+ lightweight class designed for efficient and intelligent data handling.
7
+
It specializes in the serialization and deserialization of data, making it highly beneficial for database management.
8
8
9
-
It efficiently converts database rows into a strictly typed object and back into an array, enhancing your workflow and making your interaction with databases much smoother and more productive.
9
+
## Features
10
+
* Converts database rows to strictly typed objects and vice versa.
11
+
* Streamlines database interactions.
10
12
11
13
Overview:
12
14
*[Requirements](#requirements)
@@ -16,31 +18,23 @@ Overview:
16
18
17
19
## Requirements
18
20
19
-
* PHP 8.1+
21
+
* PHP 8.1 or higher.
20
22
21
23
## Installation
22
24
23
-
Install package via composer:
25
+
Install using Composer::
24
26
25
27
```shell
26
28
$ composer require compositephp/entity
27
29
```
28
30
29
31
## Supported column types:
30
32
31
-
Composite Entity has the capability to automatically serialize and deserialize nearly all data types you might require.
32
-
- String
33
-
- Integer
34
-
- Float
35
-
- Bool
36
-
- Array
37
-
- Object (stdClass)
38
-
- DateTime and DateTimeImmutable
39
-
- Enum
40
-
- Another Entity
41
-
- List of map of Entities
42
-
- Collection (any ArrayAccess instance, e.g. Doctrine Collection)
43
-
- Custom class that implements `Composite\DB\Entity\CastableInterface`
33
+
Composite Entity supports a wide range of data types:
0 commit comments