# Introduction

**php-serialize** is a powerful attribute-based PHP serialization library (requires PHP ≥ 8.1). It allows you to map objects to arrays or JSON, and can automatically generate OpenAPI documentation based on the same

> 🚀 Unified solution supporting API data serialization and document generation.

## ✨ Features

* 🏷️ Property alias mapping
* 🔄 Automatic type conversion
* 🔁 Support for deep object nesting
* ❌ Support for skipping/excluding fields
* 🧩 Recursive DTO (Data Transfer Object) serialization
* 🧬 Automatically generate OpenAPI schema based on object definitions
* ⚙️ Framework-agnostic — compatible with Laravel, Symfony, and more


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://astrals-organization.gitbook.io/php-serialize/php-serialize-en/readme.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
