Download the PHP package team-nifty-gmbh/plesk-sdk without Composer
On this page you can find all versions of the php package team-nifty-gmbh/plesk-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download team-nifty-gmbh/plesk-sdk
More information about team-nifty-gmbh/plesk-sdk
Files in team-nifty-gmbh/plesk-sdk
Package plesk-sdk
Short Description PHP SDK for Plesk RESTful API
License MIT
Informations about the package plesk-sdk
Plesk PHP SDK
A modern PHP SDK for the Plesk RESTful API, built with Saloon
๐ Description
This SDK provides a clean, intuitive interface for interacting with the Plesk API in PHP applications. Built on top of Saloon HTTP client, it offers a robust and developer-friendly way to manage Plesk servers programmatically.
Key Features
- ๐ Full Plesk API Coverage - Complete implementation of Plesk's RESTful API v2
- ๐๏ธ Built with Saloon - Leveraging the powerful Saloon HTTP client for reliable API interactions
- ๐ง Laravel Integration - First-class Laravel support with Service Provider, Facade, and helper functions
- ๐ฆ Standalone Usage - Can be used in any PHP project, not just Laravel
- ๐ฏ Type-Safe - Full PHP 8.2+ type hints and enums for better IDE support
- ๐ DTO Support - Structured data transfer objects using Spatie's Laravel Data package
- โก Auto-generated - Generated from OpenAPI specification for accuracy and completeness
- ๐ Configurable - SSL verification, timeouts, and retry logic configuration
- ๐งช Testable - Built with testing in mind, easily mockable with Saloon's testing utilities
Supported Resources
- Domains - Full domain lifecycle management
- Clients - Customer and reseller account management
- Databases - MySQL/PostgreSQL database and user management
- DNS - DNS zone and record management
- FTP Users - FTP account management
- Extensions - Plesk extension management
- Server - Server configuration and information
- CLI - Command line operations
- Auth - API key and authentication management
Requirements
- PHP 8.2+
- Laravel 11.x or 12.x (optional, for Laravel integration)
- Plesk server with API access enabled
Installation
Configuration
Laravel
The package will auto-register the service provider. Publish the config file:
Add your Plesk credentials to your .env file:
Usage in Laravel
Using the Helper Function:
Using the Facade:
Using dependency injection:
Standalone Usage
Available Resources
- Auth - Authentication and API key management
- Cli - Command line interface operations
- Clients - Client account management
- Databases - Database and database user management
- Dns - DNS record management
- Domains - Domain management
- Extensions - Extension management
- FtpUsers - FTP user management
- Server - Server configuration and information
Examples
Working with Domains
Working with Databases
Working with DNS
Error Handling
Testing
For testing, you can mock the Plesk client:
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Support
For issues, questions, or suggestions, please use the GitHub Issues page.
License
This package is open-source software licensed under the MIT license.
Tags: plesk, api, sdk, php, laravel, saloon, rest-api, plesk-api, server-management, hosting, web-hosting
All versions of plesk-sdk with dependencies
saloonphp/saloon Version ^3.0
spatie/laravel-data Version ^4.0
illuminate/support Version ^11.0|^12.0
illuminate/contracts Version ^11.0|^12.0