Last Updated | | Ratings | | Unique User Downloads | | Download Rankings |
2022-10-13 (11 months ago)  | | Not yet rated by the users | | Total: 66 | | All time: 10,247 This week: 108 |
|
Description | | Author |
This package can search engine for text using OpenAI API.
It can send HTTP requests to the OpenAI API Web servers to perform several types of requests.
Currently, it can:
- Perform searches for a given text keywords
- Query classifications using given text keywords
- Get answers for questions | |
 |
|
Innovation award
 Nominee: 16x
Winner: 3x |
|
Details
PHP SDK for OpenAI and GPT-3
:eyes: Contents
:hammer: Requirements
:thought_balloon: Examples
<?php
require_once __DIR__ . '/vendor/autoload.php'; // Include Composer's autoload
use PH7\OpenAi\Client as OpenAiClient;
use PH7\OpenAi\Api\OpenAi;
use PH7\OpenAi\Api\PrivateKey as OpenAiKey;
$apiKey = new OpenAiKey('YOUR_OPENAI_KEY');
$openAi = new OpenAiClient(new OpenAi($apiKey));
$openAi->search('Some keywords'); // To search
$openAi->classifications('Some keywords'); // For OpenAI classifications
:tada: 3rd party libraries
:cook: Author
I'm Pierre-Henry Soria. A passionate, zen & dedicated software engineer ?
You can keep in touch with me at: hi@ph7.me ?
[![pH-7][github-image]](https://github.com/pH-7)

Me building this library ?
[![Watch the video][video-thumbnail]](https://www.youtube.com/watch?v=Fv4J79eQjrc)
? Click here to watch on YouTube
:page_with_curl: License
PHP OpenAI SDK is distributed under MIT license ? Enjoy! ??
Note: This is not an official library published by OpenAI. I just want to help the community by providing a great library layer to be used with OpenAI.
<!-- GitHub's Markdown reference links -->
[github-image]: https://img.shields.io/badge/GitHub-100000?style=for-the-badge&logo=github&logoColor=white
[video-thumbnail]: https://i1.ytimg.com/vi/Fv4J79eQjrc/sddefault.jpg
<!-- Was generated by README Generator CLI on 2022-02-20 https://github.com/pH-7/github-readme-generator-cli -->
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.