ifcastle/type-definitions
最新稳定版本:v0.5.20
Composer 安装命令:
composer require ifcastle/type-definitions
包简介
Library for defining data types at the business logic layer. Data hydration and serialization based on type definitions.
README 文档
README
A metadata library for describing the types of procedures, services, and objects.
Why is this needed?
Information about data types and method prototypes can be used for code generation,
forming DataTransferObjects, and remote calls.
This library provides an independent infrastructure for forming metadata
about data types that is not tied to a specific implementation.
Features
- Classes for describing data types
- Forming metadata through PHP Reflection and attributes.
- Serialization and deserialization of data into a
JSON-like structure (JSON-array). ValueContainerpattern: a container for storing values with a type descriptor.- A PHP code generator for serialization, validation, and deserialization for better performance.
Installation
composer require ifcastle/type-definitions
Example
<?php declare(strict_types=1); require_once __DIR__ . '/vendor/autoload.php'; // TODO: Add example
统计信息
- 总下载量: 238
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 5
- 依赖项目数: 6
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-07-16