Skip to content
eno-langPublic

About

PHP library for parsing, loading and inspecting eno documents

Topics

Resources

Stars

6 stars

Watchers

1 watching

Forks

Latest commit

 

History

118 Commits

Folders and files

Repository files navigation

enophp

PHP library for parsing, loading and inspecting eno documents

Installation

composer require eno-lang/enophp

Getting started

Create an eno document, for instance intro.eno:

Greeting: Hello World!

A minimal example to read this file with enophp:

use Eno\Parser;

$input = file_get_contents('intro.eno');

$document = Parser::parse($input);

echo( $document->field('Greeting') );  // prints 'Hello World!'

Complete documentation and API reference

See archived.eno-lang.org/php/

Running the tests

Install kahlan as development dependency:

composer install

Run the tests:

./vendor/bin/kahlan

Note that the test suite has a high peak memory load at some point, which might, depending on your system configuration, exceed your PHP maximum memory threshold. If you run into this you can for instance increase the limit in your php.ini and specify e.g. memory_limit = 512M.

About

PHP library for parsing, loading and inspecting eno documents

Topics

Resources

Stars

6 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages