Download the PHP package kjdev/brotli without Composer

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

Brotli Extension for PHP

Linux Windows

This extension allows Brotli compression.

Documentation for Brotli can be found at » https://github.com/google/brotli/.

Build

To use the system library (using pkg-config)

Distribution binary packages

Fedora / CentOS / RHEL

RPM packages of this extension are available in » Remi's RPM repository and are named php-brotli.

Configuration

php.ini:

Output handler option

Name Default Changeable
brotli.output_compression 0 PHP_INI_ALL
brotli.output_compression_level 11 PHP_INI_ALL
brotli.output_compression_dict "" PHP_INI_ALL

Constant

Name Description
BROTLI_GENERIC Generic compress mode value
BROTLI_TEXT Text compress mode value
BROTLI_FONT Font compress mode value
BROTLI_COMPRESS_LEVEL_MIN Minimal compress level value
BROTLI_COMPRESS_LEVEL_MAX Maximal compress level value
BROTLI_COMPRESS_LEVEL_DEFAULT Default compress level value
BROTLI_PROCESS Incremental process mode value
BROTLI_FLUSH Incremental produce mode value
BROTLI_FINISH Incremental finalize mode value
BROTLI_DICTIONARY_SUPPORT Dictionary support value

BROTLI_DICTIONARY_SUPPORT must be enabled with brotli library version 1.1.0 or higher

dictionary only work from compression level 5 or higher note

Function


brotli_compress — Compress a string

Description

This function compress a string.

Parameters

Return Values

The compressed string or FALSE if an error occurred.


brotli_uncompress — Uncompress a compressed string

Description

This function uncompress a compressed string.

Parameters

Return Values

The original uncompressed data or FALSE on error.


brotli_compress_init — Initialize an incremental compress context

Description

Initialize an incremental compress context.

Parameters

Return Values

Returns a Brotli\Compress\Context instance on success, or FALSE on failure.


brotli_compress_add — Incrementally compress data

Description

Incrementally compress data.

Parameters

Return Values

Returns a chunk of compressed data, or FALSE on failure.


brotli_uncompress_init — Initialize an incremental uncompress context

Description

Initialize an incremental uncompress context.

Parameters

Return Values

Returns a Brotli\UnCompress\Context instance on success, or FALSE on failure.


brotli_uncompress_add — Incrementally uncompress data

Description

Incrementally uncompress data.

Parameters

Return Values

Returns a chunk of uncompressed data, or FALSE on failure.

Namespace

alias functions..

Streams

Brotli compression and uncompression are available using the compress.brotli:// stream prefix.

Examples

Output handler

"Accept-Encoding: br" must be specified.

Namespace

Streams

Incrementally

Dictionary

Experimental: Compression Dictionary Transport support

must be specified headers.

  • Accept-Encoding: dcb
  • Available-Dictionary: :<base64-hash>:

All versions of brotli with dependencies

PHP Build Version
Package Version
Requires php Version >= 7.0.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 kjdev/brotli contains the following files

Loading the files please wait ....