Send ping to search engine by Index now protocol.
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.
To install, simply use the command:
$ composer require baraja-core/index-now
You can use the package manually by creating an instance.
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.
baraja-core/index-now is licensed under the MIT license. See the LICENSE file for more details.