PHPackages                             mx-solutions/mx-security-tools - 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. mx-solutions/mx-security-tools

ActiveProject[Security](/categories/security)

mx-solutions/mx-security-tools
==============================

Collection of utilities designed to enhance cybersecurity and protect softwares

v1.0.2(1y ago)24MITPHPPHP &gt;=8.4.3

Since Feb 3Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Mx-solutions/mx-security-tools)[ Packagist](https://packagist.org/packages/mx-solutions/mx-security-tools)[ RSS](/packages/mx-solutions-mx-security-tools/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (1)Versions (4)Used By (0)

Mx-Solutions
============

[](#mx-solutions)

Security Tools
--------------

[](#security-tools)

### table of contents

[](#table-of-contents)

1. General Description
2. Code Quality
3. Main Features
4. Installation
5. Usage
6. Advanced Configuration
7. Contributions
8. License

#### General Description

[](#general-description)

This package is designed to simplify the safe and customizable generation of random elements in PHP projects.

#### Code Quality

[](#code-quality)

PHP 8.4+ Compatibility:
=&gt; Fully compatible with PHP 8.4 and later versions.

PSR Compliance:
=&gt; The codebase adheres to PHP Standards Recommendations (PSRs) including:
\- PSR-1 (Basic Coding Standard)
\- PSR-4 (Autoloading Standard)
\- PSR-12 (Extended Coding Style)

Static Analysis:
=&gt; Validated at the highest level of PHPStan analysis, ensuring code reliability and reducing potential runtime errors.

Extensive Testing:
=&gt; Comprehensive unit and integration tests to ensure reliability and prevent regressions.

Modern PHP Features:
=&gt; Utilizes named arguments (introduced in PHP 8.0), enhancing code readability and reducing errors from argument order.

Secure By Design:
=&gt; Security considerations are built into the core architecture and design of the software.

SOLID Principles:
=&gt; Structured following SOLID principles to ensure maintainability and scalability.

YAGNI (You Ain't Gonna Need It):
=&gt; Implement features only when they are necessary, not when you anticipate needing them.

DRY (Don't Repeat Yourself):
=&gt; Eliminates redundancy by abstracting common functionalities.

KISS (Keep It Simple, Stupid):
=&gt; Maintains simplicity and avoids unnecessary complexity.

By adhering to these principles and practices, the goal is to provide a robust, maintainable, and secure package for our users.

#### Main Features

[](#main-features)

- Random strong and secure password generation
- Random number generation
- Random key generation
- Customization of characters used (lowercase, uppercase, numbers, special characters)

#### Installation

[](#installation)

The easiest way to get started with Mx-Solutions Security Tools is to go through composer to install or require the PHP package.

```
composer require mx-solutions/mx-security-tools
```

N.B.: Due to security vulnerabilities identified in previous versions of PHP, this package requires PHP version 8.4.3

### Git Clone

[](#git-clone)

You can also download the Mx-Solutions Security Tools source code directly from the Git clone:

```
git clone https://github.com/mx-solutions/mx-security-tools
```

Package also available on the Packagist.org website

#### Usage

[](#usage)

Generate random password (Quick Use):

```
// Require Composer PSR Classes Autoloader
require_once 'vendor/autoload.php';

use MxSolutions\MxSecurityTools\Password;

echo 'Mx-Solution Security Tools Package' . "\n";
echo '[DEMO MODE]' . "\n\n";

echo 'Generate random 16 characters strong password' . "\n";
$password = Password::generate();
echo 'Password: ' . $password . "\n\n";
```

#### Advanced Configuration

[](#advanced-configuration)

Generate random password with additionnal options:

```
echo 'Generate random 64 characters strong password' . "\n";
$password = Password::generate(
    length: 64,
    useUpper: true,
    useLower: true,
    useDigits: true,
    useSymbols: true
);
echo 'Password: ' . $password . "\n\n";
```

#### Contributions

[](#contributions)

Interested in participating in this project?
At the moment, you can:

- report bugs
- request new features to be added
- propose a translation of all or part of the documentation
- make a donation to support the project.

#### License

[](#license)

This project is licensed under the MIT License
2017 (c) Mx Solutions
See the LICENSE file for details

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance40

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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 ~0 days

Total

3

Last Release

515d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/189600?v=4)[Xavier Mouligneau](/maintainers/XavierM)[@XavierM](https://github.com/XavierM)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/mx-solutions-mx-security-tools/health.svg)

```
[![Health](https://phpackages.com/badges/mx-solutions-mx-security-tools/health.svg)](https://phpackages.com/packages/mx-solutions-mx-security-tools)
```

###  Alternatives

[phpro/grumphp

A composer plugin that enables source code quality checks.

4.3k16.7M1.0k](/packages/phpro-grumphp)[symfony/runtime

Enables decoupling PHP applications from global state

74798.8M1.0k](/packages/symfony-runtime)[drupal/core-vendor-hardening

Hardens the vendor directory for when it's in the docroot.

174.9M48](/packages/drupal-core-vendor-hardening)[drupal/core-composer-scaffold

A flexible Composer project scaffold builder.

5344.1M564](/packages/drupal-core-composer-scaffold)[drupal/core-project-message

Adds a message after Composer installation.

2124.7M203](/packages/drupal-core-project-message)[drupal-composer/drupal-paranoia

Composer Plugin for improving the security of composer-based Drupal projects by moving all PHP files out of docroot.

662.2M3](/packages/drupal-composer-drupal-paranoia)

PHPackages © 2026

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