PHPackages                             pport/autogpt - 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. pport/autogpt

ActiveLibrary

pport/autogpt
=============

Pport AutoGpt is a PHP class that uses LLM to automate task creation based on an objective.The class generates initial tasks based on the objective, executes those tasks, generates new tasks based on the results, and reprioritizes tasks based on the most recent task completed.

331PHP

Since Apr 22Pushed 3y ago2 watchersCompare

[ Source](https://github.com/macmuriithi/pport-autogpt)[ Packagist](https://packagist.org/packages/pport/autogpt)[ RSS](/packages/pport-autogpt/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHP-AutoGpt
===========

[](#php-autogpt)

PHP-AutoGpt is a simple class implementation designed to showcase capabilities of LLMs in tasks creation and automation. The class generates initial tasks based on the objective, executes those tasks, generates new tasks based on the results, and reprioritizes tasks based on the most recent task completed.

Usage
-----

[](#usage)

First, you will need an API key. You can obtain one from your OpenAI. Once you have your key, include it when constructing the class.

```
$autogpt = new Pport\AutoGpt();
$agent->setApiKey('OPENAI_KEY');
$agent->setObjective("Create A Blog Post bout Artificial Intelligence");
$agent->setInitialTask("Research the best ideas");
$agent->run();
```

The run() method will loop through each task until the objective is reached. It will automatically generate new tasks based on the results of the previous task and prioritize the tasks accordingly.

Methods
-------

[](#methods)

### \_\_construct($objective,$initialTask, $apiKey)

[](#__constructobjectiveinitialtask-apikey)

Constructs the AutoGpt class with the given $objective and $apiKey.

### run()

[](#run)

Generates first task if none exists and then recursively executes the list of tasks until the objective is reached.

### generateObjectiveTasks()

[](#generateobjectivetasks)

Generates the initial list of tasks based on the given objective.

### executeTask()

[](#executetask)

Executes the given task.

### createNewTasks()

[](#createnewtasks)

Generates new tasks based on the result of the previous task.

### prioritizeTasks()

[](#prioritizetasks)

Prioritizes the list of tasks based on the given current task.

### sendRequest($prompt)

[](#sendrequestprompt)

Sends a request to the GPT-3 API with the given prompt.|

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

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

---

Top Contributors

[![macmuriithi](https://avatars.githubusercontent.com/u/50452802?v=4)](https://github.com/macmuriithi "macmuriithi (9 commits)")

### Embed Badge

![Health badge](/badges/pport-autogpt/health.svg)

```
[![Health](https://phpackages.com/badges/pport-autogpt/health.svg)](https://phpackages.com/packages/pport-autogpt)
```

PHPackages © 2026

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