{"id":17449376,"url":"https://github.com/jqr/php-serialize","last_synced_at":"2025-04-13T02:18:52.629Z","repository":{"id":595899,"uuid":"231035","full_name":"jqr/php-serialize","owner":"jqr","description":"Use PHP's serialization methods from Ruby.","archived":false,"fork":false,"pushed_at":"2024-03-04T15:56:28.000Z","size":81,"stargazers_count":129,"open_issues_count":3,"forks_count":54,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-04T04:11:11.884Z","etag":null,"topics":["php","ruby","serialization","session","sessionstorage"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/jqr.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2009-06-19T01:38:56.000Z","updated_at":"2025-03-04T15:46:17.000Z","dependencies_parsed_at":"2024-06-18T15:27:09.237Z","dependency_job_id":null,"html_url":"https://github.com/jqr/php-serialize","commit_stats":{"total_commits":42,"total_committers":9,"mean_commits":4.666666666666667,"dds":0.5476190476190477,"last_synced_commit":"68c0b6f9a20c07d7498d3bce62a37f1e240eddfe"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jqr%2Fphp-serialize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jqr%2Fphp-serialize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jqr%2Fphp-serialize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jqr%2Fphp-serialize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jqr","download_url":"https://codeload.github.com/jqr/php-serialize/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248654266,"owners_count":21140271,"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","ruby","serialization","session","sessionstorage"],"created_at":"2024-10-17T21:36:58.985Z","updated_at":"2025-04-13T02:18:52.604Z","avatar_url":"https://github.com/jqr.png","language":"Ruby","readme":"# Ruby PHP Serializer\n\nThis module provides two methods: `PHP.serialize` and `PHP.unserialize`,\nboth of which should be compatible with the similarly named functions in PHP.\n\n## Installing\n\nIn your `Gemfile`:\n```ruby\ngem \"php-serialize\"\n```\n\n## Usage\n\n```ruby\nPHP.serialize({'foo' =\u003e 'bar'})               #=\u003e \"a:1:{s:3:\\\"foo\\\";s:3:\\\"bar\\\";}\"\nPHP.unserialize('a:1:{s:3:\"foo\";s:3:\"bar\";}') #=\u003e {\"foo\"=\u003e\"bar\"}\n```\n\n`PHP.unserialize` can also read PHP sessions, which are collections of named\nserialized objects.  These can be reserialized using `PHP.serialize_session`,\nwhich has the same semantics as `PHP.serialize`, but which only supports Hash\nand associative Arrays for the root object.\n\nSee http://php.net/serialize and http://php.net/unserialize for\ndetails on the PHP side of all this.\n\n## Acknowledgements\n\n- TJ Vanderpoel, initial PHP serialized session support.\n- Philip Hallstrom, fix for self-generated Structs on unserialization.\n- Edward Speyer, fix for assoc serialization in nested structures.\n\nAuthor: Thomas Hurst \u003ctom@hur.st\u003e, http://hur.st/\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjqr%2Fphp-serialize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjqr%2Fphp-serialize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjqr%2Fphp-serialize/lists"}