Nomad changes
All checks were successful
Deploy fil (kreuzberg) / deploy (push) Successful in 49s

This commit is contained in:
Henrik Jess Nielsen
2026-06-01 23:40:55 +02:00
parent 72b1a0a6ed
commit b4c07d3693
5723 changed files with 1130655 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
```php title="composer_install.php"
<?php
declare(strict_types=1);
/**
* Installing Kreuzberg via Composer
*
* This snippet shows how to install the Kreuzberg PHP package using Composer.
* The package provides the object-oriented and procedural APIs, while the
* native extension (kreuzberg.so/.dll) must be installed separately.
*/
require_once __DIR__ . '/vendor/autoload.php';
use Kreuzberg\Kreuzberg;
if (!extension_loaded('kreuzberg')) {
echo "Error: kreuzberg extension is not loaded\n";
echo "Please add 'extension=kreuzberg.so' (or .dll on Windows) to your php.ini\n";
exit(1);
}
echo "Kreuzberg extension is loaded successfully!\n";
echo "Version: " . Kreuzberg::version() . "\n";
$kreuzberg = new Kreuzberg();
echo "Kreuzberg client initialized successfully!\n";
```