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

zalora/gophpserialize

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 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

Packages

No packages published

Languages

  • Go 100.0%