PHPackages                             pandeydip/cloudflare-purge-cache - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. pandeydip/cloudflare-purge-cache

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

pandeydip/cloudflare-purge-cache
================================

This package helps you purge cahce specifying a host/url

1940↓25%1PHPCI passing

Since Jun 10Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/pandeydip/cloudflare-purge-cache)[ Packagist](https://packagist.org/packages/pandeydip/cloudflare-purge-cache)[ RSS](/packages/pandeydip-cloudflare-purge-cache/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (5)Used By (0)

This package helps you purge cache specifying a host/url
========================================================

[](#this-package-helps-you-purge-cache-specifying-a-hosturl)

[![Latest Version on Packagist](https://camo.githubusercontent.com/f04ee3d4fca9775384f813c2eb84759fc8957f33d55c85f62334584d709ef2b8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70616e6465796469702f636c6f7564666c6172652d70757267652d63616368652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/pandeydip/cloudflare-purge-cache)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/b03d94accef379b5de80b1b156b22b925cafefa437027a0b58a394c83e17f5ba/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f70616e6465796469702f636c6f7564666c6172652d70757267652d63616368652f466978253230504850253230636f64652532307374796c652532306973737565733f6c6162656c3d636f64652532307374796c65)](https://github.com/pandeydip/cloudflare-purge-cache/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/83873b807953f1c53fd46b67c6198781a6a1c060c3e9b2a69fbe25ebccecd99e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f70616e6465796469702f636c6f7564666c6172652d70757267652d63616368652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/pandeydip/cloudflare-purge-cache)

Laravelcloudflare-purge9.0dev-main10.0dev-masterInstallation
------------

[](#installation)

You can install the package via composer:

```
composer require pandeydip/cloudflare-purge-cache
```

You can publish the config file with:

```
php artisan vendor:publish --tag="cloudflare-purge-cache-config"
```

This is the contents of the published config file:

```
return [
    'zone_id' => env('ZONE_ID', ''),
    'x_auth_email' => env('X_AUTH_EMAIL', ''),
    'x_auth_key' => env('X_AUTH_KEY', ''),
];
```

You can these details by logging into [cloudflare.com](https://dash.cloudflare.com/)

Usage
-----

[](#usage)

It returns boolean response `true` when success and `false` when purge fails

```
$response = CloudflarePurgeCache::purge(['https://abc.com', 'https://abc.com/test']);
echo $response;
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Deepak Pandey](https://github.com/pandeydip)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance59

Moderate activity, may be stable

Popularity20

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity23

Early-stage or recently created project

 Bus Factor1

Top contributor holds 92.3% 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/f8348a54c290ba8c2b7d2e5c01599b75c4d9cc3289b4b1944586c9c07f3b9ea8?d=identicon)[pandeydip](/maintainers/pandeydip)

---

Top Contributors

[![pandeydip](https://avatars.githubusercontent.com/u/716706?v=4)](https://github.com/pandeydip "pandeydip (12 commits)")[![manoj-futuressoft](https://avatars.githubusercontent.com/u/141713909?v=4)](https://github.com/manoj-futuressoft "manoj-futuressoft (1 commits)")

### Embed Badge

![Health badge](/badges/pandeydip-cloudflare-purge-cache/health.svg)

```
[![Health](https://phpackages.com/badges/pandeydip-cloudflare-purge-cache/health.svg)](https://phpackages.com/packages/pandeydip-cloudflare-purge-cache)
```

PHPackages © 2026

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