Download the PHP package phpexperts/chatgpt-speaker without Composer

On this page you can find all versions of the php package phpexperts/chatgpt-speaker. 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 chatgpt-speaker

ChatGPTSpeaker

Maintainability Test Coverage

ChatGPTSpeaker is a PHP Experts, Inc., Project meant to ease the accessing of the OpenAI APIs.

This library uses RESTSpeaker to utilize the Guzzle HTTP Client via the Composition architectural pattern.

You might be very interested in the projects that used by and/or adjacent to this project:

Installation

Via Composer

Copy .env.example to .env in your project's root directory and put in your OpenAI credentials.

Change log

Please see the changelog for more information on what has changed recently.

Usage

By default, JSON results are returned.

Response:

To get the same basic results as the ChatGPT user interface, do the following:

(From RESTSpeaker) To convert the RESTSpeaker API request into a curl CLI command, do this:

(From RESTSpeaker) To get the raw payload as returned by api.openai.com:

Use cases

✔ Returns the same responses as chat.openai.com.

Testing

Roadmap

Contributors

Theodore R. Smith [email protected]
GPG Fingerprint: 4BF8 2613 1C34 87AC D28F 2AD8 EB24 A91D D612 5690
CEO: PHP Experts, Inc.

License

CC-BY-ND-4.0 Creative Commons NoDerivations v4.0: Please see the license file for more information.

YOU MAY FORK THIS PROJECT.

YOU MAY NOT PUBLISH ANY DERIVATION of this project to either your own website or a third-party host.


All versions of chatgpt-speaker with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
ext-curl Version *
ext-json Version *
phpexperts/rest-speaker Version ^2.5
phpexperts/simple-dto Version ^3.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 phpexperts/chatgpt-speaker contains the following files

Loading the files please wait ....