iatstuti/google-cse 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

iatstuti/google-cse

最新稳定版本:1.0.1

Composer 安装命令:

composer require iatstuti/google-cse

包简介

Google Custom Search Engine API wrapper

README 文档

README

Laravel 4.x wrapper for the Google Custom Search Engine API. This may work for Laravel 5, but has not been tested.

Note: You will need an API key and search engine configured in your Google Custom Search control panel.

composer require iatstuti/google-cse

Once installed, add the Service Provider into app/config/app.php

'providers' => array(
    // ...
    'Iatstuti\GoogleCse\GoogleCseServiceProvider',
    // ...
),

If you wish to use an alias, set the following (also in app/config/app.php)

'aliases' => array(
    // ...
    'Iatstuti\GoogleCse\Facades\LaravelFacade',
    // ...
),

Lastly, publish the package configuration and update the configuration in app/config/packages/iatstuti/google-cse/cse.php.

php artisan config:publish iatstuti/google-cse

To use the package, you can make a call to GoogleCse::search($term).

Calls to this this method will return an array of items from the JSON structure outlined here.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-02-10