Retrive the indian post office details based on pincode
bhavinjr/laravel-postal is a Laravel package for retrive the indian post office details based on pincode.
It currently has 0 GitHub stars and 294 downloads on Packagist (latest version 1.0).
Install it with composer require bhavinjr/laravel-postal.
Discover more Laravel packages by bhavinjr
or browse all Laravel packages to compare alternatives.
Last updated
A simple postal to get details of Post Office by searching Postal PIN Code or Post Office Branch Name of India for Laravel 5.|6.|7.|8.
First, you'll need to install the package via Composer:
$ composer require bhavinjr/laravel-postal
If you are don't use using Laravel 5.5.* Then, update config/app.php by adding an entry for the service provider.
'providers' => [
// ...
Bhavinjr\Postal\Providers\PostalServiceProvider::class,
];
'aliases' => [
//...
"Postal": "Bhavinjr\Postal\Facades\Postal",
];
The package gives you the following methods to use:
Get Post Office(s) details search by Postal PIN Code
use Postal;
Postal::findByCode(380001);
Get Post Office(s) details search by Post Office branch name
use Postal;
Postal::findByBranch('Ahmedabad');