Download the PHP package yannelli/prompt-manager-laravel without Composer
On this page you can find all versions of the php package yannelli/prompt-manager-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download yannelli/prompt-manager-laravel
More information about yannelli/prompt-manager-laravel
Files in yannelli/prompt-manager-laravel
Package prompt-manager-laravel
Short Description A Laravel package for managing prompt templates with versioning, component toggling, chaining, and customizable type handlers
License MIT
Homepage https://github.com/yannelli/prompt-manager-laravel
Informations about the package prompt-manager-laravel
Prompt Manager for Laravel
A powerful Laravel package for managing prompt templates with versioning, component toggling, chaining, and customizable type handlers.
Features
- Template Management - Create, update, and organize prompt templates with slugs and metadata
- Version Control - Full versioning support with custom mapping logic for backward compatibility
- Component System - Toggleable template components (prepend, append, replace) with conditional display
- Type System - Extensible prompt types (system, user, assistant, tool, custom) with invokable handlers
- Pipeline/Chaining - Chain multiple templates together, passing results through each step
- Multiple Renderers - Simple variable substitution or full Blade template support
- Execution Tracking - Optional logging of prompt executions with performance metrics
Requirements
- PHP 8.2+
- Laravel 11.0 or 12.0
Installation
Publish the configuration file:
Run the migrations:
Quick Start
Creating a Template
Rendering a Template
Using the Pipeline for Chaining
Template Versions
Creating New Versions
Requesting Specific Versions
Version Mapping
Map client versions to template versions for backward compatibility:
Components
Components are reusable template parts that can be toggled on/off.
Creating Templates with Components
Toggling Components
Conditional Components
Components can be shown/hidden based on context:
Custom Prompt Types
Registering a Custom Type
Or add to config:
Pipeline Pipes
Add custom processing to the pipeline:
Action Classes
Use action classes for more control:
Configuration
Testing
License
The MIT License (MIT). Please see License File for more information.
Learn more about our mission:
Author: Ryan Yannelli
Sponsor: Nextvisit AI Medical Scribe
All versions of prompt-manager-laravel with dependencies
illuminate/contracts Version ^11.0|^12.0
illuminate/database Version ^11.0|^12.0
illuminate/pipeline Version ^11.0|^12.0
illuminate/support Version ^11.0|^12.0
spatie/laravel-package-tools Version ^1.16