typesense / typesense-php
PHP client for Typesense Search Server: https://github.com/typesense/typesense
Fund package maintenance!
typesense
Installs: 1 758 122
Dependents: 32
Suggesters: 7
Security: 0
Stars: 180
Watchers: 6
Forks: 34
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-10-07 20:59:50 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.