PHP Classes

Better PHP License Manager System: Manage licenses for software customers

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 185 All time: 8,654 This week: 47Up
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: 33922 in France France
Week rank: 163 Up9 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 (9)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:185
This week:0
All time:8,654
This week:47Up