https://github.com/ph-7/openai-library
👉 An easy SDK for using AI through OpenAI API with PHP 💪
https://github.com/ph-7/openai-library
ai artificial-intelligence openai openai-library php php-openai
Last synced: about 1 year ago
JSON representation
👉 An easy SDK for using AI through OpenAI API with PHP 💪
- Host: GitHub
- URL: https://github.com/ph-7/openai-library
- Owner: pH-7
- License: mit
- Created: 2022-02-19T09:22:33.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-07-09T05:09:00.000Z (about 3 years ago)
- Last Synced: 2025-04-02T06:35:41.801Z (over 1 year ago)
- Topics: ai, artificial-intelligence, openai, openai-library, php, php-openai
- Language: PHP
- Homepage: https://github.com/pH-7/openai-library
- Size: 26.4 KB
- Stars: 3
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# PHP SDK for OpenAI and GPT-3
### :eyes: Contents
- [Requirements](#hammer-requirements)
- [Examples](#thought_balloon-examples)
- [3rd Party Libraries](#tada-3rd-party-libraries)
- [About](#cook-author)
- [Video](#me-building-this-library-)
- [License](#page_with_curl-license)
## :hammer: Requirements
* [PHP 8.1 or newer](https://www.php.net/releases/8.1/en.php) 🎉
* [Composer](https://getcomposer.org/doc/00-intro.md#introduction) installed on your machine 📦
* An account on [OpenAI](https://openai.com/api/) for OpenAI's API keys.
## :thought_balloon: Examples
```php
search('Some keywords'); // To search
$openAi->classifications('Some keywords'); // For OpenAI classifications
```
## :tada: 3rd party libraries
## :cook: Author
I'm **[Pierre-Henry Soria](https://ph7.me)**. 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)
---
[](https://ph7.me "Pierre-Henry Soria")
## Me building it! 🔥
[![Watch the video][video-thumbnail]](https://www.youtube.com/watch?v=Fv4J79eQjrc)
👉 **[Click here to watch on YouTube](https://www.youtube.com/watch?v=Fv4J79eQjrc)**
## :page_with_curl: License
**PHP OpenAI SDK** is distributed under [MIT](https://opensource.org/licenses/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-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