An open API service indexing awesome lists of open source software.

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 💪

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)

---

[![Pierre-Henry Soria](https://www.gravatar.com/avatar/a210fe61253c43c869d71eaed0e90149?s=200&r=g&d=mp)](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