Skip to content

Snappy Extension for PHP

License

Unknown, Unknown licenses found

Licenses found

Unknown
LICENSE
Unknown
COPYING.snappy
Notifications You must be signed in to change notification settings

Dzuii/php-ext-snappy

 
 

Repository files navigation

Snappy Extension for PHP

Build Status

This extension allows Snappy.

Documentation for Snappy can be found at » http://google.github.io/snappy/.

Build

% phpize
% ./configure
% make
% make install

Configration

snappy.ini:

extension=snappy.so

Function : snappy_compress

string snappy_compress( string $data )

parameters

data:

The data to compress.

return values

The compressed string or FALSE if an error occurred.

Function : snappy_uncompress

string snappy_uncompress( string $data )

parameters

name:

The data compressed by snappy_gzcompress(). 

return values

The original uncompressed data or FALSE on error.

Example

$compressed = snappy_compress('Compress me');

$uncompressed = snappy_uncompress($compressed);

echo $uncompressed;

About

Snappy Extension for PHP

Resources

License

Unknown, Unknown licenses found

Licenses found

Unknown
LICENSE
Unknown
COPYING.snappy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 92.6%
  • C 4.7%
  • PHP 2.6%
  • Shell 0.1%