PHPackages                             los/loslicense - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. los/loslicense

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

los/loslicense
==============

LosLicense provides a module to manage license keys for your ZF2 application

0.9.2(11y ago)65821BSD-3-ClausePHPPHP &gt;=5.4.0

Since Dec 27Pushed 11y ago2 watchersCompare

[ Source](https://github.com/Lansoweb/LosLicense)[ Packagist](https://packagist.org/packages/los/loslicense)[ Docs](http://github.com/Lansoweb/LosLicense)[ RSS](/packages/los-loslicense/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (5)Used By (0)

LosLicense
==========

[](#loslicense)

[![Build Status](https://camo.githubusercontent.com/07dc470f590899a13018036faa688daf6fbe34636fa3defe5755b56e8847d758/68747470733a2f2f7472617669732d63692e6f72672f4c616e736f7765622f4c6f734c6963656e73652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Lansoweb/LosLicense) [![Latest Stable Version](https://camo.githubusercontent.com/061610957dbdcb6e5b2fab09302b7bd3d5a68533be9d628e19fc552f8fd45b61/68747470733a2f2f706f7365722e707567782e6f72672f6c6f732f6c6f736c6963656e73652f762f737461626c652e737667)](https://packagist.org/packages/los/loslicense) [![Total Downloads](https://camo.githubusercontent.com/8af29025ee40fd9a2a4ee1d22e38bf4ccabdce83d34dfa0dc6749befb260544f/68747470733a2f2f706f7365722e707567782e6f72672f6c6f732f6c6f736c6963656e73652f646f776e6c6f6164732e737667)](https://packagist.org/packages/los/loslicense) [![Coverage Status](https://camo.githubusercontent.com/b2bf6042b6957b1f548867136afa2454bd82c9d7d546b69ee9d9edc720f1ed60/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f4c616e736f7765622f4c6f734c6963656e73652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/r/Lansoweb/LosLicense?branch=master) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/d22326da086b23bd20b153d2aa2eb835f76a5ecd6d0499e7546705657f55cad7/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4c616e736f7765622f4c6f734c6963656e73652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Lansoweb/LosLicense/?branch=master) [![SensioLabs Insight](https://camo.githubusercontent.com/9750ab90102e682dfa5011bdc7a8900806ba6df14d67ce7b3991f895b9aa8c3f/68747470733a2f2f696d672e736869656c64732e696f2f73656e73696f6c6162732f692f64633035386430632d623935392d346362362d616561642d3331643830623162613634662e7376673f7374796c653d666c6174)](https://insight.sensiolabs.com/projects/dc058d0c-b959-4cb6-aead-31d80b1ba64f) [![Dependency Status](https://camo.githubusercontent.com/1c81cdea020088e232b8a499c42fc5e7303c137a500e18a67973ba44b7fa0a35/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3534653834373163643165633537333466343030306530612f62616467652e7376673f7374796c653d666c6174)](https://www.versioneye.com/user/projects/54e8471cd1ec5734f4000e0a)

Introduction
------------

[](#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](http://github.com/LansoWeb/LosDomain) to have different license per domain (eg. clients in a SaaS).

ATTENTION!!!
------------

[](#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)

Instalation can be done with composer ou manually

### Installation with composer

[](#installation-with-composer)

For composer documentation, please refer to [getcomposer.org](http://getcomposer.org/).

1. Enter your project directory
2. 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.*"
        }
    }
    ```
3. Run `php composer.phar install`
4. Open `my/project/directory/config/application.config.php` and add `LosLicense` to your `modules`

```
```php
