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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package barikoiapis

Barikoi Laravel Package

A comprehensive Laravel package for integrating Barikoi API - Bangladesh's leading location data provider.

Features


Installation

Configuration

  1. Publish the configuration file:

  2. 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)

BarikoiApiException - API errors (401, 404, 429, 500, etc.)

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


Support

For issues or questions:


All versions of barikoiapis with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1|^8.2|^8.3
illuminate/support Version ^10.0|^11.0
illuminate/http Version ^10.0|^11.0
guzzlehttp/guzzle Version ^7.5
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package barikoi/barikoiapis contains the following files

Loading the files please wait ...