netcore / galerts
Google Alerts management
Installs: 56
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 7
Forks: 4
Open Issues: 0
Type:package
Requires
- php: >=5.4.0
- guzzlehttp/guzzle: ^6.2
- laravel/framework: 5.*
This package is not auto-updated.
Last update: 2024-12-13 21:40:43 UTC
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();