1. Go to this page and download the library: Download particle-academy/holy-sheet library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
use HolySheet\Laravel\Facades\HolySheet;
HolySheet::write($schema, $path); // write to disk
$bytes = HolySheet::toBytes($schema); // raw bytes for streaming/queue jobs
$errors = HolySheet::validate($schema); // dry-run, returns structured errors
$tool = HolySheet::toolDefinition(); // JSON Schema for agent tool wiring
use HolySheet\Toolkit\Toolkit;
use HolySheet\Toolkit\ArraySchemaStore;
$kit = Toolkit::for(new ArraySchemaStore()); // or your own SchemaStore
$system = Toolkit::instructions(); // the shipped agent prompt
foreach ($kit->tools() as $tool) {
// $tool->name, $tool->description, $tool->parameters (JSON Schema), $tool->handler
$sdk->registerTool($tool->name, $tool->description, $tool->parameters, $tool->handler);
}