Skip to content

Commit e684ad1

Browse files
committed
gitbook test
1 parent 3c5fcea commit e684ad1

File tree

4 files changed

+34
-2
lines changed

4 files changed

+34
-2
lines changed

docs/en/SUMMARY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Summary
22

3-
* [介绍](README.md)
3+
* [介绍](description.md)
44
* [Quick Start](getting-started.md)
55
* [Type Conversion](base-mapper.md)

docs/en/description.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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.

docs/zh/SUMMARY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Summary
22

3-
* [介绍](README.md)
3+
* [介绍](description.md)
44
* [快速开始](getting-started.md)
55
* [进阶使用](base-mapper.md)

docs/zh/description.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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 等框架

0 commit comments

Comments
 (0)