Documentation
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 -->