Skip to content

swoft-cloud/swoft-data-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Data parser

Universal data parser/ for PHP

Driver:

  • json(by json_encode)
  • php(by serialize)
  • igbinary(by extension igbinary)
  • msgpack(by extension msgpack)

Install

  • composer command
composer require swoft/data-parser

Usage

$parser = new JsonParser();
// $parser = new PhpParser();
// $parser = new MsgPackParser();

// encode
$encoded = $parser->encode($data);

// decode
$decoded = $parser->encode($encoded);

Unit testing

phpunit 

LICENSE

The Component is open-sourced software licensed under the Apache license.

About

Data parser of swoft 1.0(Now 2.0, please use swoft/swoft-serialize)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages