PHPackages                             cmsig/seal-read-write-adapter - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. cmsig/seal-read-write-adapter

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

cmsig/seal-read-write-adapter
=============================

An adapter to support to split read and write operations for the cmsig/seal package.

0.12.9(2mo ago)23110MITPHPPHP ^8.1

Since May 11Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/PHP-CMSIG/seal-read-write-adapter)[ Packagist](https://packagist.org/packages/cmsig/seal-read-write-adapter)[ Fund](https://paypal.me/L91)[ GitHub Sponsors](https://github.com/alexander-schranz)[ RSS](/packages/cmsig-seal-read-write-adapter/feed)WikiDiscussions 0.12 Synced 1mo ago

READMEChangelogDependencies (8)Versions (27)Used By (10)

> **Note**: This is part of the `cmsig/search` project create issues in the [main repository](https://github.com/php-cmsig/search).

---

  **Your feedback is important 📘**
 [Are you working with SEAL? Let us know!](https://github.com/PHP-CMSIG/search/discussions/416) | [Which Search Engines do you use and why?](https://github.com/PHP-CMSIG/search/discussions/457)

 [![SEAL Logo with an abstract seal sitting on a telescope.](https://avatars.githubusercontent.com/u/120221538?s=400&v=6)](https://avatars.githubusercontent.com/u/120221538?s=400&v=6)

Logo created by [Meine Wilma](https://cargocollective.com/meinewilma)

SEAL
 Read Write Adapter
=========================

[](#seal--read-write-adapter)

The `ReadWriteAdapter` allows to use one adapter instance for reading and one for writing. This is useful if you want to reindex something without a downtime.

> **Note**: This project is heavily under development and any feedback is greatly appreciated.

Installation
------------

[](#installation)

Use [composer](https://getcomposer.org/) for install the package:

```
composer require cmsig/seal cmsig/seal-read-write-adapter
```

Usage
-----

[](#usage)

To use the adapter an instance of `ReadWriteAdapter` need to be created which get a `$readAdapter` and `$writeAdapter` which are instances of the `AdapterInterface`.

The following code shows how to create an Engine using this Adapter:

```
