Download the PHP package barikoi/barikoiapis without Composer
On this page you can find all versions of the php package barikoi/barikoiapis. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download barikoi/barikoiapis
More information about barikoi/barikoiapis
Files in barikoi/barikoiapis
Package barikoiapis
Short Description A comprehensive Laravel package for integrating Barikoi API - Bangladesh's leading location data provider
License MIT
Informations about the package barikoiapis
Barikoi Laravel Package
A comprehensive Laravel package for integrating Barikoi API - Bangladesh's leading location data provider.
Features
- 🗺️ Location Services: Geocoding, Reverse Geocoding, Autocomplete, Place Search, Place Details, Nearby Places, Check nearby location within a specified radius, Snap to Road
- 🛣️ Routing: Calculate Detailed Route and Route Overview
- ⚠️ Error Handling: User-friendly exceptions with actionable error messages
Installation
Configuration
-
Publish the configuration file:
- Add your Barikoi API credentials to
.env:
Get your API key from Barikoi.
Quick Start
Documentation
📚 API Documentation
Complete documentation with parameters, conditions, and error handling for each API:
| API Service | Documentation |
|---|---|
| Location Services | docs/location-api.md |
| - Reverse Geocoding | Convert coordinates to address |
| - Geocoding (Rupantor) | Convert address to coordinates |
| - Autocomplete | Place suggestions |
| - Search Place | Text-based place search |
| - Place Details | Get Place Details |
| - Nearby Search | Find places within radius |
| - Check Nearby | Check nearby location within a specified radius |
| - Snap to Road | Correct GPS coordinates |
| Routing Services | docs/routing-api.md |
| - Route Overview | Simple route calculation |
| - Detailed Route | Turn-by-turn route with options |
Usage
Using Facade (Recommended)
Error Handling
The package provides comprehensive error handling with user-friendly messages.
Exception Types
BarikoiValidationException - Validation errors (400)
- Invalid coordinates
- Missing parameters
- Invalid input values
BarikoiApiException - API errors (401, 404, 429, 500, etc.)
- 401: Invalid API key
- 404: Resource not found
- 429: Rate limit exceeded
- 500: Server error
Basic Usage
Error Messages
| Code | Message |
|---|---|
| 400 | Validation Error: Invalid coordinates. Please check your input parameters. |
| 401 | Authentication Failed: Invalid API key. Please verify your API key is correct. |
| 404 | Not Found: Resource not found. The requested resource or endpoint does not exist. |
| 429 | Rate Limit Exceeded: Too many requests. Please reduce the number of requests... |
| 500 | Server Error: Internal Server Error. The Barikoi API is experiencing issues... |
Getting Error Details
See individual API documentation for specific error conditions and solutions.
Examples
Example 1: Get Address from GPS
Example 2: Calculate Route
API Reference
For detailed Barikoi API documentation, visit Barikoi API Documentation.
Changelog
See CHANGELOG.md for version history.
License
The MIT License (MIT). See License File for more information.
Credits
- Barikoi Technologies Limited
- Package developed for easy Laravel integration
Support
For issues or questions:
- Create an issue on GitHub
- Check the detailed API documentation in
docs/folder - Contact [email protected] for any support
All versions of barikoiapis with dependencies
illuminate/support Version ^10.0|^11.0
illuminate/http Version ^10.0|^11.0
guzzlehttp/guzzle Version ^7.5