PHP code example of kevinem / places-scout-laravel

1. Go to this page and download the library: Download kevinem/places-scout-laravel library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

kevinem / places-scout-laravel example snippets


'providers' => [
    // Other service providers...

    KevinEm\PlacesScoutLaravel\PlacesScoutLaravelServiceProvider::class,
],

'aliases' => [
    // Other facades...
    
    'PlacesScoutLaravel' => KevinEm\PlacesScoutLaravel\Facades\PlacesScoutLaravel::class,
],

$ php artisan vendor:publish

$clients = PlacesScoutLaravel::clients()->lists();

$rankingReports = PlacesScoutLaravel::rankingReports()->lists();

$run = PlacesScoutLaravel::rankingReports()->getRun('7Qs0xGHWuE', '53mM466');

PlacesScoutLaravel::reputationReports()->create([
    'query' => [
        'Name' => 'testing'
    ],
    'json' => [
        'BusinessInfo' => [
            'BusinessName' => 'Test Business',
            'FullAddress' => '123 Test St',
            'StreetAddress' => '123 Test St',
            'City' => 'Pasadena',
            'State' => 'CA',
            'ZipCode' => '91770',
            'PhoneNumber' => '1231231234',
            'Country' => 'UnitedStates'
        ]
    ]
]);