PHP code example of renventura / wp-package-parser

1. Go to this page and download the library: Download renventura/wp-package-parser 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/ */

    

renventura / wp-package-parser example snippets



$package = new RenVentura\WPPackageParser\WPPackage('/var/path/plugin.zip');
print_r($package->getMetaData());


$package = new RenVentura\WPPackageParser\WPPackage('/var/path/theme.zip');
print_r($package->getMetaData());