Download the PHP package onekb/chat-gpt without Composer

On this page you can find all versions of the php package onekb/chat-gpt. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package chat-gpt

onekb/ChatGPT

采用OpenAI GPT3.5模型API(参考)

Using OpenAI GPT3.5 model API (reference)

Installing

Usage

⚡️ Getting Started

Step 1. 克隆本项目到本地 Clone this project to local

Step 2. 配置你的环境变量 Configure your environment variables

首先,将 start.php 文件中的 $apiKey 字段替换成你自己的 OpenAI API Key

First, replace the $apiKey field in the start.php file with your own OpenAI API Key

你可以在这里找到参数值 👉 教程

You can find parameter values here 👉 tutorial

Step 3. Hello world!

最后,你的电脑必须有 PHP 环境,然后在项目根目录下执行以下命令

Finally, your computer must have a PHP environment, and then execute the following command in the project root directory

就酱,准备好起飞 🚀

full stop, ready to take off 🚀

更新日志

3.5.0 2023-03-03

2.0.0 2023-02-28

1.0.5 2022-12-13

1.0.3 2022-12-09

1.0.1 2022-12-07

其他other

获取API Key Get API Key

登录你的OpenAI账户,访问 https://platform.openai.com/account/api-keys 获取你的API Key Log in to your OpenAI account and visit https://platform.openai.com/account/api-keys to get your API Key


All versions of chat-gpt with dependencies

PHP Build Version
Package Version
Requires guzzlehttp/guzzle Version ^7.5
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package onekb/chat-gpt contains the following files

Loading the files please wait ....