2017 © Pedro Peláez
 

library fbreviews

Facebook Reviews Scraper for Laravel 5

image

div-art/fbreviews

Facebook Reviews Scraper for Laravel 5

  • Saturday, January 20, 2018
  • by div-art
  • Repository
  • 4 Watchers
  • 2 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

FBReviews

Facebook Reviews Scraper for Laravel 5, (*1)

Installation

To install, run the following in your project directory:, (*2)

``` bash $ composer require div-art/fbreviews, (*3)


Then in `config/app.php` add the following to the `providers` array:

\DivArt\FBReviews\FBReviewsServiceProvider::class,, (*4)


Also in `config/app.php`, add the Facade class to the `aliases` array:

'FBReviews' => \DivArt\FBReviews\Facades\FBReviews::class,, (*5)


## Configuration To publish FBReviews configuration file, run the following `vendor:publish` command: ``` bash $ php artisan vendor:publish --provider="DivArt\FBReviews\FBReviewsServiceProvider"

This will create a fbreview.php in your config directory. Then you can make next command, (*6)

``` bash $ php artisan migrate, (*7)


Add this code to app/Console/Kernel.php to method "schedule"

$schedule->command('fbreview:scrap') ->timezone(config('fbreview.fb_timezone')) ->dailyAt(config('fbreview.fb_daily_at'));, (*8)

Add this conf to .env file

FACEBOOK_API_KEY= FACEBOOK_SECRET_KEY= FACEBOOK_DAILY_AT=, (*9)

Add to cron

// cron sheduler * * * * * php \path\artisan schedule:run, (*10)


# Usage Send GET requet to <YOUR DOMAIN>/fbreview/reviews?url=<YOUR PAGE FACEBOOK> # Methods Get reviews

FBReviews::getByID(); FBReviews::getByUrl(); ```, (*11)

License

The MIT License (MIT). Please see License File for more information., (*12)

The Versions

20/01 2018

dev-master

9999999-dev

Facebook Reviews Scraper for Laravel 5

  Sources   Download

MIT

The Requires

 

by Avatar div-art

laravel div-art facebook reviews

20/01 2018

0.0.1

0.0.1.0

Facebook Reviews Scraper for Laravel 5

  Sources   Download

MIT

The Requires

 

by Avatar div-art

laravel div-art facebook reviews