{"id":15800811,"url":"https://github.com/theoomoregbee/php-serializable","last_synced_at":"2025-10-09T04:37:54.924Z","repository":{"id":57068356,"uuid":"71837976","full_name":"theoomoregbee/php-serializable","owner":"theoomoregbee","description":"this helps to serialize php object","archived":false,"fork":false,"pushed_at":"2017-04-08T09:37:55.000Z","size":639,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-08-28T10:43:46.155Z","etag":null,"topics":["class","iterator","oop","php","php-serializable","recursive","serialization"],"latest_commit_sha":null,"homepage":"http://www.phpclasses.org/package/10006-PHP-Automatic-serialization-of-objects-with-getters.html","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/theoomoregbee.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":"2016-10-24T22:38:31.000Z","updated_at":"2023-01-21T16:03:03.000Z","dependencies_parsed_at":"2022-08-24T14:54:10.936Z","dependency_job_id":null,"html_url":"https://github.com/theoomoregbee/php-serializable","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/theoomoregbee/php-serializable","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theoomoregbee%2Fphp-serializable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theoomoregbee%2Fphp-serializable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theoomoregbee%2Fphp-serializable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theoomoregbee%2Fphp-serializable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theoomoregbee","download_url":"https://codeload.github.com/theoomoregbee/php-serializable/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theoomoregbee%2Fphp-serializable/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000705,"owners_count":26082921,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["class","iterator","oop","php","php-serializable","recursive","serialization"],"created_at":"2024-10-05T01:06:57.917Z","updated_at":"2025-10-09T04:37:54.909Z","avatar_url":"https://github.com/theoomoregbee.png","language":"PHP","readme":"# php-serializable\nthis helps to serialize php object\n## how to\nto use it call the static method called serilaizable which will take in the obect as parameter. see example below\n\n \n    \n    $user = new User();\n    $user-\u003esetFirstname(\"Theophilus\");\n    $user-\u003esetLastname(\"Omoregbee\");\n\n    $user-\u003esetStates(array(new State(\"Edo state\", \"ED\"), new State(\"Lagos State\", \"LG\")));\n    $user-\u003esetCountry(new Country(\"Nigeria\",\"NG\"));\n\n    $user-\u003esetRoles(array(\"ADMIN\",\"DB MANAGER\"));\n\n    $user-\u003esetEmail(\"theo4u@ymail.com\");\n    $user-\u003esetPassword(\"1111\");\n\n    //lets serialize our object now\n    echo json_encode(SerializeMe::serialize($user));\n\n\nwhich will lead to this output \n`{\"firstname\":\"Theophilus\",\"lastname\":\"Omoregbee\",\"states\":[{\"name\":\"Edo state\",\"code\":\"ED\"},{\"name\":\"Lagos State\",\"code\":\"LG\"}],\"country\":{\"name\":\"Nigeria\",\"code\":\"NG\"},\"dateCreated\":1477351778,\"roles\":[\"ADMIN\",\"DB MANAGER\"],\"email\":\"theo4u@ymail.com\",\"password\":\"b59c67bf196a4758191e42f76670ceba\"}`\n\n![Response Json](https://github.com/theo4u/php-serializable/raw/master/serializable.png)\n\n\n## Contributions \nAllow contributions to make it faster and re-usable\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheoomoregbee%2Fphp-serializable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheoomoregbee%2Fphp-serializable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheoomoregbee%2Fphp-serializable/lists"}