PHPackages                             lonnieezell/scribe - 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. lonnieezell/scribe

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

lonnieezell/scribe
==================

A simple AI prompting library for CodeIgniter 4

v1.0.0-beta.1(1mo ago)12[2 issues](https://github.com/lonnieezell/scribe/issues)[2 PRs](https://github.com/lonnieezell/scribe/pulls)MITPHPPHP ^8.2CI passing

Since May 28Pushed 1mo agoCompare

[ Source](https://github.com/lonnieezell/scribe)[ Packagist](https://packagist.org/packages/lonnieezell/scribe)[ RSS](/packages/lonnieezell-scribe/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (5)Versions (6)Used By (0)

Myth/Scribe
===========

[](#mythscribe)

A CodeIgniter 4 package that gives you a clean, driver-based abstraction for talking to AI language models. Point it at Claude, OpenAI, or Gemini — your application code stays the same regardless of which provider you use.

[![PHPStan](https://camo.githubusercontent.com/0729e562e10fac943b16dbb271b4af26488f779a33fc82cc3eef1e37a432c0b4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d6c6576656c253230352d627269676874677265656e2e737667)](https://phpstan.org/)[![PHP Version](https://camo.githubusercontent.com/0f16581d1180dbfd4c0e13166ec1267d4ad2f2fab8281ea6d6b284cf5c65d921/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e322532422d626c75652e737667)](https://www.php.net/)[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](LICENSE)

📖 **[Full Documentation →](https://lonnieezell.github.io/scribe)**

---

What it does
------------

[](#what-it-does)

You define a **Prompt** class that describes what you want the AI to do. Scribe takes care of building the system prompt, calling the right provider, and returning a normalized **AIResponse** you can work with in plain PHP.

```
