Download the PHP package level23/dynadot-api without Composer

On this page you can find all versions of the php package level23/dynadot-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package dynadot-api

Dynadot-API

Build Code Coverage Minimum PHP Version Packagist Version Total Downloads Quality Score

Unofficial implementation for the Dynadot domain API

This library provides a PHP client for the Dynadot API, allowing you to manage domains, search for domain availability, and handle domain registrations programmatically.

Before you can use this API you have to:

By default, we will try to connect to the Dynadot API for 30 seconds. If that fails, a GuzzleHttp\Exception\ConnectException is thrown. You probably want to catch these in case if something goes wrong.

Installing

Install the latest version with:

Requirements

To make use of this API you have to run PHP 8.2 or higher.

Contributing

If you want to help us improve this implementation, just contact us. All help is welcome! The only requirement for contributing is that all code is 100% covered by unit tests and that they implement the PSR standards.

License

See the file LICENSE for more information.

Changelog

See CHANGELOG.md for a list of changes and version history.

Example usage

See below some basic sample usages.

Getting Domain Details with getDomainInfo

The returned object will be an instance of Level23\Dynadot\Dto\DomainListResult containing domain information.

List all domains with getDomainList

This will return a Level23\Dynadot\Dto\DomainListResult object containing an array of domain objects. An exception will be thrown when anything went wrong.

Set nameservers for a domain with setNameservers

The setNameservers method returns a NameserverUpdateResult object. An exception will be thrown when something went wrong.

Retrieving contact info with getContactInfo

This returns a Level23\Dynadot\Dto\Contact object with the contact details.

Get list of contacts with getContactList

Set renew option with setRenewOption

The setRenewOption lets you set the renewal setting for a domain. Values for the second argument ($renewOption) can be "donot", "auto", "reset". The method returns a RenewOptionResult object.

Search for domain availability with search

Bulk search for multiple domains with bulkSearch

Register a new domain with registerDomain

Get account information with getAccountInfo

This returns a Level23\Dynadot\Dto\AccountInfo object with your account details.

Available Methods

The following methods are available in the Client class:

Error Handling

The library throws specific exceptions for different error types:

FAQ

I keep getting timeouts!

Make sure your IP address is whitelisted in the Dynadot backend. It can take a while (up to 1 hour) before the IP address is whitelisted.

I am banned from the Dynadot API!

The Dynadot API only allows 1 API call at the same time. It's not allowed to do concurrent API calls. If you do request multiple API calls at the same time you can be banned. The ban will be for 10 to 15 minutes.
Information received via dynadot chat

What's the difference between API Key and API Secret?

The API Key is your public identifier, while the API Secret is used to sign your requests for authentication. Both are required for the API to work properly.


All versions of dynadot-api with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
guzzlehttp/guzzle Version >=6.0
psr/log Version ^2.0|^3.0
ramsey/uuid Version ^4.8
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package level23/dynadot-api contains the following files

Loading the files please wait ....