<?php

declare(strict_types=1);

/**
 * bin/generate_key.php
 *
 * Usage: php bin/generate_key.php
 *
 * Prints a fresh base64-encoded 32-byte key to paste into APP_KEY in
 * .env. Run this once per environment (local/staging/production) —
 * never reuse the same key across environments, and never commit the
 * value anywhere.
 */

$key = base64_encode(random_bytes(32));

echo "APP_KEY={$key}\n";
