定制 ampersa/safebrowsing-laravel 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

ampersa/safebrowsing-laravel

Composer 安装命令:

composer require ampersa/safebrowsing-laravel

包简介

Laravel package wrapper for ampersa/safebrowsing

README 文档

README

A Laravel package wrapper for ampersa/safebrowsing.

Installation

Composer

$ composer require ampersa/safebrowsing-laravel

Include the Service Provider and Facade in your config/app.php

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

Now publish the configuration

$ 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.

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

Usage

Basic Usage

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-04-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固