Skip to content

Commit a30df99

Browse files
authored
Merge pull request #20 from gavinjackson/psr-4-refactor
Refactored to support PSR 4 autoloading
2 parents d553de8 + 30fbcdc commit a30df99

13 files changed

+1881
-214
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/vendor/
2+
# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control
3+
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
4+
# composer.lock
5+
*.log

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
language: php
2-
php:
3-
- 5.6
4-
- 7.2
2+
php:
53
- 7.3
4+
- 7.4
5+
install: composer update
66
script: phpunit test/*.php
77
dist: trusty

README.markdown

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PHP API Library for Fat Zebra
22
==============================
33

4-
Release 1.2.1 for API version 1.0
4+
Release 1.2.2 for API version 1.0
55

66
A PHP library for the [Fat Zebra](https://www.fatzebra.com.au) Online Payment Gateway (for Australian Merchants)
77
Now supports recurring billing (subscriptions, plans, customers)
@@ -31,7 +31,7 @@ Usage
3131
```php
3232
<?php
3333
session_start();
34-
include_once("../FatZebra.class.php");
34+
include "vendor/autoload.php";
3535
define("USERNAME", "havanaco");
3636
define("TOKEN", "673bb3aaca9a1961bfa3c61917594dc7c4a00b71");
3737
define("TEST_MODE", true);
@@ -54,7 +54,7 @@ Usage
5454
```php
5555
<?php
5656
session_start();
57-
include_once("../FatZebra.class.php");
57+
include "vendor/autoload.php";
5858
define("USERNAME", "havanaco");
5959
define("TOKEN", "673bb3aaca9a1961bfa3c61917594dc7c4a00b71");
6060
define("TEST_MODE", true);

composer.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
11
{
22
"name": "fatzebra/fatzebra-php",
3-
"version": "1.2.1",
3+
"version": "1.2.2",
44
"repositories": [
55
{
66
"type": "vcs",
77
"url": "https://github.com/fatzebra/PHP-Library"
88
}
9-
]
9+
],
10+
"description": "Fat Zebra Australian online payment gateway library",
11+
"require": {
12+
"php": ">=5.3.0"
13+
},
14+
"autoload": {
15+
"psr-4": {
16+
"FatZebra\\": "src"
17+
}
18+
}
1019
}

0 commit comments

Comments
 (0)