Download the PHP package mitigoa/kra-php-sdk without Composer
On this page you can find all versions of the php package mitigoa/kra-php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download mitigoa/kra-php-sdk
More information about mitigoa/kra-php-sdk
Files in mitigoa/kra-php-sdk
Download mitigoa/kra-php-sdk
More information about mitigoa/kra-php-sdk
Files in mitigoa/kra-php-sdk
Vendor mitigoa
Package kra-php-sdk
Short Description KRA GavaConnect PHP SDK - Unofficial PHP client for Kenya Revenue Authority GavaConnect APIs
License MIT
Homepage https://github.com/Mitigoa/kra-php-sdk
Package kra-php-sdk
Short Description KRA GavaConnect PHP SDK - Unofficial PHP client for Kenya Revenue Authority GavaConnect APIs
License MIT
Homepage https://github.com/Mitigoa/kra-php-sdk
Please rate this library. Is it a good library?
Informations about the package kra-php-sdk
KRA GavaConnect PHP SDK (Unofficial)
Unofficial PHP SDK for Kenya Revenue Authority (KRA) GavaConnect APIs
Overview
The KRA GavaConnect PHP SDK is a comprehensive, PSR-compliant PHP library for interacting with the Kenya Revenue Authority's GavaConnect APIs. It provides a clean, type-safe interface for:
- PIN Validation
- Tax Compliance Certificate (TCC) Verification
- Taxpayer Obligations & Liabilities
- NIL Return Filing
- eTIMS Invoice Submission
- e-Slip Verification
- Excise License Checks
Features
- Framework-agnostic core - Zero Laravel/Symfony dependencies
- PSR compliance - PSR-4 autoloading, PSR-7 HTTP messages, PSR-18 HTTP client, PSR-6 caching
- Auto token management - OAuth2 client credentials with silent refresh
- Typed responses - Every API returns strongly-typed DTOs
- Granular exceptions -
AuthException,ApiException,RateLimitException - Offline testable - Full sandbox mode + Mockery-ready interfaces
- Plugin ecosystem - Laravel, WordPress, WooCommerce, Symfony, Filament
Requirements
- PHP 8.1+
- Composer
Installation
Quick Start
Configuration
Environment Variables
Error Handling
Testing
API Coverage
| API | Endpoint | Method |
|---|---|---|
| PIN Validator | /pin/validate |
GET |
| PIN by ID | /pin/check-by-id |
GET |
| TCC Checker | /tcc/validate |
GET |
| Taxpayer Obligations | /taxpayer/obligations |
GET |
| Taxpayer Liabilities | /taxpayer/liabilities |
GET |
| NIL Return | /returns/nil |
POST |
| e-Slip Verify | /eslip/verify |
GET |
| Excise License | /excise/check |
GET |
| eTIMS Invoice | /etims/invoice |
POST |
| eTIMS Stock IO | /etims/stock |
POST |
| eTIMS Purchase | /etims/purchase |
POST |
Documentation
License
MIT License - see LICENSE file.
Support
- Email: [email protected]
- GitHub Issues: https://github.com/kra-php/sdk/issues
Built for Kenya. Open to the world.
All versions of kra-php-sdk with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1
ext-curl Version *
ext-json Version *
ext-mbstring Version *
psr/http-client Version ^1.0
psr/http-message Version ^1.0 || ^2.0
psr/cache Version ^3.0
psr/log Version ^1.0 || ^2.0 || ^3.0
guzzlehttp/guzzle Version ^7.0
guzzlehttp/psr7 Version ^2.0
ext-curl Version *
ext-json Version *
ext-mbstring Version *
psr/http-client Version ^1.0
psr/http-message Version ^1.0 || ^2.0
psr/cache Version ^3.0
psr/log Version ^1.0 || ^2.0 || ^3.0
guzzlehttp/guzzle Version ^7.0
guzzlehttp/psr7 Version ^2.0
The package mitigoa/kra-php-sdk contains the following files
Loading the files please wait ...