Skip to content

Commit 35b94e0

Browse files
committed
Launch
0 parents  commit 35b94e0

17 files changed

Lines changed: 3075 additions & 0 deletions

.gitignore

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
vendor/*
2+
composer.phar
3+
composer.lock
4+
coverage
5+
package.xml
6+
*.tgz
7+
*.iml
8+
docs
9+
.phpintel/
10+
tests/.phpunit.result.cache
11+
12+
# You should be keeping these in a global gitignore, see for example
13+
# https://help.github.com/articles/ignoring-files#global-gitignore
14+
.DS_Store
15+
.idea
16+
17+
nbproject
18+
19+
# This is used by the documentation generator
20+
venv

LICENSE.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
MIT License
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# reloadly-php
2+
3+
## Documentation
4+
5+
The documentation for the Reloadly API can be found [here][apidocs].
6+
7+
The PHP library documentation can be found [here][libdocs].
8+
9+
## Versions
10+
11+
`reloadly-php` uses a modified version of [Semantic Versioning](https://semver.org) for all changes.
12+
13+
### Supported PHP Versions
14+
15+
This library supports the following PHP implementations:
16+
17+
* PHP 7.2
18+
* PHP 7.3
19+
* PHP 7.4
20+
21+
## Installation
22+
23+
You can install **reloadly-php** via composer or by downloading the source.
24+
25+
### Via Composer:
26+
27+
**reloadly-php** is available on Packagist as the
28+
[`daibe/reloadly-php`](https://packagist.org/packages/daibe/reloadly-php) package:
29+
30+
```
31+
composer require daibe/reloadly-php
32+
```
33+
34+
## Quickstart
35+
36+
### Check balance
37+
38+
```php
39+
// Check your account's balance using Reloadly's REST API and PHP
40+
<?php
41+
$client_id = "ACXXXXXX"; // Your developer client secret from www.reloadly.com/dashboard
42+
$client_secret = "YYYYYY"; // Your developer client password from www.reloadly.com/dashboard
43+
44+
$client = new ReloadlyPHP\Client($client_id, $client_secret);
45+
$balance = $client->getBalance();
46+
47+
print $balance->getBalance();
48+
```
49+
50+
51+
[apidocs]: https://developers.reloadly.com/
52+
[libdocs]: https://daibe.github.io/reloadly-php

composer.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"name": "daibe/reloadly-php",
3+
"description": "A PHP library for communicating with the Reloadly API.",
4+
"license": "MIT",
5+
"keywords": ["reloadly", "rest", "airtime", "api", "topup", "web service"],
6+
"homepage": "http://github.com/daibe/reloadly-php",
7+
"type": "library",
8+
"require": {
9+
"php": "^7.2.5",
10+
"guzzlehttp/guzzle": "^6.3",
11+
"ext-json": "*"
12+
},
13+
"authors": [
14+
{
15+
"name": "Daibe",
16+
"email": "daibe@tutanota.com"
17+
}
18+
],
19+
"autoload": {
20+
"psr-4": {
21+
"ReloadlyPHP\\": "src/"
22+
}
23+
},
24+
"minimum-stability": "dev"
25+
}

0 commit comments

Comments
 (0)