Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/baraja-core/index-now
Send ping to search engine by Index now protocol.
https://github.com/baraja-core/index-now
change index index-now ping ping-url request search search-engine send send-change seo seo-optimization
Last synced: 8 days ago
JSON representation
Send ping to search engine by Index now protocol.
- Host: GitHub
- URL: https://github.com/baraja-core/index-now
- Owner: baraja-core
- License: mit
- Created: 2021-11-08T15:04:16.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-09-08T13:37:54.000Z (about 2 years ago)
- Last Synced: 2024-02-22T15:31:38.014Z (9 months ago)
- Topics: change, index, index-now, ping, ping-url, request, search, search-engine, send, send-change, seo, seo-optimization
- Language: PHP
- Homepage: https://brj.cz
- Size: 4.88 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Index now PHP 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.
More information:
- [Bing official site](https://bing.com/indexnow)
- [Yandex official documentation](https://yandex.ru/support/webmaster/indexing-options/index-now.html)📦 Installation
---------------It's best to use [Composer](https://getcomposer.org) for installation, and you can also find the package on
[Packagist](https://packagist.org/packages/baraja-core/index-now) and
[GitHub](https://github.com/baraja-core/index-now).To install, simply use the command:
```
$ composer require baraja-core/index-now
```You can use the package manually by creating an instance.
How to use
----------Simply create instance and send request to search engine:
```php
// 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.
📄 License
-----------`baraja-core/index-now` is licensed under the MIT license. See the [LICENSE](https://github.com/baraja-core/index-now/blob/master/LICENSE) file for more details.