baraja-core/index-now

There is no license information available for the latest version (v1.0.0) of this package.

Send ping to search engine by Index now protocol.

v1.0.0 2021-11-08 15:11 UTC

This package is auto-updated.

Last update: 2024-10-08 18:23:53 UTC


README

Easy to use protocol that websites can call to notify search engines whenever website contents on any URL is updated or created allowing instant crawling, and discovery of the URL.

More information:

📦 Installation

It's best to use Composer for installation, and you can also find the package on Packagist and GitHub.

To install, simply use the command:

$ composer require baraja-core/index-now

You can use the package manually by creating an instance.

How to use

Simply create instance and send request to search engine:

// create service instance for Bing
$indexNow = new \Baraja\IndexNow\IndexNow(
	apiKey: 'ecc3bf28ed494de4b01e754cf6dff0d5',
	searchEngine: 'bing'
);

// send changed URL
$indexNow->sendChangedUrl('https://baraja.cz');

And that's all.

📄 License

baraja-core/index-now is licensed under the MIT license. See the LICENSE file for more details.