Download the PHP package promptphp/deck without Composer

On this page you can find all versions of the php package promptphp/deck. 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 deck

Latest Version on Packagist PHP from Packagist GitHub license Total Downloads on Packagist Featured in Laravel News

Introduction

Deck, formerly Prompt Deck, provides AI prompt management for Laravel and PHP.

Organise your AI agent instructions as versioned files, compare prompt performance, and activate the right version across your app with variable interpolation, tracking, A/B testing, and Laravel AI SDK integration.

[!IMPORTANT] Prompt Deck is now Deck by PromptPHP.

From v0.4.0, the package moved from veeqtoh/prompt-deck to promptphp/deck, and the namespace changed from Veeqtoh\PromptDeck to PromptPHP\Deck.

Upgrading from v0.3.x? See the upgrade guide.

Quick Start

Installation

Publish the config and migrations

Creating a Prompt

Use the Artisan command to create a versioned prompt

This creates the following structure

Edit resources/prompts/order-summary/v1/system.md with your prompt content. Use {{ $variable }} syntax for dynamic values:

Using a Prompt

Load and render prompts with the Deck facade

Versioning

Create a new version of an existing prompt

Activate a specific version

Or load a specific version programmatically

Laravel AI SDK Integration

If you use the Laravel AI SDK, add the HasPromptTemplate trait to your agents. This way, you do not need to define the instructions() method as it is provided automatically.

Running make:agent will also auto-scaffold a matching prompt directory.

For the complete guide, see the full documentation below.


Documentation

Full documentation can be found at https://deck.promptphp.com/ or the docs directory on GitHub.

Contributing

Thank you for considering contributing to Deck by PromptPHP. Please open an issue or submit a pull request on GitHub.

Code of Conduct

We follow the Laravel Code of Conduct. We expect you to abide by these guidelines as well.

Security Vulnerabilities

If you discover a security vulnerability within Deck by PromptPHP, please email Victor Ukam at [email protected]. All security vulnerabilities will be addressed promptly.

License

Deck by PromptPHP is open-sourced software licensed under the MIT license.

Support

This library is created by Victor Ukam with contributions from the Open Source Community. If you've found this package useful, please consider sponsoring this project. It will go a long way to help with maintenance.


All versions of deck with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
sebastian/diff Version ^7.0.0
nesbot/carbon Version ^3.0
illuminate/container Version ^11.0|^12.0|^13.0
illuminate/database Version ^11.0|^12.0|^13.0
illuminate/support Version ^11.0|^12.0|^13.0
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 promptphp/deck contains the following files

Loading the files please wait ...