Skip to content

PHP library for fast indexing of website pages in Google search with support for mass indexing. A PHP library designed for quick indexing website pages in Google search. PHP-библиотека для быстрой индексации страниц сайта в поиске Google с поддержкой массовой индексация.

License

dllpl/google-fast-indexing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google Fast Indexing PHP library

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

Библиотека для быстрой индексации сайта (страниц сайта) в поисковой выдаче Google. Создано на основе библиотеки google/apiclient. Подробное руководство от получения API-ключа Google до отправки url-адресов на индексацию доступно по ссылке

Requirements (Требования)

  • php: ^7.4 || ^8.0

Installation (Установка)

composer require dllpl/google-fast-indexing

Usage example (Вызов)

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);

Example file urls.txt (Пример файла)

Each URL is on a new line. It's important.

https://mydomain.com
https://mydomain.com/all
https://mydomain.com/pages
...

P.S.

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.

В последнее время Google очень плохо и совсем неспешно самостоятельно индексирует страницы сайта, исходя из этого возникло желание реализовать данный пакет для собственных нужд и для нужд всего GitHub-комьюнити. Спасибо за ваши звезды! Приглашаю принять участие в развитие данного пакета.

About

PHP library for fast indexing of website pages in Google search with support for mass indexing. A PHP library designed for quick indexing website pages in Google search. PHP-библиотека для быстрой индексации страниц сайта в поиске Google с поддержкой массовой индексация.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages