{"id":23359772,"url":"https://github.com/firehed/cbor-php","last_synced_at":"2025-04-10T10:32:04.741Z","repository":{"id":45092604,"uuid":"186552673","full_name":"Firehed/cbor-php","owner":"Firehed","description":"CBOR decoder for PHP","archived":false,"fork":false,"pushed_at":"2022-01-09T09:55:52.000Z","size":8,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T09:21:12.449Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Firehed.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-14T05:44:05.000Z","updated_at":"2022-01-09T09:17:28.000Z","dependencies_parsed_at":"2022-09-15T22:13:04.230Z","dependency_job_id":null,"html_url":"https://github.com/Firehed/cbor-php","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Firehed%2Fcbor-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Firehed%2Fcbor-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Firehed%2Fcbor-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Firehed%2Fcbor-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Firehed","download_url":"https://codeload.github.com/Firehed/cbor-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248199136,"owners_count":21063641,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-21T11:11:55.621Z","updated_at":"2025-04-10T10:32:04.713Z","avatar_url":"https://github.com/Firehed.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CBOR-PHP\n\nTools for working with the [CBOR](https://tools.ietf.org/html/rfc7049) data format in PHP\n\n## Installation\n\n`composer require firehed/cbor`\n\n## Usage\n\nNote: Only decoding is supporing at this time\n\n### Decoding\n\n```php\n$decoder = new Firehed\\CBOR\\Decoder();\n\n$binaryString = \"\\x18\\x64\"; // CBOR for int(100)\n$data = $decoder-\u003edecode($binaryString);\n\n// OR\n$byteArray = [24, 100];\n$data = $decoder-\u003edecodeArrayOfBytes($byteArray);\n```\n\nThere is currently very limited support for [tagged types](https://tools.ietf.org/html/rfc7049#section-2.4).\nWhen an unsupported tag is encountered, an `OutOfBoundsException` will be thrown.\n\n## Tagged type support\n- [ ] 0 DateTime as string\n- [ ] 1 DateTime as epoch\n- [X] 2 Positive Bignum (returns as string, requires `bcmath`)\n- [X] 3 Negative Bignum (same)\n- [ ] 4 Decimal fraction\n- [ ] 5 Bigfloat\n- [ ] 21 base64url string\n- [ ] 22 base64 string\n- [ ] 23 base16 string\n- [ ] 24 CBOR\n- [ ] 32 URI\n- [ ] 33 base64url\n- [ ] 34 base64\n- [ ] 35 regexp\n- [ ] 36 MIME message\n- [ ] 55799 Self-describing CBOR\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirehed%2Fcbor-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffirehed%2Fcbor-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirehed%2Fcbor-php/lists"}