PHPackages                             gustabin/chatgpt-php - 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. [API Development](/categories/api)
4. /
5. gustabin/chatgpt-php

ActiveProject[API Development](/categories/api)

gustabin/chatgpt-php
====================

Chatbot using openai API chatgpt in PHP

315HTML

Since Jul 20Pushed 2y ago2 watchersCompare

[ Source](https://github.com/gustabin/chatgptModulos)[ Packagist](https://packagist.org/packages/gustabin/chatgpt-php)[ RSS](/packages/gustabin-chatgpt-php/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

ChatBot
=======

[](#chatbot)

Description
-----------

[](#description)

This is a simple chatbot that uses the OpenAI API to generate responses based on user-input messages. The chatbot is capable of generating coherent and relevant text, maintaining conversation context, and performing specific tasks.

Usage
-----

[](#usage)

1. Clone this repository.
2. Open the `index.html` file in your web browser.
3. Interact with the chatbot by entering messages in the input field and clicking "Send."

Files
-----

[](#files)

- `index.html`: Main file containing the chatbot's interface.
- `chat.js`: Script for the chat's functionality.
- `chatApi.js`: Script to make requests to the OpenAI API and obtain chatbot responses.
- `chatHistory.js`: Chat history to keep a record of conversations.
- `chat.php`: PHP file to process chatbot requests to the OpenAI API.

Credits
-------

[](#credits)

- Author: Ing. Gustavo Arias
- Website: [Stack code lab](https://stackcodelab.com/)

Notes
-----

[](#notes)

Free preview. ChatGPT may produce inaccurate information about people, places, or facts.

License
-------

[](#license)

This project is under the MIT License. See the `LICENSE` file for more details.

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

[](#installation)

composer create-project gustabin/chatgpt-php

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity22

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8211390?v=4)[Gustavo Arias](/maintainers/gustabin)[@gustabin](https://github.com/gustabin)

---

Top Contributors

[![gustabin](https://avatars.githubusercontent.com/u/8211390?v=4)](https://github.com/gustabin "gustabin (31 commits)")

### Embed Badge

![Health badge](/badges/gustabin-chatgpt-php/health.svg)

```
[![Health](https://phpackages.com/badges/gustabin-chatgpt-php/health.svg)](https://phpackages.com/packages/gustabin-chatgpt-php)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k13](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
