Download the PHP package webravolab/cdn without Composer

On this page you can find all versions of the php package webravolab/cdn. 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 cdn

CDN Images and Assets Manager for Laravel

Content Delivery Network Package for Laravel

The package handle automatic image processing and upload to a remote CDN.

Two remote CDN providers are included, a custom one and the Google Storage Bucket driver, but you can implement your own driver to interface with any standard CDN like AWS, Cloudflare ...

Laravel Support

Usage

Use the Cdn facade to interact, for example from your blade template:

simplest example without any option

complex image transform and custom name

Image processing options:

The full sintax is:

Source file must be a file name path relative to public directory.

Options are a combination of the following:

Installation

Via Composer

Require webravolab/cdn in your project:

To use the Google Storage driver you must also install the Google Api Client and Webravolab Layers:

You must register manually the service provider:

Add the service provider to config/app.php:

Publish the default configuration file:

To use the Google Storage driver you must add the following configuration variables to your environment:

Dependencies

This package depends on the wonderful gregwar/image to process images and guzzlehttp/guzzle to manage assets upload to cdn.

Configuration

Configuration is copied at config/webravo_cdn.php

Default Provider

or

CDN Provider Configuration

For Webravo provider, you must define just your cdn url and specific url to upload assets. For Google Storage provider you must define the remote bucket name, the default TTL, and the storage URL to pre-pend to assets.

Optionally, you can define another bucket (cdn_bucket) to use when creating assets url, in case you handle separate buckets for upload and retrieve. If omitted, the same bucket name is used.

Bypass

To disable CDN and load your assets from local machine for testing purposes, set the bypass option to true:

Don't overwrite CDN images if source is missing

As per default, missing images are replaced by a fallback image (overwrite = true by default). To change this behaviour set overwrite to false in your configuration file.

Overwrite flag could be passed also as optional parameter to any Cdn:: call.

Check for file size changes

As per default, file size is not checked to detect image changes, but only modification date is used. To enable file size check set checksize to true in your configuration file.

Checksize flag could be passed also as optional parameter to any Cdn:: call.

Elixir assets

(Webravo provider only)

Note: the elixir works the same as the Laravel elixir it loads the manifest.json file from build folder and choose the correct file revision generated by gulp:

Note: currently, the elixir command does not copy assets to Cdn, but simply add/replace the url with the Cdn url

Test

No test available.

Support

On Github

Contributing

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of cdn with dependencies

PHP Build Version
Package Version
Requires php Version ^7.0
gregwar/image Version 2.*
guzzlehttp/guzzle Version ^6.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 webravolab/cdn contains the following files

Loading the files please wait ....