jedi58/reserializer 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

jedi58/reserializer

Composer 安装命令:

composer require jedi58/reserializer

包简介

README 文档

README

Build Status StyleCI Code Climate Coverage Status

PHP class that will take a serialised object and parse it, ignoring the sizes specified. This is useful when serialized objects are corrupted and need fixing

Usage

Reserializer::parse('s:21:"https://www.google.com";');

The above example contains an invalid serialized object as the string is one character longer than it should be. The parse function will take this, ignore the suggested length and will return the string ready to be reserialised. Alternatively, the class can do the whole process itself:

Reserializer::reserialize('s:21:"https://www.google.com";')

The expected output for this is s:22:"https://www.google.com";. It is possible to use this for more complicated examples of type bool, int, string, array, and objects. In the case of objects they will however be converted into stdClass.

Testing

There are a number of unit tests which can be executed by running the following from your checkout

$  phpunit

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-04-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固