PHPackages                             shift8web/shift8cdn - 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. shift8web/shift8cdn

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

shift8web/shift8cdn
===================

A package to utilize the free Shift8 CDN service for Laravel

0.1.1(6y ago)098AGPL-3.0-onlyPHPPHP ^7.1CI failing

Since Mar 14Pushed 6y ago1 watchersCompare

[ Source](https://github.com/stardothosting/shift8-cdn-laravel)[ Packagist](https://packagist.org/packages/shift8web/shift8cdn)[ RSS](/packages/shift8web-shift8cdn/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

Laravel package for a free CDN by Shift8
========================================

[](#laravel-package-for-a-free-cdn-by-shift8)

Overview
--------

[](#overview)

This is a Laravel package for [Shift8 CDN](https://shift8cdn.com) which is a free CDN service for Laravel that utilizes endpoints all across the globe in order to quickly deliver your static assets and media to your end users.

Essentially you register for an account with the service, create a "pull zone" and install / configure the package in your Laravel (5.5+) project.

### File extensions that will be served through the CDN

[](#file-extensions-that-will-be-served-through-the-cdn)

The following file extensions can be configured via the package config file to be served through the worldwide CDN service, operated by Shift8 :

- CSS
- JS
- EOT
- WOFF
- TTF
- JPG/JPEG
- PNG
- GIF
- SVG

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

[](#installation)

### Step 1 : register for a Shift8 CDN account

[](#step-1--register-for-a-shift8-cdn-account)

You should register for an account on our service first and foremost. Head on over to [Shift8 CDN](https://shift8cdn.com/register) to register.

### Step 2 : add your site as a pull zone

[](#step-2--add-your-site-as-a-pull-zone)

Once registered and your account is validated, you can visit the dashboard and add your site by clicking the "Add Pull Zone" button. The URL should be exactly how it would need to be in order for us to fetch &amp; serve the static assets across the CDN. Note the CDN URL that is generated for future reference.

### Step 3 : install the composer package

[](#step-3--install-the-composer-package)

You can install `shift8/shift8cdn` via Composer by executing `composer require shift8web/shift8cdn` in your Laravel project's root folder. Alternatively you could add `"shift8web/shift8cdn": "^0.1.1"` as a requirement to your composer.json.

### Step 4 : service provider

[](#step-4--service-provider)

If you are using Laravel 5.5 or higher, the package will automatically register itself as a service provider. Otherwise you would have to add `Shift8Web\Shift8Cdn\Shift8CdnServiceProvider` to your [providers](https://laravel.com/docs/master/providers#registering-providers "Visit Laravel Documentation") array.

### Step 5 : public config file

[](#step-5--public-config-file)

This package has a configuration file which can be configured to your needs. Deploy the Shift8CDN config file to add your configuration for the CDN url and file extensions :

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

This will create a config file in the `/config` folder of your laravel project called *shift8cdn.php*. In that file you can see an array with a URL and file extensions pre-defined :

```
    'Shift8CDN' => [
            "replace-me.wpcdn.shift8cdn.com" => "css|js|eot|woff|ttf|jpg|jpeg|png|gif|svg",
    ]

```

Take the CDN URL that you saved in *Step 2* and replace it in the configuration above. If you wanted to remove file extensions, thats fine but you cant add new ones.

### Step 6 : Update your blade templates to serve the static assets through the CDN

[](#step-6--update-your-blade-templates-to-serve-the-static-assets-through-the-cdn)

You need to replace the points in your template that load the static assets to go through the Shift8Cdn function instead.

So this :

```

```

Becomes :

```

```

Support
-------

[](#support)

- Community forum will soon be deployed
- Ask on github

Contribute
----------

[](#contribute)

Please feel free to fork and extend existing or add new plugins and send a pull request with your changes! To establish a consistent code quality, please provide unit tests for all your changes and may adapt the documentation.

License
-------

[](#license)

Released under the [GPLv3](LICENSE.md).

Made with &lt;3 by [Shift8 Web](https://www.shift8web.ca)

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

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

Total

2

Last Release

2255d ago

### Community

Maintainers

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

---

Top Contributors

[![stardothosting](https://avatars.githubusercontent.com/u/3026386?v=4)](https://github.com/stardothosting "stardothosting (17 commits)")

### Embed Badge

![Health badge](/badges/shift8web-shift8cdn/health.svg)

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

###  Alternatives

[symfony/dependency-injection

Allows you to standardize and centralize the way objects are constructed in your application

4.2k431.1M7.5k](/packages/symfony-dependency-injection)[illuminate/contracts

The Illuminate Contracts package.

704122.9M10.1k](/packages/illuminate-contracts)[illuminate/container

The Illuminate Container package.

31278.1M2.0k](/packages/illuminate-container)[ecotone/ecotone

Supporting you in building DDD, CQRS, Event Sourcing applications with ease.

558549.8k17](/packages/ecotone-ecotone)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

728272.9k20](/packages/civicrm-civicrm-core)[internal/dload

Downloads binaries.

98142.7k10](/packages/internal-dload)

PHPackages © 2026

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