Download the PHP package liviu-hariton/pinmeto-laravel without Composer
On this page you can find all versions of the php package liviu-hariton/pinmeto-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download liviu-hariton/pinmeto-laravel
More information about liviu-hariton/pinmeto-laravel
Files in liviu-hariton/pinmeto-laravel
Package pinmeto-laravel
Short Description A Laravel package that provides convenient access to the PinMeTo API, allowing users to interact with PinMeTo's locations data and metrics
License MIT
Informations about the package pinmeto-laravel
PinMeTo Laravel package
A Laravel PHP package that provides convenient access to the PinMeTo API, allowing users to interact with PinMeTo's locations data and metrics.
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
- Requirements
- Installation
- Usage
- Get all available locations
- Get a specific location
- Create a new location
- Update an existing location
- Get locations metrics data
- Get locations Google keywords
- Get locations ratings
- Get network categories
- License
- PinMeTo official API documentation
- Disclaimer
- Standalone PHP library
Requirements
Installation
You can install the PinMeTo Larvel package via Composer. Run the following command in your terminal:
Laravel will automatically register the package.
Publish the config file of this package with this command (and choose LHDev\PinmetoLaravel
from the presented list)
The following config file will be published in config/pinmeto.php
Edit your .env
file and add the following to it:
You can get the
Account ID,
App IDand
App Secret` values from your PinMeTo 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
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
Optionally, you can also pass an array of parameters
Get a specific location
Create a new location
You can also use the "Upsert" option by passing an additional parameter
Update an existing location
Metrics
Get the Google™ or Facebook™ metrics data for all locations
or for a specific location by passing the Store ID
Google keywords
Get the Google™ keywords data for all locations
or for a specific location by passing the Store ID
Ratings
Get the Google™ or Facebook™ ratings data for all locations
or for a specific location by passing the Store ID
Network categories
Get the list of categories per network. The available networks are google
or apple
or facebook
or bing
License
This library is licensed under the MIT License. See the LICENSE.md file for details.
PinMeTo official API documentation
- The V2 documentation (locations data) is available on PinMeTo GitHub
- The V3 documentation (locations metrics) is available on PinMeTo API - Documentation
Disclaimer
I am not affiliated with PinMeTo, but I am a developer who sees the value of their location services and wanted to create tools to simplify integration for the PHP community.
While this library facilitate integration with PinMeTo's location services API, it is a separate entity maintained and supported by me. Any issues, questions, or inquiries related to these library should be directed to me and not to PinMeTo.
I greatly appreciate the availability of PinMeTo's API, which has enabled me to create this library and enhance the functionality of applications that rely on location-based services. However, the development and maintenance of this library is solely my responsibility (and any contributors to this repository).
Feel free to explore this library here on GitHub, contribute, and make the most of PinMeTo’s powerful location services!
Standalone PHP library
A standalone PHP library is available also here.