- PHP 8.0 or higher
- Composer
- Pterodactyl Panel with API access
Install the package using Composer:
composer require mythicalsystems/pterodactyl-php-sdkIf you prefer not to use Composer, you can download the source code and include the autoloader:
<?php
require_once 'path/to/pterodactyl-php-sdk/vendor/autoload.php';You can verify the installation by checking if the classes are available:
<?php
require_once 'vendor/autoload.php';
// Check if the main SDK class exists
if (class_exists('MythicalSystems\SDK\Pterodactyl\PterodactylSDK')) {
echo "Pterodactyl PHP SDK installed successfully!";
} else {
echo "Installation failed.";
}After installation, proceed to: