Code Monkey home page Code Monkey logo

sample-registrar-module's Introduction

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

sample-registrar-module's People

Contributors

mattpugh avatar whmcspeter avatar jstanford87 avatar remitur avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.