PHPackages                             jeslopcru/varnishadmin - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. jeslopcru/varnishadmin

ActiveLibrary[CLI &amp; Console](/categories/cli)

jeslopcru/varnishadmin
======================

Varnish admin socket for executing varnishadm CLI commands

1614.5k↓50%8[1 PRs](https://github.com/jeslopcru/VarnishAdmin/pulls)1PHP

Since Jul 16Pushed 8y ago1 watchersCompare

[ Source](https://github.com/jeslopcru/VarnishAdmin)[ Packagist](https://packagist.org/packages/jeslopcru/varnishadmin)[ RSS](/packages/jeslopcru-varnishadmin/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (1)

VarnishAdmin PHP Library
------------------------

[](#varnishadmin-php-library)

VarnishAdmin is a PHP Library for manage Varnish reverse proxy cache commands using PHP

Requirements
------------

[](#requirements)

VarnishAdmin is supported on PHP 5.6.\* and up.

Instalation
-----------

[](#instalation)

To install this package, run the command below and you will get the latest version

```
composer require jeslopcru/varnishadmin

```

or include this in your composer.json

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

```

Use
---

[](#use)

It's very easy to use VarnishAdmin. If you have any question please open an issue

### Varnish 5

[](#varnish-5)

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

### Varnish 4

[](#varnish-4)

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

### Varnish 3

[](#varnish-3)

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

Pull Request
============

[](#pull-request)

Pull request are welcome using PSR-2, all issues are welcomed

License
-------

[](#license)

The whole VarnishAdmin package, is released under the MIT license, see LICENSE.

You can use this repo for Docker:

Based on [timwhitlock/php-varnish](https://github.com/timwhitlock/php-varnish)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/adb27b1c3f0247a05ee4e8517668bcd2b8179f8aac1523aa4cddfc71c866a113?d=identicon)[jeslopcru](/maintainers/jeslopcru)

---

Top Contributors

[![jeslopcru](https://avatars.githubusercontent.com/u/2398253?v=4)](https://github.com/jeslopcru "jeslopcru (31 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (1 commits)")[![viable-hartman](https://avatars.githubusercontent.com/u/1300504?v=4)](https://github.com/viable-hartman "viable-hartman (1 commits)")

### Embed Badge

![Health badge](/badges/jeslopcru-varnishadmin/health.svg)

```
[![Health](https://phpackages.com/badges/jeslopcru-varnishadmin/health.svg)](https://phpackages.com/packages/jeslopcru-varnishadmin)
```

###  Alternatives

[wp-cli/wp-cli

WP-CLI framework

5.1k17.2M320](/packages/wp-cli-wp-cli)[consolidation/annotated-command

Initialize Symfony Console commands from annotated command class methods.

22569.8M19](/packages/consolidation-annotated-command)[seld/cli-prompt

Allows you to prompt for user input on the command line, and optionally hide the characters they type

24725.8M17](/packages/seld-cli-prompt)[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[php-tui/php-tui

Comprehensive TUI library heavily influenced by Ratatui

589747.0k6](/packages/php-tui-php-tui)[codedungeon/php-cli-colors

Liven up you PHP Console Apps with standard colors

10210.1M26](/packages/codedungeon-php-cli-colors)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
