Download the PHP package hostbybelle/compressionbuffer without Composer

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

PHPStan Level Unit Tests Packagist Downloads Packagist Version

CompressionBuffer

CompressionBuffer provides easy access to zstd, brotli, and gzip output buffering with PHP on any web server. You can even get zstd output compression with the PHP development server.

Features

Requirements

Installation & Usage

Install via composer:

Enabling in your application:

Toggling CompressionBuffer's status:

Compression Method Tests & Results

Compression Methods, Ranked

  1. zstd is the fastest, most efficient compression method. On it's lowest level it will be 4.5x faster than gzip while producing a 5% smaller output. When matching gzip on it's fastest setting, zstd will produce a 10% smaller output.
  2. brotli is a good middle-ground between the two alternatives. It's lowest setting is still about 3x faster than gzip while producing a 5% smaller output. It will produce a similar overall compression level to zstd, but will do so at a slower pace. Still an overall great choice.
  3. gzip is the longstanding, tried & true compression method, but is quite slow compared to the new alternatives and will produce larger outputs while doing so.

These stats are based off some simple testing we've performed on a 4mb HTML document containing the book war and peace. This choice was inspired by jab4/zstdtest & represents a large document a server might serve. Our testing with small documents shows all 3 compression methods have very similar compression levels and overall processing time.

The results of our testing can be found here on Google Sheets.

Compression Levels Used


All versions of compressionbuffer with dependencies

PHP Build Version
Package Version
Requires asispts/http-accept Version ^1.0
php Version >=8.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 hostbybelle/compressionbuffer contains the following files

Loading the files please wait ....