https://github.com/php-llm/fabric-pattern
Slim PHP wrapper for Daniel Miessler's fabric pattern
https://github.com/php-llm/fabric-pattern
llm prompt
Last synced: about 1 year ago
JSON representation
Slim PHP wrapper for Daniel Miessler's fabric pattern
- Host: GitHub
- URL: https://github.com/php-llm/fabric-pattern
- Owner: php-llm
- License: mit
- Created: 2024-06-12T17:51:52.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-05T18:20:29.000Z (over 1 year ago)
- Last Synced: 2025-01-21T12:07:53.386Z (over 1 year ago)
- Topics: llm, prompt
- Language: PHP
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-php-ai - fabric-pattern
README
Fabric Pattern
==============
Slim PHP wrapper for Daniel Miessler's [fabric](https://github.com/danielmiessler/fabric) pattern library.
Installation
------------
Use [Composer](https://getcomposer.org) to install the package:
```bash
composer require php-llm/fabric-pattern
```
On top to the PHP wrapper library this also downloads the Python repository into `vendor/danielmiessler/fabric`.
Usage
-----
```php
use PhpLlm\FabricPattern\Pattern;
// Return markdown of pattern's system prompt
$pattern = (new Pattern)->load('extract_wisdom');
```
You can find the list of available patterns [directly in fabric's repository](https://github.com/danielmiessler/fabric/tree/main/patterns).