PHPackages                             rabbit-loader/php-sdk - 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. rabbit-loader/php-sdk

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

rabbit-loader/php-sdk
=====================

PHP SDK for optimizing websites with RabbitLoader

v1.0.16(1y ago)01441BSD-2-ClausePHPPHP &gt;=5.6

Since Oct 15Pushed 1y ago1 watchersCompare

[ Source](https://github.com/rabbit-loader/php-sdk)[ Packagist](https://packagist.org/packages/rabbit-loader/php-sdk)[ Docs](https://github.com/rabbit-loader/php-sdk)[ RSS](/packages/rabbit-loader-php-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)DependenciesVersions (19)Used By (1)

RabbitLoader PHP SDK
====================

[](#rabbitloader-php-sdk)

RabbitLoader PHP SDK can be used to speed up any website that is built using core PHP or frameworks.

Highlights
==========

[](#highlights)

- 🚀 Boost PageSpeed Insights Score for all pages of the custom developed website
- 🏗️ Automatically reduce image size by ~40% by converting to NextGen AVIF and WebP formats
- ➰ Lazy load below-the-fold images and YouTube videos
- 📱 Reduce CSS size by 98% automatically by generating critical-css for fastest rendering of the webpage
- ✨ Improve all Core Web Vitals metrics (lower FCP, FID, and CLS)
- ⚡️ Higher rankings on Google Search and better conversions due to page speed optimization and healthy Core Web Vitals metrics
- 🌐 Cache and serve static assets (CSS/JS/Images) via inbuilt premium CDN
- ♾️ HTTP/3 Full request and response multiplexing of static assets
- 🗜️ Use Brotli compression for static assets transfer and loading

Installation
============

[](#installation)

```
composer require rabbit-loader/php-sdk
```

Example
=======

[](#example)

Example use, assuming index.php is the file that handles all traffic for the website.

Public page example
-------------------

[](#public-page-example)

```
#load vendor/autoload.php

#integrate RabbitLoader
$licenseKey = 'YOUR_LICENSE_KEY'; //get your license key from environment variable
$storageDir = '/cache-disk/rabbitloader'; //storage location where cached files will be stored
$rlSDK = new RabbitLoader\SDK\RabbitLoader($licenseKey, $storageDir);
$rlSDK->process();

#remaining code of the website goes after this ...
echo "Hello World!"
```

Admin page example
------------------

[](#admin-page-example)

When a content is modified from admin panel, this can be called to make the cache stale.

```
#admin.php

$urlModified = 'https://mywebsite.com/modified-page-slug/';
$rlSDK->onContentChange($urlModified);

#if home page needs to be purged too, then-
$rlSDK->onContentChange('https://mywebsite.com/');
```

Skipping some pages from caching and optimization
-------------------------------------------------

[](#skipping-some-pages-from-caching-and-optimization)

```
//skip caching if path starts with admin
$rlSDK->skipForPaths(['/admin*']);

//skip caching if a cookie is found with name cookie1
$rlSDK->skipForCookies(['cookie1']);

//all the above options should come before the process() call
$rlSDK->process();
```

More Samples and License Key
============================

[](#more-samples-and-license-key)

A license key is required to run the SDK. This guide has more code samples and explains [how to get the license key](https://rabbitloader.com/kb/setting-up-rabbitloader-on-custom-php-website/).

Support
=======

[](#support)

[Contact RabbitLoader team here](https://rabbitloader.local/contact/).

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance49

Moderate activity, may be stable

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

###  Release Activity

Cadence

Every ~38 days

Recently: every ~15 days

Total

16

Last Release

369d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1c6c22bb15563f9fab44df36c72fc27892e42d5b5541e5d7353da1ae32aa17c4?d=identicon)[rabbit-loader](/maintainers/rabbit-loader)

---

Top Contributors

[![rabbit-loader](https://avatars.githubusercontent.com/u/139335181?v=4)](https://github.com/rabbit-loader "rabbit-loader (65 commits)")

### Embed Badge

![Health badge](/badges/rabbit-loader-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/rabbit-loader-php-sdk/health.svg)](https://phpackages.com/packages/rabbit-loader-php-sdk)
```

PHPackages © 2026

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