PHP code example of kjdev / snappy
1. Go to this page and download the library: Download kjdev/snappy library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
kjdev / snappy example snippets
$compressed = snappy_compress('Compress me');
$uncompressed = snappy_uncompress($compressed);
echo $uncompressed;
shell
git clone --recursive --depth=1 https://github.com/kjdev/php-ext-snappy.git
cd php-ext-snappy
phpize
./configure
make
make install