承接 pew-pew/hydrator 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

pew-pew/hydrator

最新稳定版本:0.1.0

Composer 安装命令:

composer require pew-pew/hydrator

包简介

Object hydrator kernel library

README 文档

README

PHP 8.3+ Latest Stable Version Latest Unstable Version License MIT

Hydrator

A set of interfaces for mapping arbitrary values to their typed equivalents and their inverses.

Installation

PewPew Hydrator is available as Composer repository and can be installed using the following command in a root of your project:

$ composer require pew-pew/hydrator

More detailed installation instructions are here.

Usage

$hydrator = new class implements \PewPew\Hydrator\HydratorInterface {
    public function hydrate(string $type, mixed $data): mixed
    {
         return ...;
    }
};

$hydrator = new \PewPew\Hydrator\TraceableHydrator(
    hydrator: $hydrator,
    stopwatch: new \Symfony\Component\Stopwatch\Stopwatch(),
);

$hydrator = new \PewPew\Hydrator\LoggableHydrator(
    hydrator: $hydrator,
    logger: new ExampleLogger(),
);

统计信息

  • 总下载量: 3.29k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-03-17