Package Data | |
---|---|
Maintainer Username: | garf |
Maintainer Contact: | garipov.dinar@gmail.com (Dinar Garipov) |
Package Create Date: | 2015-07-27 |
Package Last Update: | 2018-11-15 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-19 03:19:57 |
Package Statistics | |
---|---|
Total Downloads: | 20,114 |
Monthly Downloads: | 199 |
Daily Downloads: | 7 |
Total Stars: | 24 |
Total Watchers: | 3 |
Total Forks: | 7 |
Total Open Issues: | 1 |
Weblog system blogs pinger for Laravel 5.
Easy way to notify search engines about your new or updated posts in blog.
Add
"garf/laravel-pinger": "2.*"
to your composer.json
file into require
section.
Then type in console
$ composer update
When update completed, add to your config/app.conf
file to providers
section
'providers' => [
// ...
Garf\LaravelPinger\LaravelPingerServiceProvider::class,
]
If you want to use Pinger
facade, add to same file at the aliases
section
'aliases' => [
// ...
'Pinger' => Garf\LaravelPinger\PingerFacade::class,
]
php artisan vendor:publish
Publishes a pinger.php file to config directory. Add and remove all your ping sites in this file. Be sure to review the ping responses from the ping sites you add because there are many ping sites and do not all provide a uniform response. Some may require additional parameters. Some may stop working.
Pinger::pingAll('Title of post', 'http://url.of/your-post', 'http://url.of/your-rss(optional)');
Pinger::pingGoogle('Title of post', 'http://url.of/your-post', 'http://url.of/your-rss(optional)');
Yandex
Pinger::pingYandex('Title of post', 'http://url.of/your-post', 'http://url.of/your-rss(optional)');
Yahoo
Pinger::pingYahoo('Title of post', 'http://url.of/your-post', 'http://url.of/your-rss(optional)');
Feedburner
Pinger::pingFeedburner('Title of post', 'http://url.of/your-post', 'http://url.of/your-rss(optional)');
Weblogs
Pinger::pingWeblogs('Title of post', 'http://url.of/your-post', 'http://url.of/your-rss(optional)');
PingOMatic
Pinger::pingPingOMatic(
'Title of post',
'http://url.of/your-post',
'http://url.of/your-rss(optional)',
[
'additional' => 'params',
'to' => 'send',
]);
Pinger::ping('http://url.of/service', 'Title of post', 'http://url.of/your-post', 'http://url.of/your-rss(optional)');
Contributions are highly appreciated.
Send your pull requests to master
branch.
The MIT License (MIT). Please see License File for more information.