final class Neon

Simple parser & generator for Nette Object Notation.

Constants

deprecated BLOCK

CHAIN

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 28
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 40
static mixed decode(string $input)

Converts given NEON to PHP value.

Parameters

string $input

Return Value

mixed

at line 50
static mixed decodeFile(string $file)

Converts given NEON file to PHP value.

Parameters

string $file

Return Value

mixed