|
8 | 8 | - [完整文档-中文](./docs/zh/README.md)
|
9 | 9 |
|
10 | 10 | # php-serialize
|
11 | | -An advanced PHP serialization tool leveraging attributes for flexible object-to-array and JSON conversion. Supports property aliases, type conversions, and nested object handling. Ideal for APIs, data persistence, and configuration management. |
12 | 11 |
|
| 12 | +**php-serialize** is a powerful attribute-based serialization library for PHP (requires **PHP ≥ 8.1**). |
| 13 | +It allows you to map objects to arrays/JSON and **automatically generate OpenAPI documentation** based on the same attributes. |
| 14 | + |
| 15 | +> 🚀 Unified solution for API data serialization and documentation generation. |
| 16 | + |
| 17 | +## ✨ Features |
| 18 | + |
| 19 | +- 🏷️ Property aliasing with `#[SerializedName]` |
| 20 | +- 🔄 Automatic type casting (e.g. `DateTime ↔ string`) |
| 21 | +- 🔁 Deep object nesting support |
| 22 | +- ❌ Skip/exclude fields with `#[Skip]` |
| 23 | +- 🧩 Recursive DTO serialization |
| 24 | +- 🧬 **Auto-generate OpenAPI schema** using object definitions |
| 25 | +- ⚙️ Framework-agnostic — works with Laravel, Symfony, etc. |
13 | 26 |
|
14 | 27 | ## Quick Start
|
15 | 28 |
|
|
0 commit comments