Download the PHP package moderntribe/tribe-storage-statically-cdn without Composer

On this page you can find all versions of the php package moderntribe/tribe-storage-statically-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 tribe-storage-statically-cdn

Tribe Storage Plugin: Statically.io

PHPCS + Unit Tests php 7.3+

Provides dynamic image sizing and optimization via statically.io and only creates WordPress thumbnails for images that require hard cropping.

Installation Composer v1

Add the following to the composer.json repositories object:

Then run:

Configuration

There are two ways to configure this plugin, either directly using the cdn.statically.io directly, or proxying to that domain via Nginx.

Use statically.io URLs directly

Ensure you have defined the TRIBE_STORAGE_URL constant in wp-config.php to your cloud provider's publicly accessible URL and it will be replaced to use Statically's CDN for images only:

NOTE: Image URLs are cached, ensure your flush your object cache if you make any changes to the following defines.

URL rewriting would look as follows:

Use statically.io as a proxy via Nginx

Ensure you do not have TRIBE_STORAGE_URL defined, and define the following in wp-config.php:

Sample Nginx Proxy

Replace account.blob.core.windows.net below with your cloud provider's hostname. Using the example from above it would be: account.blob.core.windows.net/container

URL rewriting would look as follows, and proxied to Statically behind the scenes:

Disable WordPress thumbnail creation

If you're not concerned with exact cropping, you can let statically.io resize your image based with keeping the same dimension ratio and disable thumbnail creation to see a large performance boost when uploading new images.

For this you have two options:

Option 1: Add this define to wp-config.php

Option 2: Make the tribe/storage/plugin/statically/create_thumbnails filter return false, e.g.

NOTE: Don't forget to clear object caching and regenerate thumbnails each time this option is swapped.

Automated Testing

Testing provided via PHPUnit and the Brain Monkey testing suite.

Run Unit Tests

More Resources:


All versions of tribe-storage-statically-cdn with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
ext-json Version *
php-di/php-di Version ^6.0
moderntribe/tribe-storage Version ^3.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 moderntribe/tribe-storage-statically-cdn contains the following files

Loading the files please wait ....