Download the PHP package namingo/cardo-drs without Composer
On this page you can find all versions of the php package namingo/cardo-drs. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package cardo-drs
Cardo DRS - Multi-Registrar Domain Management Library
Cardo DRS is a unified PHP interface for working with multiple domain registrar APIs through a single, consistent API.
It provides a common abstraction for domain registration and management operations, reducing the need to implement separate integration logic for every registrar. Applications can use the same interface for common tasks such as checking domain availability, registering and renewing domains, managing transfers, nameservers, and DNS records.
Cardo DRS uses a pluggable adapter architecture, making it straightforward to add support for additional registrars while keeping application code independent from provider-specific APIs.
Installation
If you’re developing locally from the repo, ensure PSR‑4 autoloading is refreshed:
Quick Start
Supported Providers
Registrar adapters require provider-specific API credentials. Pass the required credentials in the adapter configuration array; optional sandbox or endpoint settings can be supplied where supported.
| Provider |
|---|
| NameSilo |
| GoDaddy |
| Namecheap |
| Dynadot |
| Name.com |
| OpenSRS |
Credentials per Adapter
Each adapter accepts a config array. The keys below are the minimum you usually need.
NameSilo
GoDaddy
Namecheap
Dynadot
Name.com
OpenSRS
Common Operations (Unified Shape)
All adapters implement these methods (see src/Core/BaseAdapter.php). Return values are normalized as associative arrays so you can handle responses consistently.
⚠️ Contacts & Required Fields differ slightly per registrar. The library forwards what you pass; check the registrar’s API docs if a call fails due to missing fields.
Adapter‑Specific Examples
NameSilo – Register a domain
GoDaddy – DNS update
Namecheap – Set custom nameservers
Dynadot – Check and register
Raw Passthrough (Escape Hatch)
Need a command the wrapper doesn’t expose yet? Call the adapter directly:
Adding a New Registrar
-
Create a class in
src/adapters/{Brand}.php: - Composer autoloading will pick it up automatically with:
Error Handling
Every method returns a structure with:
ok(bool) — quick success checkraw— original parsed payload (JSON/XML/array)http— HTTP status code (when available)err— transport‑level error string (if any)
You can also wrap calls in try/catch if you layer exceptions in your project.
Common Operations (Unified Shape)
All adapters implement these methods (see src/Core/BaseAdapter.php). Return values are normalized as associative arrays so you can handle responses consistently.
⚠️ Contacts & Required Fields differ slightly per registrar.
Full Tutorials per Adapter
NameSilo – Complete Flow
GoDaddy – Complete Flow
Namecheap – Complete Flow
Dynadot – Complete Flow
Adding a New Registrar
- Create
src/adapters/{Brand}.php - Extend
BaseAdapterand implement abstract methods - Example:
Support
Need help, found a bug, or have an idea for Cardo DRS?
- Email: [email protected]
- Discord: Join the community on Discord
- GitHub Issues: Report bugs or request features in GitHub Issues
Questions, feedback, and contributions are always welcome.
Support This Project
If you find Cardo DRS useful, consider donating:
- Donate via Stripe
- BTC:
bc1q9jhxjlnzv0x4wzxfp8xzc6w289ewggtds54uqa - ETH:
0x330c1b148368EE4B8756B176f1766d52132f0Ea8
Licensing
Cardo DRS is licensed under the MIT License.
Cardo DRS is based on josuamarcelc/registrar-api, originally created by josuamarcelc, and is further developed and maintained by Terbora Ltd.
The Name.com and OpenSRS integrations are also based in part on the MIT-licensed registrar adapters from utopia-php/domains, with adaptations and additional Cardo DRS functionality.