Creating license in wordpress plugin

by 6 replies
7
I would like to release a plugin but I would want to put in licensing.

I would envision it as, upon purchase, my system will generate a code. The user will install the plugin and use the code. This code will be sent to my server, along with the URL sent from.

Is there such code available?
#programming #creating #license #plugin #wordpress
  • the best way i think is to use an API key system and then encode your PHP using something along the lines of Zend Guard...
    • [1] reply
    • Zend Guard is no good. Ioncube is what you're looking for. Also, this code isn't very hard to write either:

      $code = $_REQUEST['code'];

      if (empty($code)) exit;
      //You could validate it for length and other things here..

      $response = file_get_contents('http://yoursite.com/somefile.php?code=' . $code);

      //Now do something with the response, for this example, I'll write it to a text file
      file_put_contents($response, 'response.txt', FILE_APPEND);
  • Try easy digital downloads plugin and purchase the extension _https://easydigitaldownloads.com/extension/software-licensing/
  • Guys, please read the post completely.

  • Most if not all licensing schemes require encrypted of obfuscated code which many consider a bad thing. I rarely, almost never, will even consider a plugin or theme that incorporates it.

    Better would be to include automatic update from your server and registration of the sites required where installed. That way pirates would be stuck with obsolete, maybe buggy, code in the future.

Next Topics on Trending Feed

  • 7

    I would like to release a plugin but I would want to put in licensing. I would envision it as, upon purchase, my system will generate a code. The user will install the plugin and use the code. This code will be sent to my server, along with the URL sent from.