matthewbdaly / laravel-opensearch
Laravel 的 OpenSearch 实现
0.0.2
2018-02-11 22:04 UTC
Requires (Dev)
- matthewbdaly/artisan-standalone: 0.0.*
- mockery/mockery: ~1.0
- orchestra/testbench: 3.5
- phpunit/phpunit: ^6.3
- psy/psysh: 0.8.*
- satooshi/php-coveralls: ^1.0
- squizlabs/php_codesniffer: ^3.1
This package is auto-updated.
Last update: 2024-08-28 08:15:28 UTC
README
Laravel 的 OpenSearch 实现
安装
首先,安装包
composer require matthewbdaly/laravel-opensearch
然后发布配置
php artisan vendor:publish
然后,更新 config/opensearch.php
以匹配您的需求。您还需要将以下内容添加到您网站的 HTML 头部,以便告诉浏览器 OpenSearch XML 文件的位置
<link href="/opensearch" rel="search" title="Search title" type="application/opensearchdescription+xml">