PHP code example of glue-agency / craft-varnishpurge

1. Go to this page and download the library: Download glue-agency/craft-varnishpurge 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/ */

    

glue-agency / craft-varnishpurge example snippets




return [
    'ip' => '127.0.0.1',
    'port' => '6082',
    'version' => '5.0.0',
    'secret' => '[YOUR-PRE-SHARED-SECRET-AS-SETUP-ON-VARNISH-SERVER]',
];