timkley/weaviate-php
最新稳定版本:0.11.0
Composer 安装命令:
composer require timkley/weaviate-php
包简介
A PHP HTTP Client for the Weaviate REST API
关键字:
README 文档
README
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.
统计信息
- 总下载量: 46.2k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 35
- 点击次数: 1
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-03-06