{"id":19594441,"url":"https://github.com/swoft-cloud/swoft-data-parser","last_synced_at":"2025-04-27T15:34:01.909Z","repository":{"id":57063233,"uuid":"194201812","full_name":"swoft-cloud/swoft-data-parser","owner":"swoft-cloud","description":"Data parser of swoft 1.0(Now 2.0, please use swoft/swoft-serialize)","archived":false,"fork":false,"pushed_at":"2019-11-11T15:20:18.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-20T17:03:20.726Z","etag":null,"topics":["php","swoft"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/swoft-cloud.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-28T03:44:25.000Z","updated_at":"2024-12-16T05:57:09.000Z","dependencies_parsed_at":"2022-08-24T14:01:13.363Z","dependency_job_id":null,"html_url":"https://github.com/swoft-cloud/swoft-data-parser","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/swoft-cloud%2Fswoft-data-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swoft-cloud%2Fswoft-data-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swoft-cloud%2Fswoft-data-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swoft-cloud%2Fswoft-data-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/swoft-cloud","download_url":"https://codeload.github.com/swoft-cloud/swoft-data-parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251162848,"owners_count":21545832,"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":["php","swoft"],"created_at":"2024-11-11T08:43:33.371Z","updated_at":"2025-04-27T15:33:56.862Z","avatar_url":"https://github.com/swoft-cloud.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Data parser\n\nUniversal data parser/ for PHP\n\nDriver:\n\n- json(by `json_encode`)\n- php(by `serialize`)\n- igbinary(by extension `igbinary`)\n- msgpack(by extension `msgpack`)\n\n## Install\n\n- composer command\n\n```bash\ncomposer require swoft/data-parser\n```\n\n## Usage\n\n```php\n$parser = new JsonParser();\n// $parser = new PhpParser();\n// $parser = new MsgPackParser();\n\n// encode\n$encoded = $parser-\u003eencode($data);\n\n// decode\n$decoded = $parser-\u003eencode($encoded);\n```\n\n## Unit testing\n\n```bash\nphpunit \n```\n\n## LICENSE\n\nThe Component is open-sourced software licensed under the [Apache license](LICENSE).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswoft-cloud%2Fswoft-data-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswoft-cloud%2Fswoft-data-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswoft-cloud%2Fswoft-data-parser/lists"}