PHP-CMSIG /
seal-symfony-bundle
An integration of CMS-IG SEAL search abstraction via a Bundle into the Symfony Framework. Part of the https://github.com/php-cmsig/search project. READ-ONLY Repository
Loading repository data…
PHP-CMSIG / repository
An integration of CMS-IG SEAL search abstraction via a module into the Yii Framework. Part of the https://github.com/php-cmsig/search project. READ-ONLY Repository
Note: This is part of the
cmsig/searchproject create issues in the main repository.
Integration of the CMS-IG — Search Engine Abstraction Layer (SEAL) into Yii.
Note: This project is heavily under development and any feedback is greatly appreciated.
Use composer for install the package:
composer require cmsig/seal-yii-module
Also install one of the listed adapters.
The following adapters are available:
cmsig/seal-memory-adaptercmsig/seal-elasticsearch-adaptercmsig/seal-opensearch-adaptercmsig/seal-meilisearch-adaptercmsig/seal-algolia-adaptercmsig/seal-loupe-adaptercmsig/seal-solr-adaptercmsig/seal-redisearch-adaptercmsig/seal-typesense-adapterAdditional Wrapper adapters:
cmsig/seal-read-write-adaptercmsig/seal-multi-adapterCreating your own adapter? Add the seal-php-adapter Topic to your GitHub Repository.
The following code shows how to configure the package:
<?php
// config/common/params.php
return [
// ...
'cmsig/seal-yii-module' => [
'schemas' => [
'app' => [
'dir' => 'config/schemas',
],
],
'engines' => [
'default' => [
'adapter' => 'meilisearch://127.0.0.1:7700',
],
],
'index_name_prefix' => '',
'reindex_providers' => [
\App\Search\BlogReindexProvider::class,
],
],
];
A more complex configuration can be here found:
<?php
// config/common/params.php
return [
// ...
'cmsig/seal-yii-module' => [
'schemas' => [
'app' => [
'dir' => 'config/schemas/app',
'engine' => 'meilisearch',
],
'other' => [
'dir' => 'config/schemas/other',
'engine' => 'algolia',
],
],
'engines' => [
'algolia' => [
'adapter' => 'algolia://' . $_ENV['ALGOLIA_APPLICATION_ID'] . ':' . $_ENV['ALGOLIA_ADMIN_API_KEY'],
],
'elasticsearch' => [
'adapter' => 'elasticsearch://127.0.0.1:9200',
],
'loupe' => [
'adapter' => 'loupe://var/indexes',
],
'meilisearch' => [
'adapter' => 'meilisearch://127.0.0.1:7700',
],
'memory' => [
'adapter' => 'memory://',
],
'opensearch' => [
'adapter' => 'opensearch://127.0.0.1:9200',
],
'redisearch' => [
'adapter' => 'redis://supersecure@127.0.0.1:6379',
],
'solr' => [
'adapter' => 'solr://127.0.0.1:8983',
],
'typesense' => [
'adapter' => 'typesense://S3CR3T@127.0.0.1:8108',
],
// ...
'multi' => [
'adapter' => 'multi://elasticsearch?adapters[]=opensearch',
],
'read-write' => [
'adapter' => 'read-write://elasticsearch?write=multi',
],
],
],
];
The default engine is available as Engine:
class Some {
public function __construct(
private readonly \CmsIg\Seal\EngineInterface $engine,
) {
}
}
Multiple engines can be accessed via the EngineRegistry:
class Some {
private Engine $engine;
public function __construct(
private readonly \CmsIg\Seal\EngineRegistry $engineRegistry,
) {
$this->engine = $this->engineRegistry->getEngine('algolia');
}
}
How to create a Schema file and use your Engine can be found SEAL Documentation.
The package provides the following commands:
Create configured indexes
./yii cmsig:seal:index-create
Drop configured indexes
./yii cmsig:seal:index-drop
Reindex configured indexes
./yii cmsig:seal:reindex
Selected from shared topics, language and repository description—not editorial ratings.
PHP-CMSIG /
An integration of CMS-IG SEAL search abstraction via a Bundle into the Symfony Framework. Part of the https://github.com/php-cmsig/search project. READ-ONLY Repository
PHP-CMSIG /
An integration of CMS-IG SEAL search abstraction into Laravel Framework. Part of the https://github.com/php-cmsig/search project. READ-ONLY Repository
PHP-CMSIG /
An integration of CMS-IG SEAL search abstraction via a ConfigProvider into the Mezzio Framework. Part of the https://github.com/php-cmsig/search project. READ-ONLY Repository
PHP-CMSIG /
An integration of CMS-IG SEAL search abstraction into Spiral Framework. Part of the https://github.com/php-cmsig/search project. READ-ONLY Repository