kiriminaja / kiriminaja-php
PHP clients for KiriminAja API
Installs: 7 430
Dependents: 0
Suggesters: 0
Security: 0
Stars: 11
Watchers: 1
Forks: 3
Open Issues: 0
Requires
- php: >=8.0
- ext-json: *
- guzzlehttp/guzzle: >=6.0
- rakit/validation: ^1.4
Requires (Dev)
- mockery/mockery: dev-main
- phpunit/phpunit: ^9.5.4
This package is auto-updated.
Last update: 2025-05-11 08:03:22 UTC
README
This library is the abstraction of KiriminAja API for access from applications written with PHP.
Getting Started
Requirements
PHP 8.0 and later
Installation
Install kiriminaja-php
with composer by following command:
composer require kiriminaja/kiriminaja-php
or add it manually in your composer.json file.
Usage
Configure package with your account's secret key obtained from KiriminAja Document Assignment.
$mode = 'production' ? Mode::Production : Mode::Staging; KiriminAjaConfig::setMode($mode)::setApiTokenKey('YOUR_KEY');
You can read our test case for the examples https://github.com/kiriminaja/php/blob/main/tests/Services/Shipping/RequestPickupService/RequestPickupServiceSuccessTest.php
Contributing
For any requests, bugs, or comments, please open an issue or submit a pull request.
Installing Packages
Before you start to code, run this command to install all of the required packages. Make sure you have composer
installed in your computer
composer install
Tests
Running test suite:
vendor\bin\phpunit tests