Download the PHP package kjdev/zstd without Composer

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

Zstd Extension for PHP

Linux Windows

This extension allows Zstandard.

Documentation for Zstandard can be found at » https://github.com/facebook/zstd.

Build from sources

To use the system library

minimum system libzstd library version to 1.4.0

Install from pecl:

Distribution binary packages

Fedora

Fedora users can install the » php-zstd package from official repository.

CentOS / RHEL

CentOS / RHEL (and other clones) users can install the » php-zstd package from » EPEL repository.

Other RPM packages of this extension, for other PHP versions, are available in » Remi's RPM repository.

Configration

php.ini:

Output handler option

Name Default Changeable
zstd.output_compression 0 PHP_INI_ALL
zstd.output_compression_level -1 PHP_INI_ALL
zstd.output_compression_dict "" PHP_INI_ALL

Constant

Name Description
ZSTD_COMPRESS_LEVEL_MIN Minimal compress level value
ZSTD_COMPRESS_LEVEL_MAX Maximal compress level value
ZSTD_COMPRESS_LEVEL_DEFAULT Default compress level value
LIBZSTD_VERSION_NUMBER libzstd version number
LIBZSTD_VERSION_STRING libzstd version string

Function

zstd_compress — Zstandard compression

Description

string zstd_compress ( string $data [, int $level = 3 ] )

Zstandard compression.

Parameters

Return Values

Returns the compressed data or FALSE if an error occurred.

zstd_uncompress — Zstandard decompression

Description

string zstd_uncompress ( string $data )

Zstandard decompression.

Alias: zstd_decompress

Parameters

Return Values

Returns the decompressed data or FALSE if an error occurred.

zstd_compress_dict — Zstandard compression using a digested dictionary

Description

string zstd_compress_dict ( string $data , string $dict [, int $level = 3 ])

Zstandard compression using a digested dictionary.

Alias: zstd_compress_usingcdict

Parameters

Return Values

Returns the compressed data or FALSE if an error occurred.

zstd_uncompress_dict — Zstandard decompression using a digested dictionary

Description

string zstd_uncompress_dict ( string $data , string $dict )

Zstandard decompression using a digested dictionary.

Alias: zstd_decompress_dict, zstd_uncompress_usingcdict, zstd_decompress_usingcdict

Parameters

Return Values

Returns the decompressed data or FALSE if an error occurred.

zstd_compress_init — Initialize an incremental compress context

Description

Zstd\Compress\Context zstd_compress_init ( [ int $level = ZSTD_COMPRESS_LEVEL_DEFAULT ] )

Initialize an incremental compress context

Parameters

Return Values

Returns a zstd context instance on success, or FALSE on failure

zstd_compress_add — Incrementally compress data

Description

string zstd_compress_add ( Zstd\Compress\Context $context, string $data [, bool $end = false ] )

Incrementally compress data

Parameters

Return Values

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

zstd_uncompress_init — Initialize an incremental uncompress context

Description

Zstd\UnCompress\Context zstd_uncompress_init ( void )

Initialize an incremental uncompress context

Return Values

Returns a zstd context instance on success, or FALSE on failure

zstd_uncompress_add — Incrementally uncompress data

Description

string zstd_uncompress_add ( Zstd\UnCompress\Context $context, string $data )

Incrementally uncompress data

Parameters

Return Values

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

Namespace

zstd_compress, zstd_uncompress, zstd_compress_dict, zstd_uncompress_dict, zstd_compress_init, zstd_compress_add, zstd_uncompress_init and zstd_uncompress_add function aliases.

Streams

Zstd compression and decompression are available using the compress.zstd:// stream prefix.

Output handler

"Accept-Encoding: zstd" must be specified.

Examples


All versions of zstd 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/zstd contains the following files

Loading the files please wait ....