Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dllpl/google-fast-indexing
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.
https://github.com/dllpl/google-fast-indexing
google google-indexing google-indexing-api google-seo googleapis indexing php php-google php-library php74 php8 seo
Last synced: 4 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/dllpl/google-fast-indexing
- Owner: dllpl
- License: mit
- Created: 2024-01-06T15:41:44.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-17T18:35:13.000Z (8 months ago)
- Last Synced: 2024-09-29T20:01:19.090Z (4 months ago)
- Topics: google, google-indexing, google-indexing-api, google-seo, googleapis, indexing, php, php-google, php-library, php74, php8, seo
- Language: PHP
- Homepage: https://webseed.ru/
- Size: 44.9 KB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Google Fast Indexing PHP library
*(en) Library for quick indexing of a site (site pages) in Google search results.
Based on the library [google/apiclient](https://github.com/googleapis/google-api-php-client)*.
*A detailed guide from obtaining a Google API key to submitting URLs for indexing is available at [link](https://support.google.com/googleapi/answer/6158862?hl=en)**(ru) Библиотека для быстрой индексации сайта (страниц сайта) в поисковой выдаче Google.
Создано на основе библиотеки [google/apiclient](https://github.com/googleapis/google-api-php-client)*.
*Подробное руководство от получения API-ключа Google до отправки url-адресов на индексацию доступно по [ссылке](https://support.google.com/googleapi/answer/6158862?hl=en)*## Requirements (Требования)
* php: ^7.4 || ^8.0
## Installation (Установка)
```shell
composer require dllpl/google-fast-indexing
```
## Usage example (Вызов)
```php
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.***
```text
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.**(ru) В последнее время Google очень плохо и совсем неспешно самостоятельно индексирует страницы сайта,
исходя из этого возникло желание реализовать данный пакет для собственных нужд и для нужд всего GitHub-комьюнити.
Спасибо за ваши звезды! Приглашаю принять участие в развитие данного пакета.*