Download the PHP package estratos/namesilo-api without Composer
On this page you can find all versions of the php package estratos/namesilo-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package namesilo-api
NameSilo Bundle for Symfony
NameSilo API integration for Symfony, built on top of the contracts from estratos/domain-api-interface.
Status: the core implementation is complete: HTTP client, response mapper, the 7 contract services, events, cache, retries and tests. The package is published on Packagist as
estratos/namesilo-api. The latest tagged release (1.0.0) predates this repair, so usedev-mainuntil a new tag is published.
Overview
The bundle adapts the NameSilo API to a provider-agnostic domain API:
- Domain registration, renewal, transfer and queries.
- DNS record management.
- Contact profiles.
- Account balance and prices.
- WHOIS privacy.
- Domain lock/unlock.
- Name server changes.
Applications depend on the interfaces, not on NameSilo. Another provider can replace this bundle without changing business logic.
Architecture
Features
- ✅ Contract-based — implements 23 methods across 7 interfaces.
- ✅ Full transport layer — GET requests, JSON and XML responses, error mapping.
- ✅ Typed errors — authentication, insufficient funds, invalid domain/contact, rate limit, timeout, DNS and validation exceptions.
- ✅ Events — 13 domain/DNS/contact/privacy/lock events.
- ✅ Cache — PSR-6 cache for read-only endpoints, with invalidation after mutations.
- ✅ Retries — configurable HTTP retries with exponential backoff.
- ✅ Logging — PSR-3 with API key masking.
- ✅ Sandbox — switches to the NameSilo sandbox host when requested.
- ✅ Tests — PHPUnit suite with
MockHttpClient; PHPStan levelmax.
Requirements
- PHP 8.3 or newer.
- Symfony 7.x.
ext-simplexmlonly if you useresponse_type: xml.
Installation
Register the bundle:
Add the API key to .env or to Symfony secrets:
Create config/packages/namesilo.yaml:
That is the minimal configuration. Every other option has a default.
Configuration
Full reference:
See the configuration reference for defaults, ranges and caveats.
Usage
Domain registration
DNS records
Account balance
Events
Error handling
ApiException::getApiCode() returns the original numeric NameSilo code when available (119, 280, ...).
Testing
The suite uses MockHttpClient; no real API calls are made.
Static analysis and style
Documentation
Detailed technical documentation (Spanish):
- Architecture
- Configuration reference
- Contracts and NameSilo API mapping
- Exceptions and enums
- Current state and next steps
Notes and current limitations
- The latest Packagist release (
1.0.0) predates this repair; usedev-mainor a new tag. - Read-only flows (balance, prices, domains, contacts, availability and domain info) were validated against the production API on 2026-10-24. Mutation flows and the sandbox remain unvalidated.
- NameSilo does not expose every field required by the contracts. The mapper derives or defaults some values (
orderId,updatedAt,available,reserved,creditLimit). isDefaulton contacts has no NameSilo equivalent and is ignored with a warning.- MX priority uses
rrdistance; SRV values are encoded asweight:port:target.
License
MIT License. See LICENSE.
All versions of namesilo-api with dependencies
estratos/domain-api-interface Version ^1.0
psr/cache Version ^3.0
psr/log Version ^3.0
symfony/cache Version ^7.0
symfony/config Version ^7.0
symfony/dependency-injection Version ^7.0
symfony/event-dispatcher Version ^7.0
symfony/framework-bundle Version ^7.0
symfony/http-client Version ^7.0
symfony/http-kernel Version ^7.0