PHP code example of jasonw4331 / libcustompack

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

    

jasonw4331 / libcustompack example snippets


use libCustomPack\libCustomPack;

libCustomPack::generatePackFromResources($plugin);
//OR
libCustomPack::generatePackFromPath($plugin, $MyFullFolderPath);

libCustomPack::registerResourcePack($resoucePackInstance);

libCustomPack::unregisterResourcePack($resoucePackInstance);

libCustomPack::generatePackFromResources($plugin, $packFolderName);
//OR
libCustomPack::generatePackFromPath($plugin, $MyFullFolderPath, $packFolderName);