PHPackages                             macroman/nitropack-api - 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. macroman/nitropack-api

AbandonedArchivedLibrary

macroman/nitropack-api
======================

Unofficial API adapter for Nitropack

0.0.2(4y ago)33.3k↓100%3GPL-3.0-or-laterPHPPHP &gt;=7.3|&gt;=8.0

Since Jun 9Pushed 4y ago1 watchersCompare

[ Source](https://github.com/MacroMan/nitropack-api)[ Packagist](https://packagist.org/packages/macroman/nitropack-api)[ Docs](https://github.com/MacroMan/nitropack-api)[ RSS](/packages/macroman-nitropack-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (4)Used By (0)

Unofficial NitroPack API SDK
============================

[](#unofficial-nitropack-api-sdk)

This repo is mainly based on  with some areas tidied up and refactored to allow composer installation.

Installation
------------

[](#installation)

`composer require macroman/nitropack-api`

Usage
-----

[](#usage)

```
use NitroPack\NitroPack;
use NitroPack\PurgeType;

// Initialize API
$nitro = new NitroPack('site_id', 'secret');

// Clear entire cache
$nitro->purgeCache();

// Clear specific URL
$nitro->purgeCache('https://example.com/');

// Clear tagged pages
$nitro->purgeCache(null, 'tag-name');

// Clear cache leaving a reason (shows in WordPress settings page)
$nitro->purgeCache(null, null, PurgeType::COMPLETE, 'This is my reason');

// Add a tag to a URL
$nitro->tagUrl('https://example.com/', 'tag-name');

// Enable/disable compression
$nitro->enableCompression();
$nitro->disableCompression();

```

More functionality available, but not documented. Look at `NitroPack\NitroPack.php` for more information.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

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.

###  Release Activity

Cadence

Every ~50 days

Total

2

Last Release

1744d ago

PHP version history (2 changes)0.0.1PHP &gt;=7.4|&gt;=8.0

0.0.2PHP &gt;=7.3|&gt;=8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/432ce1b3407973cc49a46ef4297e30723537f5d1f4081a88d95f3cf2b7cf5516?d=identicon)[MacroMan](/maintainers/MacroMan)

### Embed Badge

![Health badge](/badges/macroman-nitropack-api/health.svg)

```
[![Health](https://phpackages.com/badges/macroman-nitropack-api/health.svg)](https://phpackages.com/packages/macroman-nitropack-api)
```

PHPackages © 2026

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