toolkit / data-parser
some data parser tool library of the php
Installs: 52
Dependents: 2
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/toolkit/data-parser
Requires
- php: >7.0.0
Suggests
- inhere/console: a lightweight php console application library.
- inhere/php-validate: Very lightweight data validate tool
- inhere/simple-print-tool: Very lightweight data printing tools
This package is auto-updated.
Last update: 2025-09-25 09:46:41 UTC
README
simple data parser for php
driver
- json(by
json_encode
) - php(by
serialize
) - swoole(by extension
swoole_serialize
) - msgpack(by extension
msgpack
)
Install
- composer command
composer require toolkit/data-parser
Usage
$parser = new SwooleParser(); // $parser = new JsonParser(); // $parser = new PhpParser(); // $parser = new MsgPackParser(); // encode $encoded = $parser->encode($data); // decode $decoded = $parser->encode($encoded);
Unit testing
phpunit
License
MIT