PHP code example of seiler / directive
1. Go to this page and download the library: Download seiler/directive library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
seiler / directive example snippets
use Seiler\Directive;
$config = file_get_contents('/path/to/nginx/config/file.conf');
$directive = Directive::fromString($config);
$directive->server->serverName->value('example.org');
file_put_contents('/path/to/nginx/config/file.conf', $directive);