typesense / typesense-php
PHP client for Typesense Search Server: https://github.com/typesense/typesense
Fund package maintenance!
typesense
Installs: 1 973 066
Dependents: 34
Suggesters: 7
Security: 0
Stars: 186
Watchers: 8
Forks: 35
Open Issues: 6
Requires
- php: >=7.4
- ext-json: *
- monolog/monolog: ^2.1 || ^3.0 || ^3.3
- nyholm/psr7: ^1.3
- php-http/client-common: ^1.0 || ^2.3
- php-http/discovery: ^1.0
- php-http/httplug: ^1.0 || ^2.2
- psr/http-client-implementation: ^1.0
- psr/http-factory: ^1.0
- psr/http-message: ^1.0 || ^2.0
Requires (Dev)
- mockery/mockery: ^1.6
- phpunit/phpunit: ^11.2
- squizlabs/php_codesniffer: 3.*
- symfony/http-client: ^5.2
This package is auto-updated.
Last update: 2024-12-07 21:17:36 UTC
README
Official PHP client for the Typesense API: https://github.com/typesense/typesense
Installation
$ composer require php-http/curl-client typesense/typesense-php
You can also add typesense/typesense-php
to your project's composer.json
.
Typesense uses HTTPlug as an abstraction layer for an HTTP client. You'll find the List of supported HTTP clients & adapters here. Please be sure to install a supported client.
Usage
Read the documentation here: https://typesense.org/api/
Here are some examples that walk you through how to use the client: doc/examples
Compatibility
Contributing
Bug reports and pull requests are welcome on GitHub at [https://github.com/typesense/typesense-php].
Development
Run linter:
composer run-script lint:fix
Run Typesense Server:
composer run-script typesenseServer
Run tests:
docker compose up
cp phpunit.xml.dist phpunit.xml
composer run-script test
Credits
This client was originally developed by Abdullah Al-Faqeir from DevLoops and was adopted as the official PHP client library for Typesense in Oct 2020.
Ongoing development and support is now provided by Typesense, in addition to our collaborators.