Download the PHP package dsolodev/namecheap-sdk without Composer
On this page you can find all versions of the php package dsolodev/namecheap-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dsolodev/namecheap-sdk
More information about dsolodev/namecheap-sdk
Files in dsolodev/namecheap-sdk
Package namecheap-sdk
Short Description Namecheap APIs SDK for PHP 8.4 is a modern, type-safe package to manage Namecheap APIs. This is a complete refactorusing modern PHP practices and service pattern architecture.
License MIT
Informations about the package namecheap-sdk
Namecheap APIs SDK for PHP 8.4
Namecheap APIs SDK for PHP 8.4 is a modern, type-safe package to manage Namecheap APIs. This is a complete refactor using modern PHP practices and service pattern architecture.
๐ Modern PHP Features
- ๐ PHP 8.4 Ready: Built with cutting-edge PHP features and strict typing
- ๐ฆ PSR Standards: PSR-4 autoloading, PSR-12 coding standards
- ๐ก๏ธ Unified Error Handling: All methods return structured response objects with consistent error handling
- ๐ Service Pattern: Dependency injection and separation of concerns
- โก Type Safety: Full typed properties and return types
๐ฏ Available Services
- ๐ Domain Management: Registration, renewal, transfer, contact management
- ๐ง DNS Management: Record management, email forwarding, nameserver configuration
- ๐ SSL Certificates: Purchase, activation, reissue, management
- ๐ค User Account: Balance inquiry, pricing, account management
- ๐ก๏ธ WhoisGuard: Privacy protection management
- ๐ฎ User Address: Registrant and contact information management
๐ Requirements
- PHP 8.4 or higher
- cURL extension
- JSON extension
๐ฆ Installation
The recommended way to install Namecheap SDK is through Composer:
๐ Quick Start
๐ง Advanced Configuration
Custom cURL Options
Unified Response Format
All API methods now return a structured NamecheapApiResponse object with consistent data access:
๐ก๏ธ Unified Response Handling
The SDK uses a unified response approach - all methods return NamecheapResponse objects, never throwing exceptions
for API or validation errors:
Consistent Error Handling
No matter what type of error occurs (authentication, validation, API errors), you always get a structured response:
๐ Service Documentation
Domain Service
DNS Service
SSL Service
User Service
๐๏ธ Architecture
This SDK follows modern PHP practices:
- Service Pattern: Each API group has its own service class
- Dependency Injection: Services receive ApiClient via constructor
- Single Responsibility: Clear separation of concerns
- Type Safety: Full type declarations and strict typing
- Exception Hierarchy: Specific exceptions for different error types
๐ Migration from v0.x
The new version uses a service pattern instead of inheritance:
๐งช Testing
๐ Useful Links
๐ Support
๐ Acknowledgments
- Original NaturalBuild/namecheap-sdk for API structure reference
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
All versions of namecheap-sdk with dependencies
ext-curl Version *
ext-dom Version *