Skip to content
This repository was archived by the owner on Sep 3, 2021. It is now read-only.

Commit 06480dd

Browse files
committed
#31 - fixed demos not working
1 parent 239ddc2 commit 06480dd

12 files changed

+26
-1
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
.idea/
2-
.DS_Store
2+
.DS_Store
3+
composer.lock
4+
vendor/

demos/address_verify.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
require_once('autoload.php');
4+
35
// Initiate and set the username provided from usps
46
$verify = new \USPS\AddressVerify('xxxx');
57

demos/autoload.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?php
2+
3+
require_once('../vendor/autoload.php');

demos/citystatelookup.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
require_once('autoload.php');
4+
35
// Initiate and set the username provided from usps
46
$verify = new \USPS\CityStateLookup('xxxx');
57

demos/domestic_rate.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
require_once('autoload.php');
4+
35
use USPS\RatePackage;
46

57
// Initiate and set the username provided from usps

demos/firstclassservicestandard.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
require_once('autoload.php');
4+
35
// Initiate and set the username provided from usps.
46
$delivery = new \USPS\FirstClassServiceStandards('xxxx');
57

demos/international_express_label.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
require_once('autoload.php');
4+
35
// Initiate and set the username provided from usps
46
$label = new \USPS\InternationalLabel('xxxx');
57

demos/open_label.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
require_once('autoload.php');
4+
35
// Initiate and set the username provided from usps
46
$label = new \USPS\OpenDistributeLabel('xxxx');
57

demos/priority_label.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
require_once('autoload.php');
4+
35
// Initiate and set the username provided from usps
46
$label = new \USPS\PriorityLabel('xxxx');
57

demos/servicedeliverycalculator.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
require_once('autoload.php');
4+
35
// Initiate and set the username provided from usps
46
$delivery = new \USPS\ServiceDeliveryCalculator('xxxx');
57

0 commit comments

Comments
 (0)