2017 © Pedro Peláez
 

library safebrowsing-laravel

Laravel package wrapper for ampersa/safebrowsing

image

ampersa/safebrowsing-laravel

Laravel package wrapper for ampersa/safebrowsing

  • Thursday, April 13, 2017
  • by ampersa
  • Repository
  • 0 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

A Laravel package wrapper for ampersa/safebrowsing., (*1)

Installation

Composer, (*2)

$ composer require ampersa/safebrowsing-laravel

Include the Service Provider and Facade in your config/app.php, (*3)

'providers' => [
    ...
    Ampersa\SafeBrowsing\Laravel\SafeBrowsingServiceProvider::class,
    ...
];
...
'aliases' => [
    ...
    'SafeBrowsing' => Ampersa\SafeBrowsing\Laravel\Facade\SafeBrowsing::class,
    ...
];

Now publish the configuration, (*4)

$ php artisan vendor:publish --provider="Ampersa\SafeBrowsing\Laravel\SafeBrowsingServiceProvider"

Finally, ensure your Google SafeBrowsing API key is set. This can be set within config/safebrowsing.php or via the SAFEBROWSING_API_KEY environment variable., (*5)

For more information on Google SafeBrowsing API keys, please see https://developers.google.com/safe-browsing/v4/get-started, (*6)

Usage

Basic Usage, (*7)

use SafeBrowsing;
...
$result = SafeBrowsing::listed('http://ianfette.org/');
// Returns: (bool) true

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request

The Versions

13/04 2017

dev-master

9999999-dev

Laravel package wrapper for ampersa/safebrowsing

  Sources   Download

MIT

The Requires

 

by Ampersa Ltd

13/04 2017

0.1

0.1.0.0

Laravel package wrapper for ampersa/safebrowsing

  Sources   Download

MIT

The Requires

 

by Ampersa Ltd