https://github.com/easygithdev/phpopenai-playground
Example how to use openAI APi
https://github.com/easygithdev/phpopenai-playground
Last synced: 2 months ago
JSON representation
Example how to use openAI APi
- Host: GitHub
- URL: https://github.com/easygithdev/phpopenai-playground
- Owner: EasyGithDev
- License: mit
- Created: 2023-04-05T08:48:53.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-25T13:18:39.000Z (about 1 year ago)
- Last Synced: 2025-01-29T23:30:16.728Z (4 months ago)
- Language: HTML
- Size: 88.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PHPOpenAI-Playground
An example of using the project `PHPOpenAI`The main project is hosted here :
[https://github.com/EasyGithDev/PHPOpenAI](https://github.com/EasyGithDev/PHPOpenAI).
## System Requirements
This project is based on PHP version 8.1 in order to use features such as enumerations. This project does not require any external dependencies. However, you must have the cURL extension installed for it to work properly.
- PHP version >= 8.1
- cURL extension## Installation
The project uses Composer to manage dependencies. If you haven't already installed Composer, you can do so by following the instructions on the official Composer website.
#### Clone the project
To install the project, you can clone it from GitHub using the following Git command:
```bash
git clone [email protected]:EasyGithDev/PHPOpenAI-Playground.git
```#### Install the project
```bash
composer install
```#### Run the project
First, you need to go in the public directory :
```bash
cd /INSTALL/DIR/public
```Next, launch the server :
```bash
php -S localhost:8000
```Finally, you can open the playround in your browser :
```
http://localhost:8000
```#### Important
The application stores images and associated metadata in the "download" and "serialize" folders. These two folders must be writable.