Giter Site home page Giter Site logo

brotli-php's Introduction

Build Status

Features

This library adds Brotli support to PHP (>= 7.1)

function brotli_compress(string $data, int $quality = 11): string

function brotli_uncompress(string $data): string

Installation

Library

$ composer require vdechenaux/brotli

You are almost done ! Read the next section to complete the setup.

Binary

This command will only install the PHP code, but a binary file is also needed. This binary is provided by 2 packages, depending of your environment:

  • Linux AMD64
$ composer require vdechenaux/brotli-bin-amd64
  • Linux i386
$ composer require vdechenaux/brotli-bin-i386

The binary will be automatically used by this library. You don't need to configure something after binary installation.

Using apt

You can use Brotli binary from apt if you are using:

  • Ubuntu >= xenial (16.04)
  • Debian >= stretch (9)
$ apt install brotli 

Using Homebrew

$ brew install brotli 

brotli-php's People

Contributors

vdechenaux avatar chapeupreto avatar tfink avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.