(en) Library for quick indexing of a site (site pages) in Google search results. Based on the library google/apiclient . A detailed guide from obtaining a Google API key to submitting URLs for indexing is available at link
(ru) Library for quick indexing of a site (site pages) in Google search results. Based on the google/apiclient library . A detailed guide from obtaining a Google API key to submitting URLs for indexing is available here
composer require dllpl/google-fast-indexing
use Dllpl Google FastIndexing ;
// (en) path to the .json file of the private key received in the Google account
// (ru) путь до .json файла приватного ключа, полученного в ЛК Google
$ fastIndexing = new FastIndexing ( ' service_account.json ' );
// (en) path to the .txt file containing URLs to be sent for indexing
// (ru) путь до .txt файла, содержащего url-адреса для отправки на индексацию
$ result = $ fastIndexing -> send ( ' urls.txt ' );
var_dump ( $ result );
Each URL is on a new line. It's important.
https://mydomain.com
https://mydomain.com/all
https://mydomain.com/pages
...
Recently, Google has been very poorly and very slowly indexing website pages on its own, Based on this, there was a desire to implement this package for our own needs and for the needs of the entire GitHub community. Thank you for your stars! I invite you to take part in the development of this package.
(ru) Recently, Google has been very poorly and very slowly indexing site pages on its own, based on this there was a desire to implement this package for its own needs and for the needs of the entire GitHub community. Thank you for your stars! I invite you to take part in the development of this package.