PHP code example of ffapb / ffa-jobs-settings

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

    

ffapb / ffa-jobs-settings example snippets



# e = new \FfaJobsSettings\JobsEmails("http://localhost:8000");
var_dump($je->jobsEmails("Treasury FFA017"));
var_dump($je->jobsEmails("BBG Price Recording - Lebanon"));
var_dump($je->getEmails("inexistant")); # throws exception

$je = new \FfaJobsSettings\JobsEmails("http://inexistant:8000");
var_dump($je->jobsEmails("Treasury FFA017")); # throws exception


$db = new \FfaJobsSettings\Db("http://localhost:8000");
var_dump($db->getConnectionSettings()); # shows credentials for databases the default "location"
var_dump($db->getConnectionSettings("Beirut")); # shows credentials for databases in Beirut

git clone http://.../ffa-jobs-settings-php
cd ffa-jobs-settings-php
composer install
vendor/bin/phpunit tests