baraja-core / index-now
此包最新版本(v1.0.0)没有可用的许可证信息。
通过 Index now 协议向搜索引擎发送 ping。
v1.0.0
2021-11-08 15:11 UTC
Requires
- php: ^8.0
Requires (Dev)
- phpstan/extension-installer: ^1.1
- phpstan/phpstan: ^1.0
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-nette: ^1.0
- phpstan/phpstan-strict-rules: ^1.0
- roave/security-advisories: dev-master
- spaze/phpstan-disallowed-calls: ^2.0
This package is auto-updated.
Last update: 2024-09-08 18:09:07 UTC
README
一个易于使用的协议,网站可以调用以通知搜索引擎在任何 URL 上更新或创建内容时,允许即时抓取和发现 URL。
更多信息
📦 安装
最好使用 Composer 进行安装,您还可以在 Packagist 和 GitHub 上找到此包。
要安装,只需使用以下命令
$ composer require baraja-core/index-now
您可以通过创建实例来手动使用此包。
如何使用
简单创建实例并向搜索引擎发送请求
// create service instance for Bing $indexNow = new \Baraja\IndexNow\IndexNow( apiKey: 'ecc3bf28ed494de4b01e754cf6dff0d5', searchEngine: 'bing' ); // send changed URL $indexNow->sendChangedUrl('https://baraja.cz');
这就是全部。
📄 许可证
baraja-core/index-now
使用 MIT 许可证。有关更多详细信息,请参阅 LICENSE 文件。