PHP code example of ariaieboy / caprover-laravel

1. Go to this page and download the library: Download ariaieboy/caprover-laravel 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/ */

    

ariaieboy / caprover-laravel example snippets


return [
    // you caprover main domain that poin to the admin area
    'server'=>env('CAPROVER_SERVER'),
    // the password of your caprover admin panel
    'password'=>env('CAPROVER_PASSWORD'),
    // guzzle timeout in seconds
    'timeout'=>env('CAPROVER_TIMEOUT',60)
];

$caproverLaravel = new Ariaieboy\CaproverLaravel();

// or you can use the CaproverLaravel facade

\Ariaieboy\CaproverLaravel\Facades\CaproverLaravel::method($args);
bash
php artisan vendor:publish --tag="caprover-laravel-config"