8000 GitHub - jadb/php-cdyne: PHP wrapper for CDYNE APIs.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

jadb/php-cdyne

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Wrapper for CDYNE APIs

Looking to use CDYNE Data Quality or Communication APIs from a PHP application you've built?

Installing

You only need to clone this repository somewhere in your application's libraries or vendors folder.

$ git clone https://github.com/jadb/php-cdyne/php-cdyne.git

Using

Here is an example of using CdynePav::verifyAddress():

<?php
include 'path/to/php-cdyne/DataQuality/CdynePav.php';
$Pav = new CdynePav('your-license-key');
$data = array(
  'FirmOrRecipient' => 'CDYNE Corporation',
  'PrimaryAddressLine' => '505 Independence Pkwy Ste 300',
  'SecondaryAddressLine' => '',
  'Urbanization' => '',
  'CityName' => 'Chesapeake',
  'State' => 'Virginia',
  'ZipCode' => '23320'
);
$result = $Pav->verifyAddress($data);
print_r($result);

Testing

Tests require PHPUnit 3.6.

$ phpunit --verbose /path/to/php-cdyne/Tests/Cdyne
$ phpunit --verbose /path/to/php-cdyne/Tests/DataQuality/CdynePav

You'll notice skipped tests. This is because they require a license key which you can define in Tests/constants.php like so:

<?php
define('CDYNE_PAV_KEY', '000000000-000000-0000000000');

All constants use capital letters, start with 'CDYNE' and define the service associated with the key by its shortcode (i.e. PN for Phone Notify!).

Credits

Patches & Features

  • Fork
  • Mod, fix
  • Test - this is important, so it's not unintentionally broken
  • Commit - do not mess with license, todo, version, etc. (if you do change any, make them into commits of their own that I can ignore when I pull)
  • Pull request - bonus point for topic branches

Bugs & Feedback

https://github.com/jadb/php-cdyne/issues

About

PHP wrapper for CDYNE APIs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0