netcore/galerts
Composer 安装命令:
composer require netcore/galerts
包简介
Google Alerts management
README 文档
README
Installation
- Install package using command
composer require netcore/galerts
- Add service provider to your app.php file
'providers' => [ ... Netcore\GAlerts\GAlertsServiceProvider::class, ]
Usage
At the top of your controller/service put the following
use Netcore\GAlerts\GAlert;
- Fetch all existing alerts
GAlert::all();
- Find alert by data id
GAlert::findByDataId('28764d5015595ee0:60bb6f517d7861db:com:en:US:L');
- Find alert by data id
GAlert::findByKeyword('My alert');
- Create an alert
$alert = new GAlert; $alert = $alert ->keyword('My alert') ->deliverToEmail() ->frequencyWeekly() ->language('lv') ->save();
- Update an existing alert
$alert = GAlert::findByKeyword('My alert'); $updated = $alert ->keyword('My new alert') ->deliverToFeed() ->update();
- Delete an alert
$alert = GAlert::findByKeyowrd('My alert'); $alert->delete();
统计信息
- 总下载量: 57
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-06-20