PHP code example of tutv95 / wp-package-parser

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

    

tutv95 / wp-package-parser example snippets



$package = new Max_WP_Package('/var/path/plugin.zip');
print_r($package->get_metadata());


$package = new Max_WP_Package('/var/path/theme.zip');
print_r($package->get_metadata());