2017 © Pedro PelĂĄez
 

library varnishadmin

Varnish admin socket for executing varnishadm CLI commands

image

jeslopcru/varnishadmin

Varnish admin socket for executing varnishadm CLI commands

  • Saturday, April 14, 2018
  • by jeslopcru
  • Repository
  • 2 Watchers
  • 12 Stars
  • 532 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 1 Open issues
  • 2 Versions
  • 2560 % Grown

The README.md

VarnishAdmin PHP Library

VarnishAdmin is a PHP Library for manage Varnish reverse proxy cache commands using PHP, (*1)

Requirements

VarnishAdmin is supported on PHP 5.6.* and up., (*2)

Instalation

To install this package, run the command below and you will get the latest version, (*3)

composer require jeslopcru/varnishadmin

or include this in your composer.json, (*4)

{
  "require": {
    "jeslopcru/varnishadmin": "dev-master"
  }
}

Use

It's very easy to use VarnishAdmin. If you have any question please open an issue, (*5)

Varnish 5

  $varnish = new VarnishAdminSocket('192.168.10.10', 6082, '5.0.0');
  $varnish->purgeUrl('example.com');
  $varnish->quit();

Varnish 4

  $varnish = new VarnishAdminSocket('192.168.10.10', 6082, '4.0.3');
  $varnish->purgeUrl('example.com');
  $varnish->quit();

Varnish 3

  //purge postId  (id = 354)
  //www.example.com?id=354
  $varnish = new VarnishAdminSocket();
  $varnish->purgeUrl('id=354');
  $varnish->quit();

Pull Request

Pull request are welcome using PSR-2, all issues are welcomed, (*6)

License

The whole VarnishAdmin package, is released under the MIT license, see LICENSE., (*7)

You can use this repo for Docker: https://github.com/newsdev/docker-varnish, (*8)

Based on timwhitlock/php-varnish, (*9)

The Versions

14/04 2018

dev-master

9999999-dev

Varnish admin socket for executing varnishadm CLI commands

  Sources   Download

MIT

The Requires

  • php >5.6

 

The Development Requires

16/07 2015

dev-scrutinizer-patch-1

dev-scrutinizer-patch-1

Varnish admin socket for executing varnishadm CLI commands

  Sources   Download

MIT

The Requires

  • php >5.4

 

The Development Requires