los / loslicense
LosLicense provides a module to manage license keys for your ZF2 application
Requires
- php: >=5.4.0
- zendframework/zendframework: >=2.3.2,<3.0.0
Requires (Dev)
- satooshi/php-coveralls: dev-master
Suggests
- los/losbase: los/losbase for some abstract classes to speed development
- los/loslog: los/loslog for logging
- los/losui: los/losui for twitter bootstrap 3 styling, jquery, chosen and other libraries
This package is auto-updated.
Last update: 2024-12-26 03:49:29 UTC
README
Introduction
This is a module to manage license keys for your application.
It can create and validate licenses based on configurable options:
- Date (ie. evaluation time or expiry date. Can use start, end or both)
- Domain (e.g. test.com)
You can define application features with the license, and check for them at runtime to limit the funcionality (eg. demo version).
You can combine this module with LosDomain to have different license per domain (eg. clients in a SaaS).
ATTENTION!!!
This module does not encode your application or protects your code in ANY way (like Zend Guard and ionCube), just offers a way to generate and validate license informations.
Instalation
Instalation can be done with composer ou manually
Installation with composer
For composer documentation, please refer to getcomposer.org.
-
Enter your project directory
-
Create or edit your
composer.json
file with following contents (minimum stability is required since the module still has frequent updates):{ "minimum-stability": "alpha", "require": { "los/loslicense": "0.*" } }
-
Run
php composer.phar install
-
Open
my/project/directory/config/application.config.php
and addLosLicense
to yourmodules
```php
<?php
return array(
'modules' => array(
'Application',
'LosLicense'
),
'module_listener_options' => array(
'config_glob_paths' => array(
'config/autoload/{,*.}{global,local}.php',
),
'module_paths' => array(
'./module',
'./vendor',
),
),
);
```
Installation without composer
- Clone this module LosLicense to your vendor directory
- Enable it in your config/application.config.php like the step 4 in the previous section.
Usage
To change the options, copy the file loslicense.global.php.dist to your config/autoload/ , rename it to loslicense.global.php and change the default options. the description of each options is covered in the next section.
List of options
Coming soon!