```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";
```
