Skip to content

taizyeris/php-xz

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-xz

PHP Extension providing xz (LZMA2) compression/decompression via PHP streams.

Installation

To install as module, perform the following steps:

$> cd /path/to/php-5.4.12/ext

$> git clone https://github.com/payden/php-xz xz

$> cd xz && phpize && ./configure && make && sudo make install

Add 'extension = xz.so' to your php.ini.

Basic usage:

<?php
$fh = xzopen("/tmp/test.xz", "w");
xzwrite($fh, "Data you would like compressed and written.\n");
xzclose($fh);
$fh = xzopen("/tmp/test.xz", "r");
xzpassthru($fh);
xzclose($fh);
?>

About

PHP Extension providing xz (LZMA2) compression/decompression via PHP streams.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published