PHPackages                             modelflow-ai/prompt-template - 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. [Templating &amp; Views](/categories/templating)
4. /
5. modelflow-ai/prompt-template

ActiveLibrary[Templating &amp; Views](/categories/templating)

modelflow-ai/prompt-template
============================

Templating library for ai prompts.

0.3.0(1y ago)23.3k↓87.1%9MITPHPPHP ^8.2

Since Apr 7Pushed 1mo agoCompare

[ Source](https://github.com/modelflow-ai/prompt-template)[ Packagist](https://packagist.org/packages/modelflow-ai/prompt-template)[ RSS](/packages/modelflow-ai-prompt-template/feed)WikiDiscussions 0.2 Synced today

READMEChangelogDependencies (8)Versions (9)Used By (9)

 [![Prompt Template Logo](https://avatars.githubusercontent.com/u/152068817?s=768&v=4)](https://avatars.githubusercontent.com/u/152068817?s=768&v=4)

Modelflow AI
Prompt Template

==============================

[](#modelflow-aiprompt-template)

This package provides a way to handle templates for prompts and chat-messages.

> **Note**: This is part of the `modelflow-ai` project create issues in the [main repository](https://github.com/modelflow-ai/.github).

> **Note**: This project is heavily under development and any feedback is greatly appreciated.

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

[](#installation)

To install the Prompt Template package, you need to have PHP 8.2 or higher and Composer installed on your machine. Then, you can add the package to your project by running the following command:

```
composer require modelflow-ai/prompt-template
```

Usage
-----

[](#usage)

Detailed usage instructions will be provided in the future. For now, you can refer to the source code and unit tests for usage examples.

Contributing
------------

[](#contributing)

Contributions are welcome. Please open an issue or submit a pull request in the main repository at .

License
-------

[](#license)

This project is licensed under the MIT License. For the full copyright and license information, please view the LICENSE file that was distributed with this source code.

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance70

Regular maintenance activity

Popularity24

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 97% 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.

###  Release Activity

Cadence

Every ~112 days

Recently: every ~136 days

Total

8

Last Release

32d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e43a10984e8ee1687abaac86c26311c6a607b9560e8a3cc3193f8245751618bc?d=identicon)[wachterjohannes](/maintainers/wachterjohannes)

---

Top Contributors

[![wachterjohannes](https://avatars.githubusercontent.com/u/1464615?v=4)](https://github.com/wachterjohannes "wachterjohannes (32 commits)")[![alexander-schranz](https://avatars.githubusercontent.com/u/1698337?v=4)](https://github.com/alexander-schranz "alexander-schranz (1 commits)")

---

Tags

aitemplatepromptsprompts template

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Type Coverage Yes

### Embed Badge

![Health badge](/badges/modelflow-ai-prompt-template/health.svg)

```
[![Health](https://phpackages.com/badges/modelflow-ai-prompt-template/health.svg)](https://phpackages.com/packages/modelflow-ai-prompt-template)
```

###  Alternatives

[phpoffice/phpword

PHPWord - A pure PHP library for reading and writing word processing documents (OOXML, ODF, RTF, HTML, PDF)

7.6k39.0M235](/packages/phpoffice-phpword)[rize/uri-template

PHP URI Template (RFC 6570) supports both expansion &amp; extraction

435149.5M63](/packages/rize-uri-template)[chimit/prompt

Manage AI prompts in Blade style.

4210.6k](/packages/chimit-prompt)[mopa/bootstrap-sandbox-bundle

Seperate live docs from code

256.8k](/packages/mopa-bootstrap-sandbox-bundle)[larablocks/pigeon

A more flexible email message builder for Laravel 5 including chained methods, reusable message configurations, and message layout and template view management.

143.7k](/packages/larablocks-pigeon)

PHPackages © 2026

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