Download the PHP package yorcreative/laravel-scanator without Composer
On this page you can find all versions of the php package yorcreative/laravel-scanator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download yorcreative/laravel-scanator
More information about yorcreative/laravel-scanator
Files in yorcreative/laravel-scanator
Package laravel-scanator
Short Description A Laravel package that provides functionalities for detecting sensitive information and patterns in the database, helping to ensure data privacy and security by empowering developers to easily integrate database scanning capabilities into their applications and take proactive measures to protect sensitive data.
License MIT
Informations about the package laravel-scanator
Laravel Scanator
A Laravel package that provides functionalities for detecting sensitive information and patterns in the database, helping to ensure data privacy and security by empowering developers to easily integrate database scanning capabilities into their applications and take proactive measures to protect sensitive data.
Installation
install the package via composer:
Publish the assets.
Configuration
Adjusting the Scanators Configuration File
Adjust the configuration file to suite your application, located in /config/scanator.php
.
Adjusting the Scrubber Configuration File
Adjust the regex_loader
field to suite your application, located in /config/scrubber.php
.
For more information on the Scrubber configuration file, please see the source documentation here.
Usage
This package is shipped without implementation. It is shipped as a tool and up to developers to choose how they implement to suite to applications needs.
Detection Manager
The DetectionManager class is an essential component of the Laravel Scanator package. It manages and stores the Detections during the scanning process. It provides methods to record detections, retrieve the list of detections, and obtain the scan start time.
Full Database Scan
This package ships with the ability to analyze and build out database schema and then scans for sensitive information excluding any tables, columns or types from the Scanator configuration file finally to return the Detection Manager class.
Selective Database Scan
This package ships with the ability to selectively scan tables.
Defining Excludable Tables
The configuration file of this package offers the functionality to define excludable tables, allowing you to exclude them from the scanning process.
Defining Excludable Columns
Similarly, you can define excludable columns within the configuration file to prevent the package from scanning them.
Defining Excludable Data Types
To further refine the scanning process, you can specify excludable data types in the configuration file. The package will then disregard these data types during scanning.
Defining Sample Size
For greater control over the scanning procedure, the configuration file allows you to define the sample size extracted from each table.
Scrubber Documentation
This package builds on the RegexRepository provided by the scrubber package. For complete documentation on the scrubber, see here
Regex Class Opt-in
You have the ability through the scrubber configuration file to define what regex classes you want loaded into the application when it is bootstrapped. By default, this package ships with a wildcard value.
Regex Collection & Defining Opt-in
To opt in, utilize the static properties on the RegexCollection class.
Creating Custom Extended Classes
The Scrubber package ships with a command to create custom extended classes and allows further refining of database scans for the Scanator.
This command will create a stubbed out class in App\Scrubber\RegexCollection
. The Scrubber package will autoload
everything from the App\Scrubber\RegexCollection
folder with the wildcard value on the regex_loader
array in the
scrubber config file. You will need to provide a Regex Pattern
and a Testable String
for the class.
Opting Into Custom Extended Classes
The regex_loader
array takes strings, not objects. To opt in to specific custom extended regex classes, define the
class name as a string.
For example if I have a custom extended class as such:
The regex_loader
array should be defined as such:
Testing
Credits
- Yorda
- All Scanator Contributors
- All Scrubber Contributors
All versions of laravel-scanator with dependencies
illuminate/contracts Version ^v9|v10.*
yorcreative/laravel-scrubber Version v2.6.2