Does anyone know how I can read yaml file with php? I want something like a reader.
My friends and I are creating Minecraft Server, and we want to connect the server to the site. To do this, we need a reader to read the YAML file, which is located in our server files. This file calls users.yml and inside it the following code:
users:
80679a11-1d47-3a0e-8346-4790ee4304fc: <<<< Player Code.
group:
- Admin <<<< Player Group.
options:
name: JamesMarch <<<< Player Nick Name.
56874a35-8f52-5f2c-7843-7788je9670tb: <<<< Player Code.
group:
- Admin <<<< Player Group.
options:
name: Angelow98 <<<< Player Nick Name.
55026444-cb34-3a27-a270-d7d07fccca0a: <<<< Player Code.
group:
- Helper <<<< Player Group.
options:
name: iDatSnoow_ <<<< Player Nick Name.
When a new player connects to the server for playback, this file automatically creates a new paragraph like this (this is a new player):
84569a84-5d77-3a5e-8547-4720ee4304fc: <<<< Player Code.
group:
- NewPlayer <<<< Player Group (NewPlayer is the default group)
options:
name: mumiant_ <<<< Player Nick Name.
An administrator becomes a player, for example, one of the administrators who enters this command: / manuadd (player name) Admin, and he will automatically edit in users.yml
On our website, on the home page, we would like to show in the box the most important groups (helpers and administrators), similar to this simple HTML code:
<h1>Staff</h1>
<h2>Administrators</h2>
<p>Angelow98</p>
<p>JamesMarch</p>
<h2>Helper</h2>
<p>iDatSnoow_</p>
, , . - , PHP Reader YAML, -, , HTML- .