zivar/laravel-security

Hardware-bound cryptographic licensing and anti-piracy security package for Laravel applications.

Maintainers

Package info

github.com/ravizulfikar/zivar-laravel-security

pkg:composer/zivar/laravel-security

Transparency log

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.0 2026-08-12 16:21 UTC

This package is auto-updated.

Last update: 2026-08-14 16:04:18 UTC


README

Latest Version on Packagist Software License Build Status PHP Version

Hardware-bound cryptographic licensing and anti-piracy security package for Laravel applications.

๐Ÿ“– Overview

zivar/laravel-security protects commercial Laravel applications against unauthorized server migration and software piracy:

  • ๐Ÿ”’ Hardware Binding Engine: Binds application execution to physical server metrics (BIOS UUID, OS Machine ID, CPU Model, MAC Address).
  • ๐Ÿ”‘ Asymmetric RSA Cryptography: Validates license authenticity using SHA-256 signatures backed by 2048-bit RSA keys.
  • ๐Ÿ›ก๏ธ Early Boot & Global Protection: Automatically intercepts HTTP requests across web and api route groups during framework bootstrapping.
  • โšก Zero Paid Dependencies: Runs natively on standard PHP 8.2+ environments without requiring paid extensions.

๐Ÿ“‹ Requirements

  • PHP: ^8.2 or ^8.3 or ^8.4
  • Laravel Framework: ^10.0 or ^11.0 or ^12.0 or ^13.0
  • OpenSSL Extension: Enabled

๐Ÿš€ Client Installation & Setup Guide

Step 1: Install Package via Composer

Install the package in your Laravel project:

composer require zivar/laravel-security

The Service Provider automatically registers global protection middleware across all HTTP requests.

Step 2: Retrieve Server Hardware Fingerprint

To obtain your server's unique Hardware Fingerprint Hash, execute the following Artisan command:

php artisan security:fingerprint

Output Example:

=== Zivar Security Server Fingerprint ===
Hardware Fingerprint Hash: 8f7d9a102b3c4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f

๐Ÿ‘‰ Copy and send this Hardware Fingerprint Hash to your software vendor to request your official license file.

Step 3: Place Public Verification Key

Copy the public.pem verification key provided by your vendor into your application's storage directory:

storage/app/keys/public.pem

Step 4: Activate Official License Key

Activate your software license file (license.lic) using the Artisan activation command:

php artisan security:activate path/to/license.lic

Output Example:

License key file successfully installed to: storage/app/license.lic
โœ“ License verified successfully!

Step 5: Verify Active License Status

Verify your active license status and hardware match anytime:

php artisan security:status

Output Example:

=== Zivar Security License Status Check ===
Hardware Fingerprint : 8f7d9a102b3c4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b...
License File Path    : storage/app/license.lic
Public Key Path      : storage/app/keys/public.pem

STATUS: VALID โœ“
+---------------+--------------------------------------------------+
| Field         | Value                                            |
+---------------+--------------------------------------------------+
| License ID    | LIC-8A2F9B1C0E4D                                 |
| Client Name   | Authorized Client                                |
| Hardware Hash | 8f7d9a102b3c4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b...   |
| Expires At    | 2027-08-12T21:40:00+07:00                        |
+---------------+--------------------------------------------------+

๐Ÿ› ๏ธ Available Client Commands

Command Description
php artisan security:fingerprint Display current server hardware fingerprint hash.
php artisan security:activate {file} Install and activate license file on this server.
php artisan security:status Check active license details and hardware match.

โš™๏ธ Environment Variables (Optional)

You can customize license paths via your application's .env file:

ZIVAR_SECURITY_ENABLED=true
ZIVAR_LICENSE_PATH=storage/app/license.lic
ZIVAR_PUBLIC_KEY=storage/app/keys/public.pem
ZIVAR_ENFORCE_HARDWARE=true

๐Ÿงช Testing

Run PHPUnit tests:

vendor/bin/phpunit

๐Ÿ“ฌ Kontak & Sosial Media (Author)

Jika Anda memiliki pertanyaan, saran pengembangan, atau ingin berkolaborasi, silakan hubungi pengembang melalui:

WhatsApp LinkedIn Instagram

๐Ÿ“„ License

The MIT License (MIT). Please see License File for details.