com.github.ooxi:serialized-php-parser

Serialized PHP Parser project

GroupId

GroupId

com.github.ooxi
ArtifactId

ArtifactId

serialized-php-parser
Last Version

Last Version

0.5.0
Release Date

Release Date

Type

Type

jar
Description

Description

Serialized PHP Parser project
Project URL

Project URL

https://github.com/ooxi/serialized-php-parser
Source Code Management

Source Code Management

https://github.com/ooxi/serialized-php-parser

Download serialized-php-parser

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.ooxi/serialized-php-parser/ -->
<dependency>
    <groupId>com.github.ooxi</groupId>
    <artifactId>serialized-php-parser</artifactId>
    <version>0.5.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.ooxi/serialized-php-parser/
implementation 'com.github.ooxi:serialized-php-parser:0.5.0'
// https://jarcasting.com/artifacts/com.github.ooxi/serialized-php-parser/
implementation ("com.github.ooxi:serialized-php-parser:0.5.0")
'com.github.ooxi:serialized-php-parser:jar:0.5.0'
<dependency org="com.github.ooxi" name="serialized-php-parser" rev="0.5.0">
  <artifact name="serialized-php-parser" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.ooxi', module='serialized-php-parser', version='0.5.0')
)
libraryDependencies += "com.github.ooxi" % "serialized-php-parser" % "0.5.0"
[com.github.ooxi/serialized-php-parser "0.5.0"]

Dependencies

compile (1)

Group / Artifact Type Version
com.googlecode.json-simple : json-simple jar 1.1.1

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

serialized-php-parser

Simple MIT licensed Java library to access data serialized by PHP.

Usage

serialized-php-parser is published in the central Maven repository and can be included using the following dependency information:

<dependency>
	<groupId>com.github.ooxi</groupId>
	<artifactId>serialized-php-parser</artifactId>
	<version>0.5.0</version>
</dependency>

Deserializing data is as simple as

String data = "O:8:\"TypeName\":1:{s:3:\"foo\";s:3:\"bar\";}";
SerializedPhpParser phparser = new SerializedPhpParser(data);
PhpObject result = (PhpObject)phparser.parse();

System.out.println(result.attributes.get("foo"));

Origin

This is a fork from Google Code Serialized Php Parser, based on the work of Michele Catalano.

Versions

Version
0.5.0