178inaba/toml-helper

helper for loading toml.

Maintainers

👁 178inaba

Package info

github.com/178inaba/toml-helper

pkg:composer/178inaba/toml-helper

Fund package maintenance!

178inaba

Statistics

Installs: 83

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v2.0.0 2016-08-02 02:43 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 3f943436ff3bc9136df8d585f64774412d7dcedc

  • 178inaba <178inaba.woop@users.noreply.github.com>

confighelpertoml

This package is not auto-updated.

Last update: 2026-06-17 06:42:13 UTC


README

👁 Build Status
👁 Total Downloads
👁 Latest Stable Version
👁 Latest Unstable Version
👁 License

helper for loading toml.

install

$ composer require 178inaba/toml-helper

env

TOML_DIR

default toml directory is ../tomls.
change toml directory to set TOML_DIR.

usage

directory structure is

app
|-- public
| +-- index.php
|-- foo
| +-- bar
| +-- example.toml
...

example.toml is

[author]
PHP = "Rasmus Lerdorf"

index.php is

<?php

require __DIR__.'/../vendor/autoload.php';
putenv('TOML_DIR='.__DIR__.'/../foo/bar');

$phpAuthor = toml('example.author.PHP');
echo $phpAuthor."\n";

run

$ php index.php
Rasmus Lerdorf

License

MIT