Download the PHP package rvdlee/zf-image-optimiser without Composer

On this page you can find all versions of the php package rvdlee/zf-image-optimiser. 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 zf-image-optimiser

ZF3 Package to optimize images

Latest Version on Packagist Scrutinizer Code Quality Total Downloads GitHub license Donate

This is a image optimiser package. I've written this with ZF3 in mind, everything is written with configuration over convention in mind. Highly extendible and easy in use. Currently supporting Gifsicle, JpegOptim, Optipng and pngquant2.

This package provides the following ways of converting:

Usage

To get started you need to configure your validation chain. The validation chain acts as a validator for the files that are due to processing. There is a provided config dist file with all the configuration you need to get started.

The validator chain will require the standard zend validators to verify if the file is suitable to be handled by these adapters. It will look like something like this.

InputFilters

The standard file handling through forms is done with InputFilters in Zend, the InputFilter in this package allows you to save or overwrite the uploaded image. By default behaviour it will overwrite to be more inline with other file handling filters.

Here a example of an InputFilter in a FormInputFilter file using the ImageOptimiser filter to reduce filesize.

Commandline

The commandline controller is nothing more than a wrapper for the service calling optimise(). You can access this controller by running the following command from CLI.

Service

The service class allows you to apply this package virtually everywhere in your ZF3 application. We support logging and catch all output given from the programs doing the optimalisation.

The service by default gets decked out with a default Zend\Log\Writer\Mock writer. You can still access the logs in this writer. You can override this when building the service. Allowing you to provide a DB, Logfile or Stdout writer.

If you want to access the logs in the Mock writer, just use the following snippet. Locate the Mock writer and then look at the events.

FAQs

There are none at the moment.


All versions of zf-image-optimiser with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2 || ^7.3
zendframework/zend-modulemanager Version ^2.8
zendframework/zend-servicemanager Version ^2.7.8 || ^3.3
zendframework/zend-filter Version ^2.9
zendframework/zend-validator Version *
zendframework/zend-stdlib Version ^3.2
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 rvdlee/zf-image-optimiser contains the following files

Loading the files please wait ....