Download the PHP package alimranahmed/bdlocation without Composer

On this page you can find all versions of the php package alimranahmed/bdlocation. 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 bdlocation

Build Status License Latest Stable Version

BDLocation

A PHP interface to access Locations of Bangladesh. The data in this project used and slightly modified from Bangladesh-geolocation

Features

  1. Can access name, bengali_name etc of divisions, districts, sub districts and unions of Bangladesh
  2. Zero configurations

Requirements

PHP >= 7

Installation

Execute the following command in the terminal while you are in the root directory of your PHP project:

composer require alimranahmed/bdlocation

That's it! you are ready to go!

Usages

Don't forget to use the BD class:

To get all divisions of Bangladesh as an array of Location object:

To get all districts of Bangladesh as an array of Location object:

To get all sub-districts/upazilas of Bangladesh as an array of Location object:

To get all unions of Bangladesh of Bangladesh as an array of Location object:

To get all the districts of division that start with 5 character chatt(Chattogram), we can use the following code. Same thing will work for sub-disctrict and union. But in case of sub-district and union we need to pass district and sub_district respectively.

To get the district that has name Brahmanbaria we can use the following code. Same thing will work for division, sub-district and union also. Insead of name we can pass short_name(first 3 letter of the location), bengali_name also.

To get all the districts that contains the letter rahman in it's name we can use the following code. Same thing will work for division, sub-district and union also. Insead of name we can pass short_name(first 3 letter of the location), bengali_name also.

Note: We have only = and like as operator here. No other operator will work here.

Wishlist

Contribution

Anyone is always welcome to contribute on the project. If you want to work with:

  1. Just create and issue(even if you want to fix the issue).
  2. After fixing any issue or adding any new feature just send a pull request
  3. I will be happy to add your code for the betterment of this project. Thanks.

Licence

MIT


All versions of bdlocation with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1
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 alimranahmed/bdlocation contains the following files

Loading the files please wait ....