PHPackages                             liviu-hariton/pinmeto-laravel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. liviu-hariton/pinmeto-laravel

ActiveLibrary[HTTP &amp; Networking](/categories/http)

liviu-hariton/pinmeto-laravel
=============================

A Laravel package that provides convenient access to the PinMeTo API, allowing users to interact with PinMeTo's locations data and metrics

v0.2.0(1y ago)15MITPHPPHP ^8.1

Since Mar 27Pushed 1y ago1 watchersCompare

[ Source](https://github.com/liviu-hariton/pinmeto-laravel)[ Packagist](https://packagist.org/packages/liviu-hariton/pinmeto-laravel)[ RSS](/packages/liviu-hariton-pinmeto-laravel/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

PinMeTo Laravel package
=======================

[](#pinmeto-laravel-package)

A Laravel PHP package that provides convenient access to the [PinMeTo](https://www.pinmeto.com/) API, allowing users to interact with PinMeTo's locations data and metrics.

Overview
--------

[](#overview)

Integration with PinMeTo offers the ability to fetch information and send updates through PinMeTo API for:

- Locations
- Insights (Google™ and Facebook™)
- Keywords (Google™)
- Reviews (Google™ and Facebook™)

Table Of Content
----------------

[](#table-of-content)

- [Requirements](#requirements)
- [Installation](#installation)
- [Usage](#usage)
    - [Get all available locations](#get-all-available-locations)
    - [Get a specific location](#get-a-specific-location)
    - [Create a new location](#create-a-new-location)
    - [Update an existing location](#update-an-existing-location)
    - [Get locations metrics data](#metrics)
    - [Get locations Google keywords](#google-keywords)
    - [Get locations ratings](#ratings)
    - [Get network categories](#network-categories)
- [License](#license)
- [PinMeTo official API documentation](#pinmeto-official-api-documentation)
- [Disclaimer](#disclaimer)
- [Standalone PHP library](#standalone-php-library)

Requirements
------------

[](#requirements)

- a [PinMeTo](https://www.pinmeto.com/login) user account with API access enabled
- PHP &gt;= 8.1
- [Laravel](https://github.com/laravel/laravel) &gt;= 10.0
- [Guzzle](https://github.com/guzzle/guzzle) &gt;= 7.8

Installation
------------

[](#installation)

You can install the PinMeTo Larvel package via Composer. Run the following command in your terminal:

```
composer require liviu-hariton/pinmeto-laravel
```

Laravel will automatically register the package.

Publish the config file of this package with this command (and choose `LHDev\PinmetoLaravel` from the presented list)

```
php artisan vendor:publish
```

The following config file will be published in `config/pinmeto.php`

```
return [
    'app_id' => env('PINMETO_APP_ID', ''), // the PinMeTo `App ID`
    'app_secret' => env('PINMETO_APP_SECRET', ''), // the PinMeTo `App Secret`
    'account_id' => env('PINMETO_ACCOUNT_ID', ''), // the PinMeTo `Account ID`
    'mode' => env('PINMETO_MODE', 'test'), // the library working mode: `live` or `test` (defaults to `test`)
];
```

Edit your `.env` file and add the following to it:

```
PINMETO_APP_ID=
PINMETO_APP_SECRET=
PINMETO_ACCOUNT_ID=
PINMETO_MODE=

```

You can get the `Account ID`, `App ID` and `App Secret` values from your [PinMeTo Account Settings](https://places.pinmeto.com/account-settings/)

The `PINMETO_MODE` can have one of the `test` or `live` values, depending on what stage of the PinMeTo API you want to use.

Usage
-----

[](#usage)

When the installation is done you can easily retrieve locations data by using the available methods. All methods will return a JSON formatted data. Just inject the dependency in your controller's methods.

### Get all available locations

[](#get-all-available-locations)

```
