承接 erag/locationerag 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

erag/locationerag

最新稳定版本:v1.8

Composer 安装命令:

composer require erag/locationerag

包简介

A simple package to get location data using Indian PIN codes, optimized for Laravel 10.x and 11.x

README 文档

README

Explore Indian locations effortlessly using our software, Locationerag. Simply add a PIN code as a parameter, and instantly get an array of the entire area of India. It's a quick and easy way to find locations – simplify your searches with Locationerag!

Screenshot

Screenshot 2024-08-07 at 11 32 57 PM

Getting Started

Installation

To get started with Locationerag, run the following command to install it via Composer:

composer require erag/locationerag

Step 1: Register the Service Provider

For Laravel 11.x

Ensure that the service provider is registered in /bootstrap/providers.php:

return [
    // ...
    LocationErag\LocationEragServiceProvider::class
];

For Laravel 10.x

Add the service provider in config/app.php:

'providers' => [
    // ...
    LocationErag\LocationEragServiceProvider::class,
];

Step 2: Usage Example

Now, use the Locationerag package in your routes:

<?php

use Illuminate\Support\Facades\Route;
use LocationErag\Get\Location;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
| Register web routes for your application.
|--------------------------------------------------------------------------
*/

Route::get('/', function () {
    echo '<pre>';
    print_r(Location::MapData(226010)); // Example: Get location data using a PIN code.
});

统计信息

  • 总下载量: 23
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-01-17