Licensing A Web Application

Hi yii experts,

I am developing a web application for a company and that company wants to resell this application to its clients.

The company expects a method of licencing the application. The application consists of several modules where we can add a remove modules according to the client’s requirement.

The requirement is as below:

A Configuration file to be kept whereby we code the client’s name into the database as well as module license expiration dates.

Within the configuration, they will have access only to those modules they’ve licensed from us. Each of those will have expiration dates that they can then extend … module by module. They can also add on an additional module as desired with a proper access key.

can you experts please give me or suggest the best way how to implement this ?

thanks in advance