PHP code example of samojled / php-caddy

1. Go to this page and download the library: Download samojled/php-caddy 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/ */

    

samojled / php-caddy example snippets


composer global 

cd {your php project directory}
caddy start

cd {another php project}
caddy link

# Mailhog
caddy service mailhog start
caddy service mailhog stop
caddy service mailhog restart

# Http (Caddy)
caddy service http start
caddy service http stop
caddy service http restart

# PHP
caddy service php start
caddy service php stop
caddy service php restart