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

315↓100%HTML

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 1mo ago

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

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity21

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://www.gravatar.com/avatar/b827534f01fd7b8e41ea9cdac4373fdba8c2a8724df58eaa966ad3c18f7cdacc?d=identicon)[gustabin](/maintainers/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

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M474](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M270](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M186](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M33](/packages/facebook-php-business-sdk)[microsoft/microsoft-graph

The Microsoft Graph SDK for PHP

65723.5M95](/packages/microsoft-microsoft-graph)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)

PHPackages © 2026

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