Skip to content

GO module to parse php serialised obj and help to convert to json.

Notifications You must be signed in to change notification settings

Wuvist/gophpserialize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gophpserialize

GO module to parse php serialised obj and help to convert to json.

Currently only support unserialze php array.

Example

import (
	"github.com/Wuvist/gophpserialize"
)

func main() {
	data := `a:3:{s:5:"apple";i:1;s:6:"orange";i:2;s:5:"grape";i:3;}`
	obj := gophpserialize.Unmarshal([]byte(data))
	...
}

Need more test case & review on API.

About

GO module to parse php serialised obj and help to convert to json.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages