Download the PHP package astral/php-serialize without Composer
On this page you can find all versions of the php package astral/php-serialize. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download astral/php-serialize
More information about astral/php-serialize
Files in astral/php-serialize
Package php-serialize
Short Description 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.
License MIT
Homepage https://github.com/astral-data/php-serialize
Informations about the package php-serialize
Languages
php-serialize
php-serialize is a powerful attribute-based serialization library for PHP (requires PHP ≥ 8.1).
It allows you to map objects to arrays/JSON and automatically generate OpenAPI documentation based on the same attributes.
🚀 Unified solution for API data serialization and documentation generation.
✨ Features
- 🏷️ Property aliasing with
- 🔄 Automatic type casting (e.g.
DateTime ↔ string
) - 🔁 Deep object nesting support
- ❌ Skip/exclude fields with
- 🧩 Recursive DTO serialization
- 🧬 Auto-generate OpenAPI schema using object definitions
- ⚙️ Framework-agnostic — works with Laravel, Symfony, etc.
Benchmark
Quick Start
Installation
Install using Composer:
Basic Usage
Other Features
-
Immutability: Read-only properties cannot be modified after construction
-
Type-Safe Initialization
- Constructor Initialization
Auto Create OpenApi Doc
Creating Request
Creating Response
Creating Controller
Starting the Service
Docker Deployment
Navigate to the project root directory first:
Access http://127.0.0.1:8089/docs
to view the documentation.
All versions of php-serialize with dependencies
illuminate/support Version ^6.0||^7.0||^8.0||^9.0||^10.0||^11.0||^12.0
phpdocumentor/reflection-docblock Version ^5.5
phpdocumentor/reflection Version ^6.0
psr/simple-cache Version ^3.0