PHP Classes

Better PHP License Manager System: Manage licenses for software customers

Recommend this page to a friend!
  Info   View files Example   View files View files (1)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 177 All time: 8,720 This week: 116Up
Version License PHP version Categories
swlicense 1.0.1Proprietary License5PHP 5, Utilities and Tools
Description 

Author

This package can manage licenses for software customers.

It provides one class that takes the details of a given customer of a software system like his name and email address.

The software customer object can be passed to other classes that perform operations to manage license like:

- Add or buy a license with options to limit to a single or unlimited uses
- Add or delete a Web site URL to be associated to a software license
- Display details of a customer, license options or associated Web sites of a software license

Picture of Chi H.
  Performance   Level  
Name: Chi H. <contact>
Classes: 28 packages by
Country: France France
Age: 38
All time rank: 34622 in France France
Week rank: 76 Up5 in France France Up
Innovation award
Innovation award
Nominee: 22x

Winner: 3x

Example

<?php
/*
* Copyright (c) 2019 Chi Hoang
* All rights reserved
*/

error_reporting(E_ERROR | E_PARSE);

require_once (
"decorator.php");
require_once (
"license.php");
require_once (
"customer.php");
require_once (
"pluslic.php");
require_once (
"infinilic.php");
require_once (
"singlelic.php");
require_once (
"websites.php");

use
PHPUnit\Framework\TestCase;

$customer=new SwLicense\Customer("John","Doe","JohnDoe@test.com");
$customer=new SwLicense\AddInfiniteLicense($customer);
$customer=new SwLicense\AddWebsite($customer,"www.test1.com");
$customer=new SwLicense\AddWebsite($customer,"www.test2.com");
$customer=new SwLicense\AddWebsite($customer,"www.test3.com");
$customer=new SwLicense\AddWebsite($customer,"www.test4.com");

echo
$customer->order(new SwLicense\License("Customer"));
echo
$customer->order(new SwLicense\License("License"));
echo
$customer->order(new SwLicense\License("Websites"));

$customer=new SwLicense\AddSingleLicense($customer);
$customer=new SwLicense\AddWebsite($customer,"www.test5.com");
$customer=new SwLicense\DeleteWebsite($customer,"www.test1.com");
$customer=new SwLicense\DeleteWebsite($customer,"www.test3.com");
$customer=new SwLicense\AddWebsite($customer,"www.test6.com");

echo
$customer->order(new SwLicense\License("Customer"));
echo
$customer->order(new SwLicense\License("License"));
echo
$customer->order(new SwLicense\License("Websites"));

$customer=new SwLicense\AddPlusLicense($customer);
echo
$customer->order(new SwLicense\License("Customer"));
echo
$customer->order(new SwLicense\License("License"));
echo
$customer->order(new SwLicense\License("Websites"));

echo
$customer->order(new SwLicense\License("Debug"));


Example

<?php
/*
* Copyright (c) 2019 Chi Hoang
* All rights reserved
*/

error_reporting(E_ERROR | E_PARSE);

require_once (
"decorator.php");
require_once (
"license.php");
require_once (
"customer.php");
require_once (
"pluslic.php");
require_once (
"infinilic.php");
require_once (
"singlelic.php");
require_once (
"websites.php");

use
PHPUnit\Framework\TestCase;

$customer=new SwLicense\Customer("John","Doe","JohnDoe@test.com");
$customer=new SwLicense\AddInfiniteLicense($customer);
$customer=new SwLicense\AddWebsite($customer,"www.test1.com");
$customer=new SwLicense\AddWebsite($customer,"www.test2.com");
$customer=new SwLicense\AddWebsite($customer,"www.test3.com");
$customer=new SwLicense\AddWebsite($customer,"www.test4.com");

echo
$customer->order(new SwLicense\License("Customer"));
echo
$customer->order(new SwLicense\License("License"));
echo
$customer->order(new SwLicense\License("Websites"));

$customer=new SwLicense\AddSingleLicense($customer);
$customer=new SwLicense\AddWebsite($customer,"www.test5.com");
$customer=new SwLicense\DeleteWebsite($customer,"www.test1.com");
$customer=new SwLicense\DeleteWebsite($customer,"www.test3.com");
$customer=new SwLicense\AddWebsite($customer,"www.test6.com");

echo
$customer->order(new SwLicense\License("Customer"));
echo
$customer->order(new SwLicense\License("License"));
echo
$customer->order(new SwLicense\License("Websites"));

$customer=new SwLicense\AddPlusLicense($customer);
echo
$customer->order(new SwLicense\License("Customer"));
echo
$customer->order(new SwLicense\License("License"));
echo
$customer->order(new SwLicense\License("Websites"));

echo
$customer->order(new SwLicense\License("Debug"));


  Files folder image Files  
File Role Description
Accessible without login Plain text file example.php Example Example

 Version Control Unique User Downloads Download Rankings  
 0%
Total:177
This week:0
All time:8,720
This week:116Up