Download the PHP package shift8web/shift8cdn without Composer

On this page you can find all versions of the php package shift8web/shift8cdn. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package shift8cdn

Laravel package for a free CDN by Shift8

Overview

This is a Laravel package for Shift8 CDN 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

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

Installation

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 to register.

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 & serve the static assets across the CDN. Note the CDN URL that is generated for future reference.

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

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 array.

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 :

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 :

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

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

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

Released under the GPLv3.

Made with <3 by Shift8 Web


All versions of shift8cdn with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1
psr/container Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package shift8web/shift8cdn contains the following files

Loading the files please wait ....