debarun/nearby-entity

It provides result for nearby entity

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:project

pkg:composer/debarun/nearby-entity

dev-main 2024-11-07 14:09 UTC

This package is not auto-updated.

Last update: 2026-01-30 18:08:11 UTC


README

A PHP package to retrieve detailed information about places based on your location using the Google Places API. This package is designed to help you easily fetch details like name, address, contact number, open status, and more for nearby locations, making it ideal for location-based applications.

Features

  • Fetch full details of nearby places based on a specified location
  • Retrieve contact information, operational status, address, and more
  • Filter results by type (e.g., restaurant, hospital, police, etc.)
  • Utilizes Google Places API for accurate and up-to-date place information

Requirements

Installation

To install this package, use Composer:

composer require debarun/nearby-entity

Usage

use Debarun\Nearby\Api;

require __DIR__.'/vendor/autoload.php';

$response = (new Api('xxxxxxxxxxx'))->getNearbyPlaces('22.932648429114025','88.4189063273865',['police'],2000);

print_r(json_decode($response['data']));

License

This package is licensed under the MIT License. See the LICENSE file for details.