Domains.co.za has an eloquent API. This is a wrapper to make it testable using Laravel's HTTP client and mocking.
Domains.co.za API reference: https://docs.domains.co.za
https://docs.domains.co.za/#authentication-2
DOMAINSCOZA_USERNAME
DOMAINSCOZA_PASSWORD
Live URL : https://api.domains.co.za/api
Development URL : https://lapi-dev.domains.co.za/api
Note: Contact support to get a dev environment setup
API Version : 5.0.19
POST https://api.domains.co.za/api/login
You will receive a bearer token to be used in the Authorization header for all subsequent requests.
https://docs.domains.co.za/#list
You can install the package via composer:
composer require fintech-systems/domainscoza-api
You can publish the config file with:
php artisan vendor:publish --tag="domainscoza-config"
This is the contents of the published config file:
return [
'username' => env('DOMAINSCOZA_USERNAME'),
'password' => env('DOMAINSCOZA_PASSWORD'),
];
Optionally, you can publish the views using
php artisan vendor:publish --tag="domainscoza-api-views"
$domainsCoza = new FintechSystems\DomainsCoza();
echo $domainsCoza->echoPhrase('Hello, FintechSystems!');
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.