Download the PHP package alma/alma-php-client without Composer
On this page you can find all versions of the php package alma/alma-php-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download alma/alma-php-client
More information about alma/alma-php-client
Files in alma/alma-php-client
Package alma-php-client
Short Description PHP API client for the Alma payments API
License MIT
Informations about the package alma-php-client
Alma PHP API client
This is the official PHP API client for Alma.
This PHP API Client is being used in production on thousands of e-commerce websites and provides the necessary endpoints to build a full-fledge integration. It does not, however, implement the full Alma API as documented here yet. If you find yourself needing to use some endpoints that are not yet implemented, feel free to reach out! (or even better, submit a PR :))
Installation
The Alma PHP API Client library is tested against all recently supported PHP versions. A modern, supported PHP version is highly recommended.
Composer
You would normally install this package via Composer:
Without Composer
- Head over to the releases and grab the
alma-php-client.zip
file of the latest published library version. - Unzip the library into your vendors directory.
-
Require the included Composer's autoload file:
- You should then be able to use Alma as if it was installed with Composer.
Typical usage
An example of using the API client. (check API documentation for further information)
1. instanciate client in test mode
2. check eligibility
3. check available fee plans and build payment form
You can prefer use eligibilities to do this work but this part of code allow you to get more familiar with feePlans definitions.
4. build a payment plan
5. create a payment and redirecting a customer to the payment page
6. receive notification about payment validation by IPN
(can be given on payment creation or statically defined in your Alma Dashboard)
7. retrieve payment information and display status
License
Alma PHP Client is distributed under the MIT license.
All versions of alma-php-client with dependencies
psr/log Version ^1 || ^2 || ^3
ext-curl Version *
ext-json Version *
ext-simplexml Version *
ext-iconv Version *