PHPackages                             robertseghedi/laravel-advanced-security - 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. [Security](/categories/security)
4. /
5. robertseghedi/laravel-advanced-security

ActiveLibrary[Security](/categories/security)

robertseghedi/laravel-advanced-security
=======================================

 This is a fresh Laravel plugin which gets security data from your users and gives you the chance to store it crypted or decrypted, with no stress. Educational purposes only / other purposes but on your own liability.

1.0.0(5y ago)0125MITPHP

Since Apr 29Pushed 5y ago1 watchersCompare

[ Source](https://github.com/robertseghedi/laravel-advanced-security)[ Packagist](https://packagist.org/packages/robertseghedi/laravel-advanced-security)[ RSS](/packages/robertseghedi-laravel-advanced-security/feed)WikiDiscussions main Synced 3d ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Laravel Advanced Security
=========================

[](#laravel-advanced-security)

One of the most optimized plugins for securing the Laravel users accounts.

This is a fresh Laravel plugin which gets security data from your users and gives you the chance to store it crypted or decrypted, with no stress. Educational purposes only / other purposes but on your own liability.

Instalation
-----------

[](#instalation)

First, you have to install the package using composer in your project root folder:

```
composer require robertseghedi/laravel-advanced-security

```

Then, you have to add the provider to your `config/app.php` like that:

```
// your providers

RobertSeghedi\LAS\LASProvider::class,
```

Run the migrate command in order to add the secure-logs table

```
php artisan migrate

```

Information
-----------

[](#information)

Command nameWhat it doesLAS::ip()Gets the authenticated user's IP addressLAS::purify($data)Purifies some stringLAS::os()Gets the authenticated user's operating systemLAS::browser()Gets the authenticated user's browserLAS::file\_size($kb)Transforms numbered KB to **100 GB**LAS::password($length)Generates random numbered-lettered password in the mentioned length - default is 10LAS::pin($length)Generates a custom PIN in the mentioned length - default is 4LAS::ssl()Returns if the actual site is secured or not (SSL)LAS::log($user, $text)Inserts an encrypted log with text to a userLAS::logs($user, $results, $time)Efficiently fetches &amp; caches user logs based on the mentioned criteriaLAS::all\_logs($results, $time)Efficiently fetches &amp; caches all the secure logsUsage
-----

[](#usage)

Now you can start using the package.

### 1. Include it in your controller

[](#1-include-it-in-your-controller)

```
use RobertSeghedi\LAS\Models\LAS;
```

### 2. Start using the tools

[](#2-start-using-the-tools)

```
public function add_post(Request $req)
{
    $post = new Post();
    $post->title = $req->input('title');
    $post->description = $req->input('description');
    $post->user = Auth::user()->id;
    $post->ip = LAS::ip(); // grabs the user IP
    $post->browser = LAS::browser(); // grabs the user browser
    $post->os = LAS::os(); // grabs the user OS
    $saved_post = $post->save();
    if($saved_post) return redirect()->back()->with('success', 'Article posted.');
}
```

```
public function insert_log($user_id = null)
{
    $user = User::find($user_id);
    $log = LAS::log($user_id, "$user->name joined the chat.");
    if($log) return redirect()->back();
}
```

### 3. Do whatever you want with the data

[](#3-do-whatever-you-want-with-the-data)

Follow this package for future updates

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

1840d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/54363288?v=4)[Robert Seghedi](/maintainers/robertseghedi)[@robertseghedi](https://github.com/robertseghedi)

### Embed Badge

![Health badge](/badges/robertseghedi-laravel-advanced-security/health.svg)

```
[![Health](https://phpackages.com/badges/robertseghedi-laravel-advanced-security/health.svg)](https://phpackages.com/packages/robertseghedi-laravel-advanced-security)
```

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[roave/security-advisories

Prevents installation of composer packages with known security vulnerabilities: no API, simply require it

2.9k97.3M6.4k](/packages/roave-security-advisories)[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k16.7M113](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41278.1M118](/packages/robrichards-xmlseclibs)[bjeavons/zxcvbn-php

Realistic password strength estimation PHP library based on Zxcvbn JS

86917.5M63](/packages/bjeavons-zxcvbn-php)[enlightn/security-checker

A PHP dependency vulnerabilities scanner based on the Security Advisories Database.

33732.2M110](/packages/enlightn-security-checker)

PHPackages © 2026

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