Download the PHP package sourcebroker/webp without Composer

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

webp

:local:

What does it do?

This library is short scenarios of working examples for webp on demand which use rosell-dk/webp-convert in background. There will be two scenarios:

1) call to image which has no webp version yet will redirect to original source and run webp image converter in background 2) call to image which has no webp version yet will stream original source and run webp image converter in background

Next calls to jpg/png will return webp on apache rewrite level.

For now only first scenario is implemented.

Webp images generated after redirect to original source

How to install ? ++++++++++++++++

  1. composer req sourcebroker/webp
  2. Go to folder vendor/sourcebroker/webp/Resources/WebpRedirectToOriginalAndConvertInBackground
  3. Copy part of htaccess from there to your htaccess or vhost configuration.
  4. Copy the example webp.php to your DocumentRoot folder. Change the path to vendor folder to your needs.
  5. Your webp files will be stored in separate folder in your DocumentRoot folder. By default its _processed_/webp-images. You can change this folder by replacing _processed_/webp-images in .htaccess file and in webp.php file.
  6. If you open folder vendor/sourcebroker/webp/Resources/WebpRedirectToOriginalAndConvertInBackground/cms-specific you will find there htaccess and webp.php for specific CMSes like for example TYPO3. The path to store files is there selected to best fit the CMS.

How to test? ++++++++++++

  1. Go into Network tab in Chrome DevTools. When you refresh website you should see jpg/png files being redirected to the same url but with ?processing parameter.
  2. When you refresh the page second time some jpg/png should be already converted. Those will have webp in column Type
  3. Check you DocumentRoot folder there should be _processed_/webp-images folder created with webp files.

All versions of webp with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
rosell-dk/webp-convert Version ^2.4
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 sourcebroker/webp contains the following files

Loading the files please wait ....