elephpant/updateservices

Update services is a tool that you can use to let other people know that you've updated your blog. Similar to what WordPress does when sending an XML-RPC ping, automatically notifying popular update services when you update your blog.

1.0.0 2020-10-28 20:55 UTC

This package is auto-updated.

Last update: 2024-11-29 06:22:19 UTC


README

Maintainer Source Code PHP from Packagist Latest Version Software License Build Quality Score Total Downloads

Installation

Composer (recommended)

Use Composer to install this library from Packagist: elephpant/updateservices

Run the following command from your project directory to add the dependency:

composer require elephpant/updateservices "^1.0"

Alternatively, add the dependency directly to your composer.json file:

"require": {
    "elephpant/updateservices": "^1.0"
}

Usage

Ping-o-Matic (Only)
<?php
use ElePHPant\UpdateServices\UpdateServices;

// Blog Name, Blog Home Page, RSS URL (optional)
(new UpdateServices('My Blog', 'https://domain.com', 'https://domain.com/rss.xml'))->pingOMatic();
Custom Ping List (Ping-o-Matic is Already Included)
// XML-RPC Ping Services
// https://codex.wordpress.org/Update_Services
// https://codex.wordpress.org/pt-br:Servi%C3%A7os_de_Atualiza%C3%A7%C3%A3o
$pingServices = [
    'http://rpc.pingomatic.com',
    'http://rpc.twingly.com',
    'http://api.feedster.com/ping',
    'http://api.moreover.com/RPC2',
    'http://api.moreover.com/ping',
    'http://www.blogdigger.com/RPC2',
    'http://www.blogshares.com/rpc.php',
    'http://www.blogsnow.com/ping',
    'http://www.blogstreet.com/xrbin/xmlrpc.cgi',
    'http://bulkfeeds.net/rpc',
    'http://www.newsisfree.com/xmlrpctest.php',
    'http://ping.blo.gs/',
    'http://ping.feedburner.com',
    'http://ping.syndic8.com/xmlrpc.php',
    'http://ping.weblogalot.com/rpc.php',
    'http://rpc.blogrolling.com/pinger/',
    'http://rpc.technorati.com/rpc/ping',
    'http://rpc.weblogs.com/RPC2',
    'http://www.feedsubmitter.com',
    'http://blo.gs/ping.php',
    'http://www.pingerati.net',
    'http://www.pingmyblog.com',
    'http://geourl.org/ping',
    'http://ipings.com',
    'http://www.weblogalot.com/ping',
];

(new UpdateServices('My Blog', 'https://domain.com', 'https://domain.com/rss.xml', $pingServices))->all();

Contributing

No one ever has enough engineers, so we're very happy to accept contributions via Pull Requests. For details, see CONTRIBUTING

Credits

License

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