PHPackages                             lexis/lexis-php - 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. [Search &amp; Filtering](/categories/search)
4. /
5. lexis/lexis-php

ActiveLibrary[Search &amp; Filtering](/categories/search)

lexis/lexis-php
===============

Official PHP SDK for the Lexis search API (sync + search endpoints).

v0.4.0(2mo ago)010MITPHPPHP ^7.4 || ^8.0

Since Apr 21Pushed 2mo agoCompare

[ Source](https://github.com/florentiu/lexis-php)[ Packagist](https://packagist.org/packages/lexis/lexis-php)[ Docs](https://lexis.software)[ RSS](/packages/lexis-lexis-php/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (1)Versions (10)Used By (0)

Lexis PHP SDK
=============

[](#lexis-php-sdk)

Official PHP client for the [Lexis](https://lexis.software) search API — sync your catalog, query the index, done. Zero runtime dependencies beyond `ext-curl` + `ext-json`.

Requirements
------------

[](#requirements)

- PHP 7.4 or 8.x (all minors supported)
- `ext-curl`, `ext-json`
- A Lexis API key (Settings → API keys in the dashboard)

> Examples below are written with positional arguments so they paste-run on every supported PHP version. On PHP 8.0+ you're free to use named arguments (`$client->search(index: 'products', query: 'x')`) — the method signatures match.

Install
-------

[](#install)

```
composer require lexis/lexis-php
```

Quickstart
----------

[](#quickstart)

```
