PHPackages                             graham-campbell/cloudflare - 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. [Framework](/categories/framework)
4. /
5. graham-campbell/cloudflare

AbandonedArchivedLibrary[Framework](/categories/framework)

graham-campbell/cloudflare
==========================

CloudFlare Provides A Simple CloudFlare Module For Laravel 5

0.2.x-dev(11y ago)29681MITPHPPHP &gt;=5.4.7

Since Apr 21Pushed 9y ago1 watchersCompare

[ Source](https://github.com/BootstrapCMS/CloudFlare)[ Packagist](https://packagist.org/packages/graham-campbell/cloudflare)[ RSS](/packages/graham-campbell-cloudflare/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (5)Dependencies (7)Versions (7)Used By (0)

Laravel CloudFlare
==================

[](#laravel-cloudflare)

Laravel CloudFlare was created by, and is maintained by [Graham Campbell](https://github.com/GrahamCampbell), and provides a simple [CloudFlare](https://www.cloudflare.com/) module for [Laravel 5](http://laravel.com). Feel free to check out the [releases](https://github.com/BootstrapCMS/CloudFlare/releases), [license](LICENSE), and [contribution guidelines](CONTRIBUTING.md).

[![Laravel CloudFlare](https://cloud.githubusercontent.com/assets/2829600/4432321/c18eb49c-468c-11e4-9f4d-8ece7a481d29.PNG)](https://cloud.githubusercontent.com/assets/2829600/4432321/c18eb49c-468c-11e4-9f4d-8ece7a481d29.PNG)

[![Build Status](https://camo.githubusercontent.com/ab6f51baebf92a2e5c95d4f968eb6d689bf10fd16dbcd48719a44bac1df0381e/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f426f6f747374726170434d532f436c6f7564466c6172652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/BootstrapCMS/CloudFlare)[![Coverage Status](https://camo.githubusercontent.com/e6eb0efcd7c79b2c48d44031219afd28592dcdf76e23cf82e19837d699a76bb0/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f426f6f747374726170434d532f436c6f7564466c6172652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/BootstrapCMS/CloudFlare/code-structure)[![Quality Score](https://camo.githubusercontent.com/10d54414d3edcbf0fd94c51e560f5b1b63c3c9f8285a0511c1452c8aafc3c280/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f426f6f747374726170434d532f436c6f7564466c6172652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/BootstrapCMS/CloudFlare)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Latest Version](https://camo.githubusercontent.com/ea77e39e5f272c65ca92f4970667a04bf6b5689062ddaa723c14f61daea863f1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f426f6f747374726170434d532f436c6f7564466c6172652e7376673f7374796c653d666c61742d737175617265)](https://github.com/BootstrapCMS/CloudFlare/releases)

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

[](#installation)

[PHP](https://php.net) 5.5+ or [HHVM](http://hhvm.com) 3.6+, and [Composer](https://getcomposer.org) are required.

To get the latest version of Laravel CloudFlare, simply add the following line to the require block of your `composer.json` file:

```
"graham-campbell/cloudflare": "~1.0"

```

You'll then need to run `composer install` or `composer update` to download it and have the autoloader updated.

Once Laravel CloudFlare is installed, you need to register the service provider. Open up `config/app.php` and add the following to the `providers` key.

- `'GrahamCampbell\CloudFlare\CloudFlareServiceProvider'`

Configuration
-------------

[](#configuration)

Laravel CloudFlare supports optional configuration.

To get started, you'll need to publish all vendor assets:

```
$ php artisan vendor:publish
```

This will create a `config/cloudflare.php` file in your app that you can modify to set your configuration. Also, make sure you check for changes to the original config file in this package between releases.

There are a few config options:

##### API Key

[](#api-key)

This option (`'key'`) defines the api key to use to make calls to CloudFlare's API. The default value for this setting is `''`.

##### Email

[](#email)

This option (`'email'`) defines the email address to use to make calls to CloudFlare's API. The default value for this setting is `''`.

##### Zone

[](#zone)

This option (`'zone'`) defines the zone to read analytics information for. The default value for this setting is `''`.

##### Cache Driver

[](#cache-driver)

This option (`'cache'`) defines the cache driver to be used. It may be the name of any driver set in config/cache.php. Setting it to null will use the driver you have set as default in config/cache.php. The default value for this setting is `null`.

##### Middleware

[](#middleware)

This option (`'middlware'`) defines the middleware to be put in front of the endpoints provided by this package. A common use will be for your own authentication middleware. The default value for this setting is `[]`.

##### Layout

[](#layout)

This option (`'layout'`) defines the layout to extend when building views. The default value for this setting is `'layouts.default'`.

Usage
-----

[](#usage)

Laravel CloudFlare is designed to work with [Bootstrap CMS](https://github.com/BootstrapCMS/CMS). In order for it to work in any Laravel application, you must ensure that you know how to use my [Laravel Core](https://github.com/GrahamCampbell/Laravel-Core) package as configuration and knowledge of the `app:install` and `app:update ` commands is required.

Laravel CloudFlare will register two routes. `'cloudflare'` (`cloudflare.index`) should be accessed to show the CloudFlare statistics page, and `'cloudflare/data'` (`cloudflare.data`) is internally used by this package.

License
-------

[](#license)

Laravel CloudFlare is licensed under [The MIT License (MIT)](LICENSE).

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity48

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 ~65 days

Recently: every ~54 days

Total

6

Last Release

4077d ago

PHP version history (2 changes)v0.1.0-alphaPHP &gt;=5.4.7

v0.3.0-alphaPHP &gt;=5.5.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/d95eb26cb8f3919bb5ca3b6d823daeabbf259663778a970349b245c580713c8e?d=identicon)[graham-campbell](/maintainers/graham-campbell)

---

Top Contributors

[![GrahamCampbell](https://avatars.githubusercontent.com/u/2829600?v=4)](https://github.com/GrahamCampbell "GrahamCampbell (114 commits)")

---

Tags

frameworklaravelGraham CampbellGrahamCampbellcloudflareCloudFlare APILaravel-CloudFlare

### Embed Badge

![Health badge](/badges/graham-campbell-cloudflare/health.svg)

```
[![Health](https://phpackages.com/badges/graham-campbell-cloudflare/health.svg)](https://phpackages.com/packages/graham-campbell-cloudflare)
```

###  Alternatives

[graham-campbell/markdown

Markdown Is A CommonMark Wrapper For Laravel

1.3k7.1M64](/packages/graham-campbell-markdown)[graham-campbell/manager

Manager Provides Some Manager Functionality For Laravel

39221.1M134](/packages/graham-campbell-manager)[graham-campbell/digitalocean

DigitalOcean Is A DigitalOcean Bridge For Laravel

509343.1k2](/packages/graham-campbell-digitalocean)[graham-campbell/bitbucket

Bitbucket Is A Bitbucket Bridge For Laravel

75185.0k2](/packages/graham-campbell-bitbucket)

PHPackages © 2026

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