Installation
You can install Base via Composer.
composer require stilmark/baseRequirements
Ensure you have:
PHP 8.2 or higher
Composer installed and configured
Extensions:
json,curl(for OAuth functionality)
Autoloading
Base follows PSR-4 autoloading. After installation, classes can be autoloaded using Composer’s autoloader:
require __DIR__ . '/vendor/autoload.php';
use Stilmark\Base\Env;Verifying installation
Run the following to check if classes load correctly:
php -r "require 'vendor/autoload.php'; var_dump(class_exists('Stilmark\\Base\\Env'));"Expected output:
Quick verification test
Create a simple test file to verify Base is working:
Run with: php test.php
Last updated