How to encode and license my laravel project using ioncube?

Viewed 3996

I want to deploy my laravel project on our client machine which has no network access .I have to install it on his machine on local server. However I don't want to lose the source code if somebody tries to hack it.

Searched and found that ioncube encoder is a perfect solution. I did encode my necessary project files. It was all good until licensing of the product.

We are planning to give a 1 year license which can be renewed upon entering a pattern that he gets if he decides to continue with us(also if he pays).

This user guide helps me till encoding and first time licensing of the product. I am using laravel 5.2 , mysql and angular for the project.

./make_license --passphrase **** --expire-in 1h --header-line '<?php exit(0);?>'

I have followed this tutorial also.

Problem begins right from the license expiry. If license expires , server throws a fatal error. Capturing fatal error exception for licensing 'll hide all other fatal errors from me which is not ideal.

if($exception instanceof FatalErrorException)
{
    return response(view('error.license'), 400);
}

What is the best method that I can implement here, for renewing license?

Also how can I catch the fatal error exception of ioncube license expiry separately in laravel?

Thank you

0 Answers
Related