PHP code example of mitmelon / pangea

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

    

mitmelon / pangea example snippets


composer 



// Initialize library class
$pangea = new Pangea($token, $service, $csp, $region);

//Registers all services or select the one you need
$pangea->registerService(
    $pangea->available_service() // this registers all services
    //or register like this 'vault', 'ip-intel' for single or more services
    //You can printout $pangea->available_service() on a separate line to see all the supported services
); 

print_r($pangea->generateKey('symmetric_key', 'AES-GCM-256'));