https://github.com/optimoapps/jolo-api
Laravel 5 Package for Jolo API(Corporate Money Transfer)
https://github.com/optimoapps/jolo-api
jolo-api jolosoft laravel laravel5-package money-transfer
Last synced: 7 months ago
JSON representation
Laravel 5 Package for Jolo API(Corporate Money Transfer)
- Host: GitHub
- URL: https://github.com/optimoapps/jolo-api
- Owner: OptimoApps
- License: mit
- Created: 2019-01-25T16:25:49.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-05-23T13:11:44.000Z (over 5 years ago)
- Last Synced: 2025-01-21T05:27:02.087Z (about 1 year ago)
- Topics: jolo-api, jolosoft, laravel, laravel5-package, money-transfer
- Language: PHP
- Homepage: https://www.optimoapps.com/
- Size: 55.7 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
---
#### Laravel 5 Package for Jolo Api(unofficial)

[](https://github.com/OptimoApps/laravel-joloapi/blob/master/LICENSE.md)
[](https://packagist.org/packages/optimoapps/jolo-api)
[](https://packagist.org/packages/optimoapps/jolo-api)

---
## Installation
This package can be installed through Composer.
composer require optimoapps/jolo-api
In Laravel 5.5 and above the package will autoregister the service provider.
Publish the config file of this package with this command:
php artisan vendor:publish --provider="OptimoApps\JoloApi\JoloApiServiceProvider"
The following config file will be published in config/jolo-api.php
return [
'key' => '', //Provide your api key
'mode' => 0 //Change 1 for live
];
## Usage
use JoloApi;
JoloApi::checkBalance()->toArray();
Convert to Array
JoloApi::checkBalance()->toArray();
Or if Json Result just call toJson()
JoloApi::checkBalance()->toJson();
###### Available Class Methods
Agent Signup
use JoloApi;
$params = [
'service'=> 12342233444, //Mobile no
'name'=> 'name', //name of an agent
'address'=> 'XXXXXX', //Address of an agent
'email'=> 'info@optimoapps.com' //email id of an corporate agent
];
$result = JoloApi::agentSignUp($params)->toArray();
For Transfer Money
use JoloApi;
$params = [
'service'=> 12342233444, //Mobile no
'beneficiaryid'=> 'name', //unique beneficiary id
'orderid'=> 'XXXXXX', //unique order generated by your script
'amount'=> 300,
'remarks' => 'any text'
];
$result = JoloApi::transferMoney($params)->toArray()
For more details ,Please check [JoloSoft doc](https://jolosoft.com/docs.php)
## Testing
Run the tests with:
vendor/bin/phpunit
## Security
If you discover any security related issues, please email info@optimoapps.com instead of using the issue tracker.
## License
The MIT License (MIT). Please see [License File](https://github.com/OptimoApps/laravel-joloapi/blob/master/LICENSE.md) for more information.