2017 © Pedro Peláez
 

library yii2-serializers

The serializers extension for Yii2.

image

ipaya/yii2-serializers

The serializers extension for Yii2.

  • Friday, May 26, 2017
  • by zhangdi
  • Repository
  • 1 Watchers
  • 0 Stars
  • 223 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Yii 2 Serializers 扩展

序列化类, (*1)

安装

使用 composer 安装:, (*2)

使用命令, (*3)

php composer.phar require --prefer-dist ipaya/yii2-serializers

或在 composer.json 文件的 require 段增加如下代码, (*4)

"ipaya/yii2-serializers": "*"

使用, (*5)

<?php

$model = new User();
$serializer = new JsonSerializer();
// 将对象序列化为字符串
$json = $serializer->serialize($model);
// 将字符串反序列话为对象
$user = $serializer->unserializ($json);

The Versions

26/05 2017

dev-master

9999999-dev

The serializers extension for Yii2.

  Sources   Download

The Requires

 

The Development Requires

26/05 2017

0.1.0

0.1.0.0

The serializers extension for Yii2.

  Sources   Download

The Requires

 

The Development Requires