chargily / chargily-pay
PHP Library for Chargily Pay V2
Installs: 1 000
Dependents: 1
Suggesters: 0
Security: 0
Stars: 11
Watchers: 3
Forks: 7
Open Issues: 1
Requires
- php: ^8.1
- guzzlehttp/guzzle: ^7.0
- illuminate/support: ^10.39|^11.0
- medboubazine/number_format: ^1.1
- nesbot/carbon: ^2.72|^3.0
- rakit/validation: ^1.4
Requires (Dev)
- phpunit/phpunit: ^10.5|^11.0
- symfony/var-dumper: ^6.4|^7.0
README
for Chargily Pay™ Gateway - V2.
Thank you for your interest in PHP Package of Chargily Pay™, an open source project by Chargily, a leading fintech company in Algeria specializing in payment solutions and e-commerce facilitating, this Package is providing the easiest and free way to integrate e-payment API through widespread payment methods in Algeria such as EDAHABIA (Algerie Post) and CIB (SATIM) into your PHP/Laravel projects.
This package is developed by Mohamed Boubazine (Medboubazine) and is open to contributions from developers like you.
Requirements
- PHP >= 8.1.10
Installation
- Via Composer (Recomended)
composer require chargily/chargily-pay
Getting Started
- Replace test by live if you are in production mode
- Replace public_key_here with your public key shown in the Chargily Pay dashboard in the developer section
- Replace secret_key_here with your secret key shown in the Chargily Pay dashboard in the developer section
use Chargily\ChargilyPay\Auth\Credentials; use Chargily\ChargilyPay\ChargilyPay; require "path-to-vendor/autoload.php"; $credentials = new Credentials([ "mode" => "test", "public" => "public_key_here", "secret" => "secret_key_here", ]); $chargily_pay = new ChargilyPay($credentials); $chargily_pay->balance()->get(), $chargily_pay->checkouts()->all(), $chargily_pay->customers()->all(), $chargily_pay->payment_links()->all(), $chargily_pay->prices()->all(), $chargily_pay->products()->all(), //validate and get Webhook details $chargily_pay->webhook()->get()
Documentation
Documentation For frameworks
About Chargily Pay™ packages
Chargily Pay™ packages/plugins are a collection of open source projects published by Chargily to facilitate the integration of our payment gateway into different programming languages and frameworks. Our goal is to empower developers and businesses by providing easy-to-use tools to seamlessly accept payments.
API Documentation
For detailed instructions on how to integrate with our API and utilize Chargily Pay™ in your projects, please refer to our API Documentation.
Developers Community
Join our developer community on Telegram to connect with fellow developers, ask questions, and stay updated on the latest news and developments related to Chargily Pay™ : Telegram Community
How to Contribute
We welcome contributions of all kinds, whether it's bug fixes, feature enhancements, documentation improvements, or new plugin/package developments. Here's how you can get started:
-
Fork the Repository: Click the "Fork" button in the top-right corner of this page to create your own copy of the repository.
-
Clone the Repository: Clone your forked repository to your local machine using the following command:
git clone https://github.com/Chargily/chargily-pay-php.git
-
Make Changes: Make your desired changes or additions to the codebase. Be sure to follow our coding standards and guidelines.
-
Test Your Changes: Test your changes thoroughly to ensure they work as expected.
-
Submit a Pull Request: Once you're satisfied with your changes, submit a pull request back to the main repository. Our team will review your contributions and provide feedback if needed.
Get in Touch
Have questions or need assistance? Join our developer community on Telegram and connect with fellow developers and our team.
We appreciate your interest in contributing to Chargily Pay™! Together, we can build something amazing.
Happy coding!