{"id":17093747,"url":"https://github.com/leeqvip/gophp","last_synced_at":"2026-02-23T01:03:02.647Z","repository":{"id":282402620,"uuid":"944309268","full_name":"leeqvip/gophp","owner":"leeqvip","description":"Golang implementation for PHP's functions","archived":false,"fork":false,"pushed_at":"2024-11-27T11:07:23.000Z","size":18,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-14T13:09:43.131Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leeqvip.png","metadata":{},"created_at":"2025-03-07T06:01:33.000Z","updated_at":"2025-03-07T06:06:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"f4464e61-b399-4b8f-9643-357feaf7014f","html_url":"https://github.com/leeqvip/gophp","commit_stats":null,"previous_names":["leeqvip/gophp"],"tags_count":null,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leeqvip%2Fgophp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leeqvip%2Fgophp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leeqvip%2Fgophp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leeqvip%2Fgophp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leeqvip","download_url":"https://codeload.github.com/leeqvip/gophp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244952799,"owners_count":20537474,"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","serialize","serializeforgo","unserialize"],"created_at":"2024-10-14T14:08:13.519Z","updated_at":"2025-10-23T19:45:11.543Z","avatar_url":"https://github.com/leeqvip.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"gophp\n====\n\n[![Build Status](https://travis-ci.com/leeqvip/gophp.svg?branch=master)](https://travis-ci.com/leeqvip/gophp)\n\n\nGolang implementation for PHP's functions\n\n\n## Install / Update\n\n```\ngo get -u github.com/leeqvip/gophp\n```\n\n## Example\n\n```golang\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/leeqvip/gophp\"\n)\n\nfunc main() {\n\n\tstr := `a:1:{s:3:\"php\";s:24:\"世界上最好的语言\";}`\n\n\t// unserialize() in php\n\tout, _ := gophp.Unserialize([]byte(str))\n\n\tfmt.Println(out) //map[php:世界上最好的语言]\n\n\t// serialize() in php\n\tjsonbyte, _ := gophp.Serialize(out)\n\n\tfmt.Println(string(jsonbyte)) // a:1:{s:3:\"php\";s:24:\"世界上最好的语言\";}\n\n}\n```\n\n## License\n\nThis project is licensed under the [MIT license](LICENSE).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleeqvip%2Fgophp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleeqvip%2Fgophp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleeqvip%2Fgophp/lists"}