File tree Expand file tree Collapse file tree 4 files changed +34
-2
lines changed Expand file tree Collapse file tree 4 files changed +34
-2
lines changed Original file line number Diff line number Diff line change 1
1
# Summary
2
2
3
- * [ 介绍] ( README .md)
3
+ * [ 介绍] ( description .md)
4
4
* [ Quick Start] ( getting-started.md )
5
5
* [ Type Conversion] ( base-mapper.md )
Original file line number Diff line number Diff line change
1
+ # php-serialize
2
+
3
+ ** php-serialize** is a powerful attribute-based serialization library for PHP (requires ** PHP ≥ 8.1** ).
4
+ It allows you to map objects to arrays/JSON and ** automatically generate OpenAPI documentation** based on the same attributes.
5
+
6
+ > 🚀 Unified solution for API data serialization and documentation generation.
7
+
8
+ ## ✨ Features
9
+
10
+ - 🏷️ Property aliasing with
11
+ - 🔄 Automatic type casting (e.g. ` DateTime ↔ string ` )
12
+ - 🔁 Deep object nesting support
13
+ - ❌ Skip/exclude fields with
14
+ - 🧩 Recursive DTO serialization
15
+ - 🧬 ** Auto-generate OpenAPI schema** using object definitions
16
+ - ⚙️ Framework-agnostic — works with Laravel, Symfony, etc.
Original file line number Diff line number Diff line change 1
1
# Summary
2
2
3
- * [ 介绍] ( README .md)
3
+ * [ 介绍] ( description .md)
4
4
* [ 快速开始] ( getting-started.md )
5
5
* [ 进阶使用] ( base-mapper.md )
Original file line number Diff line number Diff line change
1
+ # php-serialize
2
+
3
+ ** php-serialize** 是一个功能强大的基于属性(attribute)的 PHP 序列化库(需要 ** PHP ≥ 8.1** )。
4
+ 它允许你将对象映射为数组或 JSON,并且可以基于相同的属性 ** 自动生成 OpenAPI 文档** 。
5
+
6
+ > 🚀 统一解决方案,支持 API 数据序列化和文档生成。
7
+
8
+ ## ✨ 功能特色
9
+
10
+ - 🏷️ 属性别名映射
11
+ - 🔄 自动类型转换(例如 ` DateTime ↔ string ` )
12
+ - 🔁 支持深度对象嵌套
13
+ - ❌ 支持跳过/排除字段
14
+ - 🧩 递归 DTO(数据传输对象)序列化
15
+ - 🧬 ** 基于对象定义自动生成 OpenAPI schema**
16
+ - ⚙️ 与框架无关 — 兼容 Laravel、Symfony 等框架
You can’t perform that action at this time.
0 commit comments