PHP code example of kjdev / bzip3

1. Go to this page and download the library: Download kjdev/bzip3 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 / bzip3 example snippets

 php
$compress = Bzip3\compress($data);
$var = Bzip3\uncompress($compress);
 php
Bzip3\comporess(string $data, int $block_size = 8): string|false
Bzip3\uncomporess(string $data): string|false
 php
Bzip3\compress(string $data, int $block_size = 8): string|false
 php
Bzip3\uncompress(string $data): string|false