Recommend this page to a friend! |
Download |
Info | Documentation | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not yet rated by the users | Total: 89 | All time: 9,966 This week: 61 |
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: hi@ph7.me ?
[![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 -->
Files (12) |
File | Role | Description | ||
---|---|---|---|---|
.github (1 directory) | ||||
src (1 file, 1 directory) | ||||
tests (1 directory) | ||||
composer.json | Data | Auxiliary data | ||
LICENSE.md | Lic. | License text | ||
phpunit.xml.dist | Data | Auxiliary data | ||
README.md | Doc. | Read me |
Files (12) | / | src | / | Api |
File | Role | Description |
---|---|---|
OpenAi.php | Class | Class source |
OpenAiApi.php | Aux. | Auxiliary script |
Pluggable.php | Class | Class source |
PrivateKey.php | Class | Class source |
Files (12) | / | tests | / | Api |
File | Role | Description |
---|---|---|
OpenAiTest.php | Class | Class source |
PrivateKeyTest.php | 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. |
Install with Composer |
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.