2017 © Pedro Peláez
 

library toml-php

Parsing TOML with PHP.

image

zidizei/toml-php

Parsing TOML with PHP.

  • Tuesday, November 18, 2014
  • by zidizei
  • Repository
  • 1 Watchers
  • 2 Stars
  • 27 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 4 % Grown

The README.md

TOML for PHP

Parsing TOML with PHP. Supports TOML Specs 0.2.0., (*1)

Build Status, (*2)

Installation

Use Composer and add this to your composer.json:, (*3)

"require": {
    "zidizei/toml-php", "~0.3.0"
}

If you want you can just download/clone the source code from GitHub as well. Just include the src/Toml/Toml.php file in your application and you should be good to go., (*4)

Usage

The following will parse a TOML formatted String:, (*5)

$array = \Toml\parse('title = "TOML Example"');

To parse a TOML file, you can just use the same helper function:, (*6)

$array = \Toml\parse('tests/example.toml');

Tests

Tests are done using PHPUnit and Composer's autoloader (vendor/autoload.php is bootstrapped by phpunit to include the TOML parser class to be tested):, (*7)

composer install
phpunit

The Versions

18/11 2014

dev-master

9999999-dev http://github.com/zidizei/toml-php

Parsing TOML with PHP.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Patrick Lam

toml

27/04 2014

0.3.0

0.3.0.0 http://github.com/zidizei/toml-php

Parsing TOML with PHP.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Patrick Lam

toml

02/04 2014

0.2.0

0.2.0.0 http://github.com/zidizei/toml-php

Parsing TOML with PHP.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Patrick Lam

toml