timkley/weaviate-php
Weaviate PHP SDK
This is a wrapper around the Weaviate REST API.
Installation
Requirements
PHP 8.3 and higher
With composer
composer require timkley/weaviate-php
Usage
This package supports API key authentication (available in Weaviate 1.18 and higher) or anonymous access. Please refer to the official documentation for more information.
<?php
use Weaviate\Weaviate;
$weaviate = new Weaviate('http://localhost:8080', 'your-token');
// using the GraphQL API
$weaviate->graphql()->get('{
Get {
Things {
Article {
title
}
}
}
}');
// using the `batch` REST API
$weaviate->batch()->create($objects);
// adding query parameters
$weaviate->dataObject()->withQueryParameters(['limit' => 10])->get();
Testing
composer test
Credits
I took a lot of inspiration from existing packages like mailgun/mailgun-php or lepikhinb/fathom-api.
And of course Weaviate for providing this great project.
Thanks for contributing to open source!
License
The MIT License (MIT). Please see License File for more information.
Related Packages
hafael/azure-mailer-driver
Supercharge your Laravel or Symfony app with Microsoft Azure Communication Servi...
159,779
15
mozex/anthropic-laravel
Anthropic PHP for Laravel is a supercharged PHP API client that allows you to in...
493,376
74
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 0.12.0 | ^8.3| | ^11.0| | MIT | |
| 0.11.0 | ^8.3| | ^11.0| | MIT | |
| 0.10.0 | ^8.2| | ^11.0| | MIT | |
| 0.8.0 | ^8.2| | ^11.0 | MIT | |
| 0.7.0 | ^8.2| | ^11.0 | MIT | |
| 0.6.2 | ^8.1| | ^10.0 | MIT | |
| 0.6.1 | ^8.1| | ^10.0 | MIT | |
| 0.6.0 | ^8.1| | ^10.0 | MIT | |
| 0.5.0 | ^8.1| | ^10.0 | MIT | |
| 0.4.0 | ^8.1| | ^10.0 | MIT | |
| 0.3.1 | ^8.1| | ^10.0 | MIT | |
| 0.3.0 | ^8.1| | ^10.0 | MIT | |
| 0.2.0 | ^8.1| | ^9.0 | MIT | |
| 0.1 | ^8.1| | ^9.0 | MIT |