final class Neon

Simple parser & generator for Nette Object Notation.

Constants

Chain

deprecated CHAIN

deprecated BLOCK

Methods

static string
encode(mixed $value, bool $blockMode = false, string $indentation = "\t")

Returns value converted to NEON.

static mixed
decode(string $input)

Converts given NEON to PHP value.

static mixed
decodeFile(string $file)

Converts given NEON file to PHP value.

Details

at line 31
static string encode(mixed $value, bool $blockMode = false, string $indentation = "\t")

Returns value converted to NEON.

Parameters

mixed $value
bool $blockMode
string $indentation

Return Value

string

at line 43
static mixed decode(string $input)

Converts given NEON to PHP value.

Parameters

string $input

Return Value

mixed

at line 53
static mixed decodeFile(string $file)

Converts given NEON file to PHP value.

Parameters

string $file

Return Value

mixed