PHP code example of nx6 / varnish-force-flush

1. Go to this page and download the library: Download nx6/varnish-force-flush 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/ */

    

nx6 / varnish-force-flush example snippets


.
├── Block/Adminhtml/
│   ├── Cache/Additional.php
│   └── System/Config/PurgeButton.php
├── Controller/Adminhtml/
│   ├── Cache/Purge.php
│   └── Varnish/Purge.php
├── Model/
│   ├── VarnishPurger.php
│   └── VarnishPurgeResult.php
├── etc/
│   ├── acl.xml
│   ├── adminhtml/{routes.xml,system.xml}
│   └── module.xml
├── view/adminhtml/
│   ├── layout/adminhtml_cache_index.xml
│   └── templates/system/{cache/additional.phtml,config/purge_button.phtml}
├── registration.php
├── composer.json
├── LICENSE
└── README.md