承接 sukohi/google-safe-browsing 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

sukohi/google-safe-browsing

Composer 安装命令:

composer require sukohi/google-safe-browsing

包简介

A Laravel package to check if a specific URL is secure or not through Google Safe Browsing API.

README 文档

README

A Laravel package to check if a specific URL is secure or not through Google Safe Browsing API.
This package is inspired by winternight/google-safe-browsing . (But unfortunately I couldn't install the package via composer.)
(This is for Laravel 5+.)

Installation

Execute composer command.

composer require sukohi/google-safe-browsing:2.*

Register the service provider in app.php

'providers' => [
    ...Others...,  
    Sukohi\GoogleSafeBrowsing\GoogleSafeBrowsingServiceProvider::class,
]

Also alias

'aliases' => [
    ...Others...,  
    'GoogleSafeBrowsing'   => Sukohi\GoogleSafeBrowsing\Facades\GoogleSafeBrowsing::class
]

Preparation

1.You need to get your API key for Google Safe Browsing API.
2.Publish the config file.

php artisan vendor:publish --force

3.Set your API key in YOUR-APP/config/google_safe_browsing.php like so.

'api_key' => '*************************************'

Basic Usage

if(GoogleSafeBrowsing::isSecure('https://github.com/SUKOHI')) {

    echo 'Secure!';

}

Get more details

After calling isSecure('URL'), call a method you want like so.

if(GoogleSafeBrowsing::isPhishing()) {

    echo 'This could be a phishing site!';

}

if(GoogleSafeBrowsing::isMalware()) {

    echo 'This could be a malicious software!';

}

if(GoogleSafeBrowsing::isUnwanted()) {

    echo 'This could be a unwanted site!';

}

License

This package is licensed under the MIT License.

Copyright 2016 Sukohi Kuhoh

统计信息

  • 总下载量: 38
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-03-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固