Giter Site home page Giter Site logo

laravel-pinger's Introduction

Laravel Weblogs Pinger

Software License Laravel Version

Weblog system blogs pinger for Laravel 5.

Easy way to notify search engines about your new or updated posts in blog.

Install

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,
]

Publish with artsian

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.

Usage

Send ping to services

Sending to all services at once

Pinger::pingAll('Title of post', 'http://url.of/your-post', 'http://url.of/your-rss(optional)');

Send pings to separate services

Google

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',
        ]);

Ping any other service

Pinger::ping('http://url.of/service', 'Title of post', 'http://url.of/your-post', 'http://url.of/your-rss(optional)');

Further plans

  • clean the code
  • create driver system for different services

Contributions

Contributions are highly appreciated.

Send your pull requests to master branch.

License

The MIT License (MIT). Please see License File for more information.

laravel-pinger's People

Contributors

garf avatar pbgswd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

laravel-pinger's Issues

Ошибка в документации

Написано

'providers' => [
    // ...
    Gaaarfild\LaravelPingers\LaravelPingerServiceProvider::class,

А надо

'providers' => [
    // ...
    Gaaarfild\LaravelPinger\LaravelPingerServiceProvider::class,

pingAll function

Why the pingAll function takes the urls from the configuration file, instead of calling every other single function?
Right now the pingAll method does not pings on PingOMatic?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.