Download the PHP package ariaieboy/laravel-safe-browsing without Composer
On this page you can find all versions of the php package ariaieboy/laravel-safe-browsing. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ariaieboy/laravel-safe-browsing
More information about ariaieboy/laravel-safe-browsing
Files in ariaieboy/laravel-safe-browsing
Package laravel-safe-browsing
Short Description Google Safe Browsing API Integration for LARAVEL
License MIT
Homepage https://github.com/ariaieboy/laravel-safe-browsing
Informations about the package laravel-safe-browsing
Google Safe Browsing API Integration for LARAVEL
Using this LaravelSafeBrowsing Package you can add google safe browsing api (v4) to your laravel application.
in applications that users generates the content of the website, It's necessary to check if the content is safe or not.
one of the important features of this package is that it will help you to check URLs and if it is not safe it will return the reason why it is not safe using google safe browsing api v4.
Installation
You can install the package via composer:
//: # () //: # ()
You can publish the config file with:
This is the contents of the published config file:
Set the api_key in your config file or using ENV SAFEBROWSING_GOOGLE_API_KEY
Usage
the first argument is the url that you want to check, the second argument is an optional boolean. if you don't pass the second argument or pass false the function will return true if the url is safe or false if it is not safe. if you pass true the function will return the threat type that is not safe. if the url is safe it will return true.
TODO
- [ ] add middleware to check if the url is safe
- [ ] add verification rules to check if the url is safe
- [ ] add caching mechanism using update api
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- AriaieBOY
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-safe-browsing with dependencies
guzzlehttp/guzzle Version ^7.5
illuminate/contracts Version ^10.0|^11
spatie/laravel-package-tools Version ^1.13.5