PHP code example of baraja-core / index-now
1. Go to this page and download the library: Download baraja-core/index-now library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
baraja-core / index-now example snippets
// create service instance for Bing
$indexNow = new \Baraja\IndexNow\IndexNow(
apiKey: 'ecc3bf28ed494de4b01e754cf6dff0d5',
searchEngine: 'bing'
);
// send changed URL
$indexNow->sendChangedUrl('https://baraja.cz');