epmnzava/connectreseller-laravel

This is a laravel library for domain management with connectresseler

1.0.5 2021-10-11 18:56 UTC

This package is auto-updated.

Last update: 2024-05-12 00:53:28 UTC


README

Latest Version on Packagist Total Downloads Emmanuel Mnzava

ConnectReseller is a reseller arm for OwnRegistrar Inc. an ICANN Accredited Domain Name Registrar. This package is a wrapper of connectreseller service.

Features

Domain Availability Check

Domain Registration

Installation

Version Matrix

Version Laravel PHP Version
1.0.0 8.0 >= 8.0
1.0.1 8.0 >= 7.3 >= 8.0
1.0.2 8.0 >= 7.2.5 >= 8.0

You can install the package via composer:

composer require epmnzava/connectreseller-laravel

Update your config (for Laravel 5.4 and below)

Add the service provider to the providers array in config/app.php:

 Epmnzava\ConnectresellerLaravel\ConnectresellerLaravelServiceProvider::class,

Add the facade to the aliases array in config/app.php:

'DomainApi' => Epmnzava\ConnectresellerLaravel\ConnectresellerLaravelFacade::class,

Publish the package configuration (for Laravel 5.4 and below)

Publish the configuration file and migrations by running the provided console command:

php artisan vendor:publish --provider="Epmnzava\ConnectresellerLaravel\ConnectresellerLaravelServiceProvider"

Usage

Domain Availability Check

domain_exits($domain)

checks if a domain exists returns true if it exists and false if it does not exit

//Request

 $domainapi = new DomainApi;

 if($domainapi->domian_exists($domain))
 	//Domain not available for registration
  else
 	//Domain name available for registration
 

Domain Registration

domain_register(string $domain_name, string $duration, string $iswhoidprotection, string $ns1, string $ns2);

Functionality needed to register a domain

//Request

 $domainapi = new DomainApi;

 $response=$domainapi->domain_register("storewid.com", 1, true, "ns1.storewid.com", "ns2.storewid.com");


response
---------

{
status: false,
message: "Domain failed to be registered"
}

or

{
status: true,
message: "Domain is registered successfully"
}

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email epmnzava@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.