Download the PHP package picperf/statamic-picperf without Composer

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

PicPerf for Statamic

This thing is a Statamic addon that automatically reformats, optimizes, and aggressively caches your website's images using PicPerf.

Features

Getting Started

Create an account.

In order to benefit from this addon, you'll need to first create an account at PicPerf. A 14-day free trial is available, but in order keep your images fast & globally available beyond that, upgrade to a regular plan.

Add your domain.

Add your website's domain inside the PicPerf dashboard.

How to Install

Search for the PicPerf addon in the Tools > Addons section of the Statamic control panel and click install, or install it with Composer in the root of your project:

How to Use

Out of the box, you need to do nothing. The addon will prefix all image URLs with https://picperf.io, allowing them to be automatically optimized & globally cached. Specifically, only the images in HTML <img> tags (including responsive images), inline style attributes, and CSS within <style> tags will be transformed. Image URLs in separate .css files or those injected with client-side JavaScript will not be affected.

Disabling Universal Transformation

You can opt out of universal image transformation by setting transform_all_markup to false inside your config/picperf.php file. When it's disabled like this, only content processed with modifiers will be transformed:

Using a Modifier

The picperf modifier will perform same image transformations in a more controlled way. You can use it on single URLs...

Or chunks of HTML:

Transforming Root-Relative Paths

By default, the addon won't transform root-relative images (ex: /some/image.jpg). However, if you set a host in your config/picperf.php file, it'll be tacked onto those paths so your images can reap the performance gains:

Adding Images to the Auto-Generated Sitemap

PicPerf will automatically generate an image sitemap for you based on image requests from the last 90 days.

Enabling Image Sitemap Inclusions

By default, no images are included in this sitemap. To enable it for all images, set the add_sitemap_path configuration property to true:

Setting this will add a sitemap_path query parameter to each image based on the current page path.

Adding Images to Sitemap via Modifier

If you'd like more control over which images are included in the sitemap, use the add_to_sitemap parameter on the picperf modifier:

Again, this will cause the sitemap_path parameter to be appended with the current page.

Auto-Registered Sitemap Endpoint

By default, this addon will automatically register an image sitemap route at https://ur-site.com/picperf/sitemap. All this does is proxy the contents of the auto-generated sitemap at https://picperf.io/sitemap/ur-site.com. The benefit, however, is that Google will be able to successfully parse it since it'll be served from your domain.

If you don't want a sitemap endpoint to be registered, set the register_sitemap configuration key to false:

Auto-Added Sitemap robots.txt Entry

On installation, the addon will also add a Sitemap entry to your robots.txt. If it was removed and you ever need to add it again, you can run the following command:

More Documentation

See it at picperf.io/docs.

Feedback?

I need to hear it! Find me on X or contact me.


All versions of statamic-picperf with dependencies

PHP Build Version
Package Version
Requires illuminate/support Version *
statamic/cms Version ^3.2|^4.0|^5.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 picperf/statamic-picperf contains the following files

Loading the files please wait ....