Download the PHP package lonnieezell/scribe without Composer

On this page you can find all versions of the php package lonnieezell/scribe. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package scribe

Myth/Scribe

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 PHP Version

📖 Full Documentation →


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.

Key Features

What it isn't

If you need those features, this library is intentionally out of scope for them.

Requirements

Installation

Install via Composer:

Publish the config file so you can add your API keys:

Then open app/Config/AI.php and set at least one driver's apiKey:

Quick Start

1. Create a Prompt class

2. Run it

3. Test it

Configuration

The AI config class lives at app/Config/AI.php after publishing. The key settings:

Key Description
$defaultDriver Driver used when none is specified on the prompt (default: 'claude')
$drivers['claude'] Anthropic Claude settings: apiKey, model, timeout
$drivers['openai'] OpenAI settings: apiKey, model, timeout
$drivers['gemini'] Google Gemini settings: apiKey, model, timeout

A specific prompt can override the driver at runtime:

Documentation

Full documentation — installation, core concepts, configuration, structured output, testing, and the changelog — is available at:

https://lonnieezell.github.io/scribe

Contributing

  1. Fork the repo and create a feature branch.
  2. Run the full CI suite before opening a PR: composer ci
  3. All new code must include tests and pass PHPStan level 5.

License

MIT — see LICENSE.


All versions of scribe with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package lonnieezell/scribe contains the following files

Loading the files please wait ...