Download the PHP package alphaolomi/php-cellulant without Composer
On this page you can find all versions of the php package alphaolomi/php-cellulant. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download alphaolomi/php-cellulant
More information about alphaolomi/php-cellulant
Files in alphaolomi/php-cellulant
Package php-cellulant
Short Description Cellulant PHP SDK
License MIT
Homepage https://github.com/alphaolomi/php-cellulant
Informations about the package php-cellulant
Cellulant for PHP
Cellulant for PHP is a PHP client for the Tingg API a product of Cellulant.
Features
The package is centered around Custom Checkout APIs provided by Tingg. It provides the following features:
- Checkout Request
- Charge Request
- Combined Checkout and Charge Request
- Acknowledgement Request
- Query Status
- Refund Request
- OTP Request and Validation
Installation
Pre-requisites
- PHP >= 8.0
- PHP
cURL
extension - Composer Package Manager
- Cellulant API Credentials, obtain them from Tingg Dev Portal
Preferable way to install is with Composer.
You can install the package via Composer:
Usage
Refer to Features Test Cases for more usage examples.
Refer to Tingg API documentation for the required parameters reference for each method.
Notes
-
Calling
authenticate()
is not automatic, you have to call it manually before making any request. -
Calling
authenticate()
will keep the accessToken in memory for subsequent requests. -
Calling
authenticate()
only supports theclient_credentials
grant type. And will return an array with the following keys:token_type
,expires_in
,access_token
,refresh_token
. -
Error handling is not yet implemented, so you have to handle errors manually.
-
Methods accept an array of parameters, which are then converted to JSON before making the request. Refer to Tingg API documentation for the required parameters.
-
Methods array parameters are NOT validated, so you have to make sure you pass the correct parameters. With exception of
construct()
method which validates the required parameters. -
Method names are the same as the Tingg API endpoints.
-
The package uses Guzzle to make HTTP requests. Version ^7.0 is used.
- Function Return Types are not implemented yet, so you have to manually cast the return values to the expected type.
Testing
Tests are written with Pest. To run the tests:
Support the development
Do you like this project? Support it by Star this repository ⭐️ and follow me on Twitter for more updates 👍.
Changelog
Please see CHANGELOG for more information on what has changed recently.
Versioning
This project follows RomVer.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
If you discover a security vulnerability within Laravel, please send an e-mail to Alpha Olomi via [email protected]. All security vulnerabilities will be promptly addressed.
Credits
- Alpha Olomi
- All Contributors
Reaching Me
If you are having issues with this package, feel free to contact me on Twitter.
License
The MIT License (MIT). Please see License File for more information.