PHP code example of ohseesoftware / caddy-config-php
1. Go to this page and download the library: Download ohseesoftware/caddy-config-php 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/ */
ohseesoftware / caddy-config-php example snippets
$client = new OhSeeSoftware\CaddyConfig\Client('localhost:2019');
$client = new OhSeeSoftware\CaddyConfig\Client('localhost:2019');
$client->request()
->http()
->server('srv0')
->route(0)
->match(0)
->addHost('example.com');