david-kurniawan / jne-cities
Gets JNE City Autocomplete
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:package
Requires
- php: ^7.1.3
Requires (Dev)
- phpunit/phpunit: ^7.0
This package is auto-updated.
Last update: 2025-03-15 21:15:29 UTC
README
Installation
$ composer require david-kurniawan/jne-cities
Usage
use David\JneCities\Search; $q = 'bek'; $type = 'destination'; // destination | origin $response = (new Search())->show($q, $type); return $response;
Success Response
{ "code": 200, "msg": "success", "results": { "suggestions": [{ "value": "BEKASI", "code": "BKI10000" }] } }
Error Response
{ "code": 201, "msg": "min length is 3" }
License
MIT