| Recommend this page to a friend! | 
| Info | Documentation | Reputation | Support forum | Blog | Links | 
| Ratings | Unique User Downloads | Download Rankings | ||||
| Not yet rated by the users | Total: 91 | All time:  9,943 This week: 57 | ||||
| Version | License | PHP version | Categories | |||
| openai-library 1.0.0 | GNU General Publi... | 5 | PHP 5, Searching, Web services, Artif... | 
| Description | Author  | |
This package can search engine for text using OpenAI API.  | 
<?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
I'm Pierre-Henry Soria. A passionate, zen & dedicated software engineer ?
You can keep in touch with me at: [email protected] ?
[![pH-7][github-image]](https://github.com/pH-7)
[![Watch the video][video-thumbnail]](https://www.youtube.com/watch?v=Fv4J79eQjrc)
? Click here to watch on YouTube
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 -->
| File | Role | Description | ||
|---|---|---|---|---|
| Data | Auxiliary data | |||
| Lic. | License text | |||
| Data | Auxiliary data | |||
| Doc. | Read me | |||
| / | src | / | Api | 
| File | Role | Description | 
|---|---|---|
|    | 
Class | Class source | 
|    | 
Aux. | Auxiliary script | 
|    | 
Class | Class source | 
|    | 
Class | Class source | 
| / | tests | / | Api | 
| File | Role | Description | 
|---|---|---|
|    | 
Class | Class source | 
|    | 
Class | Class source | 
| The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. | 
| Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
| 100% | 
  | 
  | 
| Applications that use this package | 
 If you know an application of this package, send a message to the author to add a link here.