定制 ifcastle/type-definitions 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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).
  • ValueContainer pattern: 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
  • 点击次数: 9
  • 依赖项目数: 6
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-07-16