Download the PHP package dev-giri/pin-india without Composer

On this page you can find all versions of the php package dev-giri/pin-india. 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 pin-india

PinIndia

A Laravel package for managing and querying Indian post office data. PinIndia provides a comprehensive solution for handling postal addresses, location-based services, and geographic data across India. With over 150,000+ post offices indexed, this package enables developers to build robust location-aware applications with minimal effort.

Features

Installation

1. Require the package via Composer

2. Add API key to your .env file

You can obtain an API key from data.gov.in by registering for an account and requesting API access. This key is required for the initial data download during installation.

3. Install the package

This command will:

The installation process may take several minutes as it downloads and processes the complete Indian postal database.

Configuration

You can publish the configuration file manually:

Available configuration options in config/pinindia.php:

Usage

Using the Facade

The package provides a simple facade for common postal queries:

State and District Autocomplete

Implement intelligent address autocomplete with real-time suggestions:

Cascading Dropdowns for Address Selection

Create intuitive address forms with dependent dropdowns:

Response Format

All methods return a collection of PostOfficeResource objects with the following structure:

Use Cases

1. Find Address by User's Current Location

Retrieve the nearest post office details based on the user's current GPS coordinates:

2. Address Autocomplete for Forms

Implement an address autocomplete feature in your forms:

3. Delivery Radius Calculation for E-commerce

Determine if a delivery location is within your service area:

4. Regional Data Analysis

Analyze post office distribution by state or district:

Database Structure

The package creates a relational database structure that mirrors India's postal hierarchy:

This structure allows for efficient querying and navigation through the postal hierarchy.

Available Commands

Models

The package includes the following Eloquent models:

Each model includes appropriate relationships for navigating the postal hierarchy.

Notes

Legal Disclaimer

Testing

The package includes a comprehensive test suite covering models, facades, resources, and services. To run the tests:

Test Requirements

Running Specific Test Groups

License

This package is open-sourced software licensed under the MIT license.


All versions of pin-india with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
illuminate/support Version ^9|^10|^11|^12
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 dev-giri/pin-india contains the following files

Loading the files please wait ...