Download the PHP package renderbit-technologies/indos-checker-api without Composer
On this page you can find all versions of the php package renderbit-technologies/indos-checker-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download renderbit-technologies/indos-checker-api
More information about renderbit-technologies/indos-checker-api
Files in renderbit-technologies/indos-checker-api
Package indos-checker-api
Short Description Check seafarer details from Indos number
License MIT
Informations about the package indos-checker-api
Indos Checker API
A PHP library to check seafarer details from INDOS numbers as issued by the Directorate General of Shipping, Mumbai, India. Queries the DGS eSamudra server and returns validated INDOS records.
Requirements
- PHP >= 8.1
- Composer
Dependencies
| Package | Purpose |
|---|---|
guzzlehttp/guzzle ^7.4 |
HTTP client for API requests |
symfony/dom-crawler ^6.0 |
HTML response parsing |
symfony/css-selector ^6.0 |
CSS selector support for DomCrawler |
Installation
Usage
Check if an INDOS number is valid
Retrieve seafarer details
The returned array contains up to 10 fields: Name, Date of Birth, INDoS No., Passport No., Passport Issue Date, Passport Valid To, CDC No., CDC Issue Date, CDC Valid To, and CDC Issue Place. An empty array is returned when no record is found.
Exception handling
IndosCheckerExceptionwraps all Guzzle/HTTP errors (timeouts, connection failures, server errors).\InvalidArgumentExceptionis thrown for invalid input: empty or whitespace-only INDOS numbers, or DOB not inDD/MM/YYYYformat.
Custom HTTP client
Pass a configured GuzzleHttp\Client to override timeouts, proxies, etc.:
Custom endpoint
Override the default DGS eSamudra endpoint (useful for testing):
Project Structure
Testing
CI
GitHub Actions runs the PHPUnit suite on every push and pull request to master, across PHP 8.1, 8.2, 8.3, and 8.4.
License
MIT © Renderbit Technologies
All versions of indos-checker-api with dependencies
symfony/dom-crawler Version ^6.0
symfony/css-selector Version ^6.0
guzzlehttp/guzzle Version ^7.4