<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/refs.basic.other.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'de',
  ),
  'this' => 
  array (
    0 => 'book.yaconf.php',
    1 => 'Yaconf',
    2 => 'Yaconf',
  ),
  'up' => 
  array (
    0 => 'refs.basic.other.php',
    1 => 'Sonstige Grunderweiterungen',
  ),
  'prev' => 
  array (
    0 => 'class.yaf-exception-loadfailed-view.php',
    1 => 'Yaf_Exception_LoadFailed_View',
  ),
  'next' => 
  array (
    0 => 'yaconf.setup.php',
    1 => 'Installation/Konfiguration',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/yaconf/book.xml',
  ),
  'history' => 
  array (
  ),
  'extra_header_links' => 
  array (
    'rel' => 'alternate',
    'href' => '/manual/en/feeds/book.yaconf.atom',
    'type' => 'application/atom+xml',
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="book.yaconf" class="book">
 
 <h1 class="title">Yaconf</h1>
 

 <div id="intro.yaconf" class="preface">
  <h1 class="title">Einführung</h1>
  <p class="para">
   <code class="literal">Yet Another Configurations Container</code>
   (<abbr>Yaconf</abbr>) is a configurations container,
   it parses <code class="literal">INI</code> files, and store the result
   in PHP when PHP is started, the result lives with the
   whole PHP lifecycle.
  </p>
  <p class="para">
   Yaconf stores all configurations as
   interned string or immutable array, which means they are
   not refcounted-able, thus when you retrieving configurations
   from <abbr>Yaconf</abbr>, it could be considered as zero-copy, very fast.
  </p>
  <p class="para">
   Yaconf supports sections and sections
   inheritance in <code class="literal">INI</code> files. If PHP is built as non-ZTS build,
   Yaconf also supports automatically reloading after <code class="literal">INI</code> files
   are changed.
  </p>
  <p class="para">
   Yaconf requires PHP 7.0 or greater.
  </p>
  <div class="example" id="example-1">
   <p><strong>Beispiel #1 INI example</strong></p>
   <div class="example-contents">
<div class="inicode"><pre class="inicode">;Simple key val
key=val

;Hash
hash.a=val

;Array
arr.0=val
;or
arr[]=val

;PHP constant
version=PHP_VERSION

;Environment variable
env=${PATH}</pre>
</div>
   </div>

  </div>
  <div class="example" id="example-2">
   <p><strong>Beispiel #2 INI sections example</strong></p>
   <div class="example-contents">
<div class="inicode"><pre class="inicode">[SectionA]
key=val
hash.a=val

;SectionB inherits SectionA
[SectionB:SectionA]
key=new_val                  ;override configuration key in SectionA</pre>
</div>
   </div>

  </div>
 </div>

 






 







<ul class="chunklist chunklist_book"><li><a href="yaconf.setup.php">Installation/Konfiguration</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="yaconf.requirements.php">Anforderungen</a></li><li><a href="yaconf.installation.php">Installation</a></li><li><a href="yaconf.configuration.php">Laufzeit-Konfiguration</a></li><li><a href="yaconf.resources.php">Ressource-Typen</a></li></ul></li><li><a href="class.yaconf.php">Yaconf</a> — The Yaconf class<ul class="chunklist chunklist_book chunklist_children"><li><a href="yaconf.get.php">Yaconf::get</a> — Retrieve a item</li><li><a href="yaconf.has.php">Yaconf::has</a> — Determine if a item exists</li></ul></li></ul></div><?php manual_footer($setup); ?>