2017 © Pedro Peláez
 

library address-validator

Address validator that support multiple validation 3rd-parties.

image

dsposito/address-validator

Address validator that support multiple validation 3rd-parties.

  • Friday, July 6, 2018
  • by dsposito
  • Repository
  • 1 Watchers
  • 1 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Address Validator

Build Status Coverage Status Latest Stable Version, (*1)

Overview

An address validator adapter that supports a variety of third-party validators., (*2)

Installation

Run the following composer command to add the package to your project:, (*3)

composer require dsposito/address-validator

Alternatively, add "dsposito/address-validator": "^0.1" to your composer.json file., (*4)

Usage

$provider = Provider::instance(
    'usps',
    [
        'endpoint' => 'http://production.shippingapis.com/ShippingAPI.dll',
        'user_id' => 'SK297O2B7BF221',
    ]
);

$address = $provider->validate(new Address([
    'name' => 'Elon Musk',
    'street1' => '3500 Deer Creek Road',
    'city' => 'Palo Alto',
    'state' => 'CA',
    'zip' => '94304',
    'country' => 'US',
]));

Tests

To run the test suite, run the following commands from the root directory:, (*5)

composer install
vendor/bin/phpunit -d usps_user_id=YOUR_USPS_ID -d easypost_api_key=YOUR_EASYPOST_KEY

Note: Valid API keys are required when running the integration tests., (*6)

The Versions

06/07 2018

dev-master

9999999-dev https://github.org/dsposito/address-validator

Address validator that support multiple validation 3rd-parties.

  Sources   Download

MIT

The Requires

 

The Development Requires

php address usps easypost address validator

24/03 2017

v0.2.0

0.2.0.0 https://github.org/dsposito/address-validator

Address validator that support multiple validation 3rd-parties.

  Sources   Download

MIT

The Requires

 

The Development Requires

php address usps easypost address validator

08/03 2017

v0.1.1

0.1.1.0 https://github.org/dsposito/address-validator

Address validator that support multiple validation 3rd-parties.

  Sources   Download

MIT

The Requires

 

The Development Requires

php address usps easypost address validator

08/03 2017

v0.1.0

0.1.0.0 https://github.org/dsposito/address-validator

Address validator that support multiple validation 3rd-parties.

  Sources   Download

MIT

The Requires

 

The Development Requires

php address usps easypost address validator