Skip to content

WHMCS/sample-registrar-module

Repository files navigation

WHMCS Sample Registrar Module

Summary

Registrar Modules allow you to create modules that allow for the registration and management of domain names in WHMCS.

The sample files here demonstrates how a registrar module for WHMCS should be structured and exercises all supported functionality.

For more information, please refer to the documentation at:

https://developers.whmcs.com/domain-registrars/

Getting Started

Clone the sample registrar module locally:

git clone [email protected]:WHMCS/sample-registrar-module.git

Rename the module directory and file to your desired module name:

mv modules/registrars/registrarmodule/registrarmodule.php modules/registrars/registrarmodule/newmodule.php
mv modules/registrars/registrarmodule/ modules/registrars/newmodule/

Open the newmodule.php file and replace all occurencies of registrarmodule_ with the new name, in this instance newmodule_.

Login to the WHMCS Admin Area and navigate to Setup > Products > Domain Registrars to activate.

Recommended Module Content

The recommended structure of a registrar module is as follows.

 registrarmodule/
  |- lib/
  |- templates/
  |- tests/
  |  hooks.php
  |  logo.png
  |  registrarmodule.php

Minimum Requirements

For the latest WHMCS minimum system requirements, please refer to https://docs.whmcs.com/System_Requirements

We recommend your module follows the same minimum requirements wherever possible.

Tests

We strongly encourage you to write unit tests for your work. Within this SDK we provide a sample unit test based upon the widely used PHPUnit.

Useful Resources

WHMCS Limited

About

Sample domain registrar module for WHMCS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages