PHP: Namecheap.com API Class

I built a simple to use class in PHP for the namecheap.com API. It supports all of Namecheap’s API methods. I released the code on GitHub.

Example of usage:

<?php
require 'namecheap.class.php';
$username = 'YOUR USERNAME';
$apiKey = 'YOUR API KEY';
$clientIp = 'IP WHERE THIS YOUR SCRIPT IS HOSTED';
$namecheap = new Namecheap ($username, $apiKey, $clientIp) ;
$data["Command"] = "namecheap.ssl.getList";
$returned = $namecheap->request($data);
print_r($returned)
 ?>

GitHub release: https://github.com/nake89/namecheap

Kevin Kivi

http://kevinkivi.com

I am a professional software developer. My software interests include PHP, Perl, React Native, Node.js and tinkering with anything Linux related. I also have front-end knowledge.

Among other things, on my spare time I do ultra-running, swimming, software developing for fun and watch Mr. Robot.