Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/peteroupc/cbor-php
A PHP implementation of Concise Binary Object Representation (RFC 7049)
https://github.com/peteroupc/cbor-php
Last synced: 18 days ago
JSON representation
A PHP implementation of Concise Binary Object Representation (RFC 7049)
- Host: GitHub
- URL: https://github.com/peteroupc/cbor-php
- Owner: peteroupc
- License: other
- Created: 2014-07-22T15:58:00.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2019-07-04T18:30:46.000Z (over 5 years ago)
- Last Synced: 2023-03-30T20:56:49.746Z (over 1 year ago)
- Language: PHP
- Size: 7.81 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
CBOR-PHP
====A PHP implementation of Concise Binary Object Representation, a general-purpose binary data format defined in RFC 7049. According to that RFC, CBOR's data model "is an extended version of the JSON data model", supporting many more types of data than JSON. "CBOR was inspired by MessagePack", but "is not intended as a version of or replacement for MessagePack."
This implementation was written by Peter O. and is released to the Public Domain under the [CC0 Declaration](http://creativecommons.org/publicdomain/zero/1.0/).
This implementation is currently a work in progress. Some features of CBOR are not yet supported.
How to use
--------To read a CBOR object from a file handle, call `CBOR::read`, as in the following example.
$data = CBOR::read($filehandle);