{"id":13413813,"url":"https://github.com/yvasiyarov/php_session_decoder","last_synced_at":"2025-03-14T20:30:37.973Z","repository":{"id":6069547,"uuid":"7295448","full_name":"yvasiyarov/php_session_decoder","owner":"yvasiyarov","description":"PHP session encoder/decoder written in Go","archived":false,"fork":false,"pushed_at":"2018-11-02T07:23:13.000Z","size":92,"stargazers_count":161,"open_issues_count":3,"forks_count":45,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-07-31T20:52:53.500Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yvasiyarov.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":"2012-12-23T14:04:25.000Z","updated_at":"2024-07-31T16:01:11.000Z","dependencies_parsed_at":"2022-09-02T04:21:22.369Z","dependency_job_id":null,"html_url":"https://github.com/yvasiyarov/php_session_decoder","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yvasiyarov%2Fphp_session_decoder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yvasiyarov%2Fphp_session_decoder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yvasiyarov%2Fphp_session_decoder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yvasiyarov%2Fphp_session_decoder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yvasiyarov","download_url":"https://codeload.github.com/yvasiyarov/php_session_decoder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221504036,"owners_count":16833940,"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-07-30T20:01:50.044Z","updated_at":"2024-10-26T06:30:17.217Z","avatar_url":"https://github.com/yvasiyarov.png","language":"Go","readme":"php_session_decoder\n===================\n\nPHP session encoder/decoder written in Go  \n[![Build Status](https://secure.travis-ci.org/yvasiyarov/php_session_decoder.png?branch=master)](http://travis-ci.org/yvasiyarov/php_session_decoder)\n\nInstallation\n------------\n\nInstall:\n\n- ~~The recommended way~~ to install is using gonuts.io:\n\n\n    nut get yvasiyarov/php_session_decoder\n    for more information, please, go to the http://www.gonuts.io/yvasiyarov/php_session_decoder\n\n- Using default go get tool:\n\n\n    go get github.com/yvasiyarov/php_session_decoder\n\nGetting started\n---------------\n\nExample: load php session data from redis:\n\n    if sessionId, err := req.Cookie(\"frontend\"); err == nil {\n        if sessionData, err := redis.Get(\"PHPREDIS_SESSION:\" + sessionId.Value); err == nil {\n            decoder := php_session_decoder.NewPhpDecoder(sessionData.String())\n            if sessionDataDecoded, err := decoder.Decode(); err == nil {\n                //Do something with session data  \n            }\n        } else {\n            //Can not load session - it can be expired\n        }\n    }\n\nExample: Encode php session data:\n\n    data := make(PhpSession)\n    data[\"make some\"] = \" changes\"\n    encoder := NewPhpEncoder(data)\n    if result, err := encoder.Encode(); err == nil {\n        //Write data to redis/memcached/file/etc\n    }\n\nCopyright\n----------------------------\n2013-2014 Yuriy Vasiyarov   \n2014 Yuriy Vasiyarov, Maksim Naumov. \n\nAll rights reserved.\n","funding_links":[],"categories":["序列化","Serialization","\u003cspan id=\"序列化-serialization\"\u003e序列化 Serialization\u003c/span\u003e","安全领域相关库","Relational Databases"],"sub_categories":["HTTP客户端","HTTP Clients","Advanced Console UIs","\u003cspan id=\"高级控制台用户界面-advanced-console-uis\"\u003e高级控制台用户界面 Advanced Console UIs\u003c/span\u003e","查询语","高級控制台界面","交流","高级控制台界面"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyvasiyarov%2Fphp_session_decoder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyvasiyarov%2Fphp_session_decoder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyvasiyarov%2Fphp_session_decoder/lists"}