Download the PHP package lvmorales1/privacy-scanner without Composer

On this page you can find all versions of the php package lvmorales1/privacy-scanner. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package privacy-scanner

Privacy Scanner

Scans files and directories for secrets and personal data that shouldn't be in your codebase — API keys, database passwords, CPFs, emails, and more.

Install

As a project dependency:

For standalone development:

Usage

When installed as a dependency:

When running standalone:

Example output

Exit code is 0 when clean, 1 when findings are found.

Configuration

Create a privacy-scan.json file in your project root to control when the scanner exits with 1:

Option Default Description
fail_on_score 1 Minimum per-finding risk score to trigger exit 1
fail_on_severity "LOW" Minimum severity to trigger exit 1. Accepted values: LOW, MEDIUM, HIGH, CRITICAL

Both thresholds must be met for a finding to trigger exit 1. For example, to only fail on HIGH or CRITICAL findings:

Rules

Severity is derived from the risk score: LOW 1–3 · MEDIUM 4–5 · HIGH 6–7 · CRITICAL 8–10

Secrets

Rule Category Score Severity
SSH Private Key ssh_private_key 10 CRITICAL
AWS Access Key aws_key 9 CRITICAL
Stripe Live Key stripe_key 9 CRITICAL
Database Connection URL database_url 8 CRITICAL
GitHub Token github_token 8 CRITICAL
OpenAI API Key openai_key 8 CRITICAL
JSON Web Token jwt 7 HIGH

Personal Data

Rule Category Score Severity
CPF (Brazilian Tax ID) cpf 6 HIGH
CNPJ (Brazilian Company ID) cnpj 5 MEDIUM
Brazilian Phone Number phone_br 4 MEDIUM
Email Address email 3 LOW

Adding a new rule

Create a class in src/Rules/Secrets/ or src/Rules/PersonalData/, extend AbstractRule, and register it in the corresponding detector.

Tests


All versions of privacy-scanner with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
symfony/console Version ^6.4|^7.0
symfony/finder Version ^6.4|^7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package lvmorales1/privacy-scanner contains the following files

Loading the files please wait ...