php_session_decoder alternatives and similar packages
Based on the "go-capnproto" category.
Alternatively, view php_session_decoder alternatives based on common mentions on social networks and blogs.
-
mapstructure
DISCONTINUED. Go library for decoding generic map values into native Go structures and vice versa. -
bambam
auto-generate capnproto schema from your golang source files. Depends on go-capnproto-1.0 at https://github.com/glycerine/go-capnproto -
go-serializer
:loop: Serialize any custom type or convert any content to []byte or string, for Go Programming Language
CodeRabbit: AI Code Reviews for Developers
Do you think we are missing an alternative of php_session_decoder or a related project?
README
php_session_decoder
PHP session encoder/decoder written in Go
Installation
Install:
The recommended wayto install is using gonuts.io:nut get yvasiyarov/php_session_decoder for more information, please, go to the http://www.gonuts.io/yvasiyarov/php_session_decoder
Using default go get tool:
go get github.com/yvasiyarov/php_session_decoder
Getting started
Example: load php session data from redis:
if sessionId, err := req.Cookie("frontend"); err == nil {
if sessionData, err := redis.Get("PHPREDIS_SESSION:" + sessionId.Value); err == nil {
decoder := php_session_decoder.NewPhpDecoder(sessionData.String())
if sessionDataDecoded, err := decoder.Decode(); err == nil {
//Do something with session data
}
} else {
//Can not load session - it can be expired
}
}
Example: Encode php session data:
data := make(PhpSession)
data["make some"] = " changes"
encoder := NewPhpEncoder(data)
if result, err := encoder.Encode(); err == nil {
//Write data to redis/memcached/file/etc
}
Copyright
2013-2014 Yuriy Vasiyarov
2014 Yuriy Vasiyarov, Maksim Naumov.
All rights reserved.