Download the PHP package humanmade/tachyon-plugin without Composer

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

Tachyon
Faster than light image processing. Inspired / forked from Photon.
Build status Coverage via codecov.io
A Human Made project. Maintained by @joehoyle.

Tachyon is an image resizing service built to be used with Amazon S3 as the image backend, AWS Lambda (or any node.js server) to process images using sharp, and sits behind a CDN such as CloudFront or CloudFlare.

This plugin handles modifying WordPress image URLs to use a Tachyon service instance.

Installation

  1. Upload and enable this plugin.
  2. Add define( 'TACHYON_URL', 'https://your.tachyon.url/path/to/uploads' ) to your wp-config.php file.

Usage

Typically the above steps are all you need to do however you can use the following public facing functions and filters.

Functions

tachyon_url( string $image_url, array $args = [] )

This function returns the Tachyon URL for a given image hosted on Amazon S3.

Filters

The following filters allow you to modify the output and behaviour of the plugin.

tachyon_disable_in_admin

Defaults to true. You can override this by adding the following code to a plugin or your theme's functions.php:

tachyon_override_image_downsize

Defaults to false. Provides a way of preventing Tachyon from being applied to images retrieved from WordPress Core at the lowest level, you might use this if you wanted to use tachyon_url() manually in specific cases.

tachyon_skip_for_url

Allows skipping the Tachyon URL for a given image URL. Defaults to false.

tachyon_pre_image_url

Filters the Tachyon image URL excluding the query string arguments. You might use this to shard Tachyon requests across multiple instances of the service for example.

tachyon_pre_args

Filters the query string parameters appended to the tachyon image URL.

tachyon_remove_size_attributes

Defaults to true. width & height attributes on image tags are removed by default to prevent aspect ratio distortion that can happen in some unusual cases where srcset sizes have different aspect ratios.

Credits

Created by Human Made for high volume and large-scale sites, such as Happytables. We run Tachyon on sites with millions of monthly page views, and thousands of sites.

Written and maintained by Joe Hoyle.

Tachyon is forked from Photon by Automattic Inc. As Tachyon is not an all-purpose image resizer, rather it uses a media library in Amazon S3, it has a different use case to Photon.

Interested in joining in on the fun? Join us, and become human!


All versions of tachyon-plugin with dependencies

PHP Build Version
Package Version
No informations.
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 humanmade/tachyon-plugin contains the following files

Loading the files please wait ....