PHP code example of wapmorgan / cab-archive

1. Go to this page and download the library: Download wapmorgan/cab-archive 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/ */

    

wapmorgan / cab-archive example snippets


$cab = new CabArchive('123.cab');


var_dump($cab->getFileNames());

var_dump($cab->getFileData('README.md'));

array getFileNames()

object getFileData($filename)

string getFileContent($filename)

int|bool extract($outputDirectory, array $files = [])