PHP code example of uenoryo / php-awsps

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

    

uenoryo / php-awsps example snippets




enoryo\Awsps\Config;
use Uenoryo\Awsps\Client;

$config = Config::new();
$config->path = '/Test/Env';
// $config->exportType = 'json';

$client = Client::new($config);
$result = $client->fetch()->export();
print_r($result);

/* [出力]
*
* DATABASENAME=127.0.0.1
*
* USERNAME=root
*
* PASSWORD=12ab34CD
*/