All Projects → leeqvip → gophp

leeqvip / gophp

Licence: MIT license
Golang implementation for PHP's functions

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to gophp

Kakajson
Fast conversion between JSON and model in Swift.
Stars: ✭ 867 (+1634%)
Mutual labels:  serialize
Lora Serialization
LoraWAN serialization/deserialization library for The Things Network
Stars: ✭ 120 (+140%)
Mutual labels:  serialize
Api Generator
PHP-code generator for Laravel framework, with complete support of JSON-API data format
Stars: ✭ 244 (+388%)
Mutual labels:  serialize
Django Preserialize
Convert your model instances and querysets into dicts and list with style.
Stars: ✭ 42 (-16%)
Mutual labels:  serialize
Geotic
Entity Component System library for javascript
Stars: ✭ 97 (+94%)
Mutual labels:  serialize
Hprose Php
Hprose is a cross-language RPC. This project is Hprose 3.0 for PHP
Stars: ✭ 1,952 (+3804%)
Mutual labels:  serialize
Ason
[DEPRECATED]: Prefer Moshi, Jackson, Gson, or LoganSquare
Stars: ✭ 777 (+1454%)
Mutual labels:  serialize
django-serializable-model
Django classes to make your models, managers, and querysets serializable, with built-in support for related objects in ~150 LoC
Stars: ✭ 15 (-70%)
Mutual labels:  serialize
Javascript Stringify
Stringify is to `eval` as `JSON.stringify` is to `JSON.parse`
Stars: ✭ 98 (+96%)
Mutual labels:  serialize
Hprose Html5
Hprose is a cross-language RPC. This project is Hprose 2.0 Client for HTML5
Stars: ✭ 237 (+374%)
Mutual labels:  serialize
Serialized Editor
A Vue.js component for editing data that has been serialized in PHP
Stars: ✭ 54 (+8%)
Mutual labels:  serialize
X
新生命X组件,数据中间件XCode、日志、网络、RPC、序列化、缓存、Windows服务
Stars: ✭ 1,322 (+2544%)
Mutual labels:  serialize
Serialize Javascript
Serialize JavaScript to a superset of JSON that includes regular expressions and functions.
Stars: ✭ 2,433 (+4766%)
Mutual labels:  serialize
Jc
CLI tool and python library that converts the output of popular command-line tools and file-types to JSON or Dictionaries. This allows piping of output to tools like jq and simplifying automation scripts.
Stars: ✭ 967 (+1834%)
Mutual labels:  serialize
bytekit
Java 字节操作的工具库(不是字节码的工具库)
Stars: ✭ 40 (-20%)
Mutual labels:  serialize
Frosty
serialize native Nim types to strings, streams, or sockets ⛄
Stars: ✭ 25 (-50%)
Mutual labels:  serialize
Hprose Js
Hprose is a cross-language RPC. This project is Hprose 2.0 RPC for JavaScript
Stars: ✭ 133 (+166%)
Mutual labels:  serialize
ikeapack
Compact data serializer/packer written in Go, intended to produce a cross-language usable format.
Stars: ✭ 18 (-64%)
Mutual labels:  serialize
nlcst-to-string
utility to transform an nlcst tree to a string
Stars: ✭ 16 (-68%)
Mutual labels:  serialize
Dataset Serialize
JSON to DataSet and DataSet to JSON converter for Delphi and Lazarus (FPC)
Stars: ✭ 213 (+326%)
Mutual labels:  serialize

gophp

Build Status

Golang implementation for PHP's functions

Install / Update

go get -u github.com/techoner/gophp

Example

package main

import (
	"fmt"

	"github.com/techoner/gophp"
)

func main() {

	str := `a:1:{s:3:"php";s:24:"世界上最好的语言";}`

	// unserialize() in php
	out, _ := gophp.Unserialize([]byte(str))

	fmt.Println(out) //map[php:世界上最好的语言]

	// serialize() in php
	jsonbyte, _ := gophp.Serialize(out)

	fmt.Println(string(jsonbyte)) // a:1:{s:3:"php";s:24:"世界上最好的语言";}

}

License

This project is licensed under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].