PHPackages                             angelxmoreno/prompt-classes - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. angelxmoreno/prompt-classes

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

angelxmoreno/prompt-classes
===========================

ChatGpt reusable objects

1.0.0(2y ago)0141[3 issues](https://github.com/angelxmoreno/PromptClasses/issues)MITPHPPHP ^7.4

Since May 30Pushed 2y ago1 watchersCompare

[ Source](https://github.com/angelxmoreno/PromptClasses)[ Packagist](https://packagist.org/packages/angelxmoreno/prompt-classes)[ RSS](/packages/angelxmoreno-prompt-classes/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

PromptClasses
=============

[](#promptclasses)

ChatGpt reusable objects

Installation
------------

[](#installation)

```
composer require angelxmoreno/prompt-classes
```

Getting started
---------------

[](#getting-started)

First thing you will need to get started is an OpenAI api key.

### Getting an OpenAI Api Key

[](#getting-an-openai-api-key)

To get started, visit the official OpenAI platform website. If you're new, create an account using simple steps. Next, sign in using your OpenAI account email and password, or use your Google/Microsoft account. Once logged in, you'll find your name and profile icon on the top-right corner of the OpenAI platform homepage. To obtain an API Key, click on your name in the top-right corner for a dropdown menu, and select "View API keys." On the resulting page, find the "Create new secret key" option in the center. If you don't have an API key, click this button to generate one. Remember to save the API key immediately, as you won't be able to retrieve it once the window closes.

### Simple Hello Prompt

[](#simple-hello-prompt)

1. Create a PromptClass

    ```
