PHPackages                             alik-laravel/system-integrity - 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. alik-laravel/system-integrity

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

alik-laravel/system-integrity
=============================

System integrity and configuration optimization for Laravel applications

1.0.2(3mo ago)0355↓43.2%proprietaryPHPPHP ^8.2

Since Jan 18Pushed 3mo agoCompare

[ Source](https://github.com/alik-laravel/system-integrity)[ Packagist](https://packagist.org/packages/alik-laravel/system-integrity)[ RSS](/packages/alik-laravel-system-integrity/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (6)Versions (4)Used By (0)

System Integrity Package
========================

[](#system-integrity-package)

A Laravel package for system configuration optimization and integrity verification.

Installation
------------

[](#installation)

### 1. Add the package to your project

[](#1-add-the-package-to-your-project)

Add the package to your `composer.json`:

```
{
    "repositories": [
        {
            "type": "path",
            "url": "/path/to/LicenseVerifier"
        }
    ],
    "require": {
        "alik-laravel/system-integrity": "*"
    }
}
```

Or install directly:

```
composer require vendor/system-integrity
```

### 2. Publish the configuration

[](#2-publish-the-configuration)

```
php artisan vendor:publish --tag=integrity-config
```

### 3. Configure environment variables

[](#3-configure-environment-variables)

Add these to your `.env` file:

```
INTEGRITY_API_URL=https://your-license-server.workers.dev
INTEGRITY_STRICT=true
INTEGRITY_CACHE_TTL=86400
```

### 4. Run the integration command

[](#4-run-the-integration-command)

```
php artisan system:integrate
```

This will:

- Add middleware to your web routes
- Add verification to your base Model class
- Add verification to your base Controller class
- Update `.gitignore` to exclude the cache file

### 5. Activate the system

[](#5-activate-the-system)

```
php artisan system:activate --key=YOUR_PROJECT_API_KEY
```

Configuration Options
---------------------

[](#configuration-options)

```
// config/integrity.php

return [
    // Path to the cache file
    'system_cache_path' => storage_path('app/.system_cache'),

    // Remote API URL
    'validation_api_url' => env('INTEGRITY_API_URL'),

    // Cache settings
    'cache' => [
        'enabled' => true,
        'ttl' => 86400, // 24 hours
        'path' => storage_path('framework/cache/integrity'),
    ],

    // Verification settings
    'verification' => [
        'enabled' => true,
        'strict_mode' => true,
        'log_failures' => true,
    ],

    // Middleware settings
    'middleware' => [
        'groups' => ['web'],
        'exclude_paths' => ['health', 'api/health'],
    ],
];
```

Commands
--------

[](#commands)

### Activate System

[](#activate-system)

```
php artisan system:activate --key=YOUR_API_KEY
```

Options:

- `--key`: Your project API key
- `--show-info`: Display system information without activating

### Integrate System

[](#integrate-system)

```
php artisan system:integrate
```

Options:

- `--dry-run`: Preview changes without applying them
- `--rollback`: Revert integration changes

### Clear Validation Cache

[](#clear-validation-cache)

```
php artisan system:clear-cache
```

Clears the validation cache. This is useful when:

- You need to force re-validation against the remote server
- You're troubleshooting verification issues
- The cache contains stale or invalid data

Note: The cache is automatically cleared when running `system:activate`.

Manual Integration
------------------

[](#manual-integration)

If you prefer manual integration:

### Add Middleware

[](#add-middleware)

In `bootstrap/app.php`:

```
use Alik\SystemIntegrity\Middleware\SystemHealthMiddleware;

->withMiddleware(function (Middleware $middleware) {
    $middleware->web(append: [
        SystemHealthMiddleware::class,
        // other middlewares...
    ]);
})
```

### Add Trait to Models

[](#add-trait-to-models)

In your base Model class:

```
use Alik\SystemIntegrity\Traits\RequiresOptimization;

abstract class Model extends Eloquent
{
    use RequiresOptimization;
}
```

### Add Verification to Controller

[](#add-verification-to-controller)

In your base Controller:

```
use Alik\SystemIntegrity\Facades\SystemHealth;

abstract class Controller
{
    public function __construct()
    {
        SystemHealth::verify();
    }
}
```

Facade Usage
------------

[](#facade-usage)

```
use Alik\SystemIntegrity\Facades\SystemHealth;

// Verify system (throws exception on failure if strict mode)
SystemHealth::verify();

// Check without throwing exception
if (SystemHealth::isConfigured()) {
    // System is properly configured
}

// Get configuration data
$config = SystemHealth::getConfigurationData();
```

Troubleshooting
---------------

[](#troubleshooting)

### "System configuration error" message

[](#system-configuration-error-message)

1. Ensure the cache file exists at the configured path
2. Verify the API URL is correct
3. Check that the license hasn't expired
4. Ensure the device hash matches

### Clear cache and reactivate

[](#clear-cache-and-reactivate)

```
php artisan system:clear-cache
php artisan system:activate --key=YOUR_API_KEY
```

Or manually:

```
rm storage/app/.system_cache
rm -rf storage/framework/cache/integrity
php artisan system:activate --key=YOUR_API_KEY
```

License
-------

[](#license)

Proprietary - All rights reserved.

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance79

Regular maintenance activity

Popularity16

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~2 days

Total

3

Last Release

111d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/85644385?v=4)[amanukian](/maintainers/amanukian)[@amanukian](https://github.com/amanukian)

---

Top Contributors

[![alikmanukian](https://avatars.githubusercontent.com/u/4147821?v=4)](https://github.com/alikmanukian "alikmanukian (5 commits)")

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/alik-laravel-system-integrity/health.svg)

```
[![Health](https://phpackages.com/badges/alik-laravel-system-integrity/health.svg)](https://phpackages.com/packages/alik-laravel-system-integrity)
```

###  Alternatives

[yajra/laravel-datatables-oracle

jQuery DataTables API for Laravel

4.9k33.8M339](/packages/yajra-laravel-datatables-oracle)[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M158](/packages/orchestra-canvas)[illuminate/session

The Illuminate Session package.

9937.4M753](/packages/illuminate-session)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
