Reading Yaml with PHP
<p>Someone knows how I could read a yaml file with php? What I want is something like a reader.</p>

<p>Me and my friends are creating a Minecraft Server and we want connect the server to site. For that we need a reader to read the YAML file that is in our server files. This file calls users.yml and inside it is the next code:</p>

<pre><code>users:
      80679a11-1d47-3a0e-8346-4790ee4304fc:     &lt;&lt;&lt;&lt; Player Code.
        group:
        - Admin                                 &lt;&lt;&lt;&lt; Player Group.
        options:
          name: JamesMarch                      &lt;&lt;&lt;&lt; Player Nick Name.
      56874a35-8f52-5f2c-7843-7788je9670tb:     &lt;&lt;&lt;&lt; Player Code.
        group:
        - Admin                                 &lt;&lt;&lt;&lt; Player Group.
        options:
          name: Angelow98                       &lt;&lt;&lt;&lt; Player Nick Name.
      55026444-cb34-3a27-a270-d7d07fccca0a:     &lt;&lt;&lt;&lt; Player Code.
        group:
        - Helper                                &lt;&lt;&lt;&lt; Player Group.
        options:
          name: iDatSnoow_                      &lt;&lt;&lt;&lt; Player Nick Name.
</code></pre>

<p>When a new player connects to the server to play, this file automatically creates a new paragraph like this (This is a new player):</p>

<pre><code>  84569a84-5d77-3a5e-8547-4720ee4304fc:   &lt;&lt;&lt;&lt; Player Code.
    group:
    - NewPlayer                           &lt;&lt;&lt;&lt; Player Group (NewPlayer is the default group)
    options:
      name: mumiant_                      &lt;&lt;&lt;&lt; Player Nick Name.
</code></pre>

<p>To the player becomes a Administrator, for example, one of the administrators, has enter this command: /manuadd (player name) Admin and it will automatically edit in users.yml</p>

<p>In our website, on home page, we would like to show, in a box, the most important groups (helpers and administrators) like this simple HTML code:</p>

<pre><code>&lt;h1&gt;Staff&lt;/h1&gt;
    &lt;h2&gt;Administrators&lt;/h2&gt;
        &lt;p&gt;Angelow98&lt;/p&gt;
        &lt;p&gt;JamesMarch&lt;/p&gt;
    &lt;h2&gt;Helper&lt;/h2&gt;
        &lt;p&gt;iDatSnoow_&lt;/p&gt;
</code></pre>

<p>In conclusion, what we want is that it work automatically. This is, when someone becomes Administrator, the PHP Reader will read the YAML code and it will print on website, like the HTML code above.</p>