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 (9)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 182 This week: 1All time: 8,690 This week: 560Up
Version License PHP version Categories
swlicense 1.0.1Proprietary License5PHP 5, 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: 39
All time rank: 34222 in France France
Week rank: 106 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"));



  Files folder image Files  
File Role Description
Plain text file customer.php Class class file
Plain text file decorator.php Class class file
Accessible without login Plain text file example.php Example Example
Plain text file infinilic.php Class class file
Plain text file license.php Class class file
Plain text file pluslic.php Class class file
Plain text file singlelic.php Class class file
Accessible without login Plain text file unittest.hp Test Unit Test
Plain text file websites.php Class class file

 Version Control Unique User Downloads Download Rankings  
 0%
Total:182
This week:1
All time:8,690
This week:560Up