2017 © Pedro Peláez
 

library ffa-jobs-settings

PHP function to access ffa-jobs-settings API

image

ffapb/ffa-jobs-settings

PHP function to access ffa-jobs-settings API

  • Thursday, September 14, 2017
  • by shadiakiki1986
  • Repository
  • 1 Watchers
  • 0 Stars
  • 51 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 6 Versions
  • 89 % Grown

The README.md

ffa-jobs-emails-php

PHP library to access ffa-jobs-settings API, (*1)

packagist, (*2)

Installation

composer require ffapb/ffa-jobs-settings-php, (*3)

Usage

To get list of emails of a particular job, (*4)

require_once 'vendor/autoload.php';
# require_once 'src/JobsSettings.php';
$je = 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

To get database credentials (IP, port, username, password, database name), (*5)

$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

Testing

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

The Versions

14/09 2017

dev-master

9999999-dev https://github.com/ffapb/ffa-jobs-settings-php

PHP function to access ffa-jobs-settings API

  Sources   Download

CC0 1.0 Universal

The Requires

  • php >=5.3.5
  • ext-curl *

 

The Development Requires

by Minerva Moawad

06/09 2017

0.1.0

0.1.0.0 https://github.com/ffapb/ffa-jobs-settings-php

PHP function to access ffa-jobs-settings API

  Sources   Download

CC0 1.0 Universal

The Requires

  • php >=5.3.5
  • ext-curl *

 

The Development Requires

by Minerva Moawad

31/07 2017

0.0.3.1

0.0.3.1 https://github.com/minerva22/ffa-jobs-emails-php

PHP function to access ffa-jobs-emails API

  Sources   Download

CC0 1.0 Universal

The Requires

  • php >=5.3.5
  • ext-curl *

 

by Minerva Moawad

31/07 2017

0.0.3

0.0.3.0 https://github.com/minerva22/ffa-jobs-emails-php

PHP function to access ffa-jobs-emails API

  Sources   Download

CC0 1.0 Universal

The Requires

  • php >=5.3.5
  • ext-curl *

 

by Minerva Moawad

12/07 2017

0.0.2

0.0.2.0 https://github.com/minerva22/ffa-jobs-emails-php

PHP function to access ffa-jobs-emails API

  Sources   Download

CC0 1.0 Universal

The Requires

  • php >=5.3.5
  • ext-curl *

 

by Minerva Moawad

12/07 2017

0.0.1

0.0.1.0 https://github.com/minerva22/ffa-jobs-emails-php

PHP function to access ffa-jobs-emails API

  Sources   Download

CC0 1.0 Universal

The Requires

  • php >=5.3.5
  • ext-curl *

 

by Minerva Moawad