erjon/laravel_license

Package to give a project an license and prevent installation if client doesn't have it

v0.1 2024-07-26 09:45 UTC

This package is auto-updated.

Last update: 2025-05-26 11:39:12 UTC


README

Create licenses for your website

Installation

composer require erjon/laravel_license

Publish files

php artisan vendor:publish --tag=license

This will create two files in your project

  • config/vendor/license/license.php
  • views/vendor/license/activate.blade.php

Migrate

You can migrate if your website uses database

php artisan migrate

Add license

php artisan license:add ABCD-EFGH-IJKL

Activate the license when you first install the project

1. By command line

php artisan license:activate ABCD-EFGH-IJKL

2. Just straight up open the website and insert the license in the form provided.

Things to consider

  • If you activate the license before connecting to the database, you will be required to provide the license one more time.
  • License should be 8 to 30 characters long.
  • Someone with enough knowledge of php/laravel or just programming in general can easily copy the existing project.
  • License characters allowed are ascii characters from 33 to 122. https://www.ascii-code.com