定制 mhujer/jms-serializer-uuid-bundle 二次开发

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

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

mhujer/jms-serializer-uuid-bundle

最新稳定版本:4.2.0

Composer 安装命令:

composer require mhujer/jms-serializer-uuid-bundle

包简介

Symfony integration for Uuid serializer and deserializer for JMS Serializer library

README 文档

README

Latest Stable Version Total Downloads License Coverage Status

This Bundle integrates mhujer/jms-serializer-uuid into Symfony.

Note

Instead of using this bundle, you can register the handler manually in the config/services.yaml file:

services:
    Mhujer\JmsSerializer\Uuid\UuidSerializerHandler:
        tags:
            - { name: jms_serializer.subscribing_handler }


Usage
----
1. Install the latest version with `composer require mhujer/jms-serializer-uuid-bundle`
2. Register the Bundle in the `AppKernel.php`:

```php
<?php

class AppKernel extends \Symfony\Component\HttpKernel\Kernel
{

	...

	public function registerBundles()
	{
		$bundles = [
			...
			new Mhujer\JmsSerializer\Uuid\SymfonyBundle\MhujerJmsSerializerUuidBundle()
		];

	}

Then you can use the uuid type for serialization or deserialization:

<?php

use JMS\Serializer\Annotation as JMS;

class User
{

	/**
	 * @JMS\Type("uuid")
	 * @var \Ramsey\Uuid\UuidInterface
	 */
	public $id;

}

Requirements

Works with PHP 7.2 or higher.

Submitting bugs and feature requests

Bugs and feature request are tracked on GitHub

Author

Martin Hujer

Thanks Vašek Purchart for ideas how to test Symfony DI extension!

Changelog

4.0.0 (2018-11-27)

  • #6 dropped support for PHP 7.1 as it is no longer supported
  • #7 jms/serializer 2.0 support (thanks @simPod !)

3.0.0 (2018-01-07)

  • #3 Added Symfony 4.0 support, dropped support for Symfony 2. Requires PHP 7.1.

2.0.0 (2017-08-09)

  • #1 Support for JMS Serializer Bundle 2.0 (thanks @VasekPurchart !)

1.0.0 (2015-05-XX)

  • initial release

统计信息

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

GitHub 信息

  • Stars: 12
  • Watchers: 3
  • Forks: 6
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-05-16