itcrackers/helper

There is no license information available for the latest version (v1.1.1) of this package.

Common utility package for Core PHP and PHP frameworks, providing masking, validation, and formatting helpers.

Maintainers

Package info

github.com/ITCrackers/masking-package

pkg:composer/itcrackers/helper

Transparency log

Statistics

Installs: 42

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

v1.1.1 2026-07-07 10:12 UTC

This package is auto-updated.

Last update: 2026-08-14 07:15:38 UTC


README

Latest Stable Version Total Downloads License PHP Version

A lightweight, framework-independent PHP utility package that provides Masking, Validation, and Formatting helpers for Core PHP and modern PHP frameworks such as Laravel.

๐Ÿ“– Table of Contents

  • Features
  • Requirements
  • Compatibility
  • Installation
  • Available Modules
  • Quick Start
  • Usage
  • Examples
  • Testing
  • Project Structure
  • Versioning
  • Changelog
  • Contributing
  • Security
  • Support
  • License
  • Author

โœจ Features

  • Framework Independent
  • Supports Core PHP
  • Supports Laravel
  • PSR-4 Autoloading
  • Lightweight
  • High Performance
  • Easy Integration
  • Zero Configuration
  • Clean API
  • Production Ready
  • Composer Installable
  • Fully Object-Oriented

โš™๏ธ System Requirements

Software Minimum Version
PHP 7.0+
Composer 2.4+

๐Ÿ“‹ Compatibility

Platform Support
Core PHP โœ…
Laravel 8โ€“13 โœ…
Symfony โœ…
CodeIgniter โœ…
CakePHP โœ…
Slim Framework โœ…
Yii Framework โœ…

๐Ÿ“ฆ Installation

Install the package via Composer.

composer require itcrackers/helper

๐Ÿš€ Quick Start

Core PHP

<?php

require 'vendor/autoload.php';

use ITCrackers\Helper\Masking;

echo Masking::email('john@example.com');

Laravel

use ITCrackers\Helper\Masking;

echo Masking::email('john@example.com');

๐Ÿ“š Available Modules

๐Ÿ” Masking

Hide sensitive information before displaying it.

Method Description
email() Mask Email Address
phone() Mask Mobile Number
aadhaar() Mask Aadhaar Number
pan() Mask PAN Number
passport() Mask Passport Number
account() Mask Bank Account Number
card() Mask Credit/Debit Card Number

โœ… Validation

Validate commonly used data formats.

Method Description
email() Validate Email Address
phone() Validate Mobile Number
aadhaar() Validate Aadhaar Number
pan() Validate PAN Number
ifsc() Validate IFSC Code
gstin() Validate GSTIN
passport() Validate Passport Number
pincode() Validate PIN Code
url() Validate URL
ip() Validate IP Address
ipv4() Validate IPv4 Address
ipv6() Validate IPv6 Address
uuid() Validate UUID
macAddress() Validate MAC Address
password() Validate Password Strength
creditCard() Validate Credit Card
upi() Validate UPI ID
vehicleNumber() Validate Vehicle Registration Number

๐Ÿ’ป Usage

Core PHP

<?php

require 'vendor/autoload.php';

use ITCrackers\Helper\Masking;
use ITCrackers\Helper\Validation;

echo Masking::email('john@example.com');

echo Masking::phone('8619844326');

Validation::email('john@example.com');

Validation::phone('8619844326');

Laravel

<?php

use ITCrackers\Helper\Masking;
use ITCrackers\Helper\Validation;

Masking::aadhaar('123412341234');

Validation::aadhaar('123412341234');

๐Ÿ“– Examples

Email Masking

Masking::email('john@example.com');

Output

jo***@example.com

Phone Masking

Masking::phone('8619844326');

Output

86******26

Aadhaar Masking

Masking::aadhaar('123412341234');

Output

XXXXXXXX1234

PAN Masking

Masking::pan('ABCDE1234F');

Output

ABCXXXXXXF

Email Validation

Validation::email('john@example.com');

Output

true

Phone Validation

Validation::phone('8619844326');

Output

true

Aadhaar Validation

Validation::aadhaar('123412341234');

Output

true

PAN Validation

Validation::pan('ABCDE1234F');

Output

true

๐Ÿงช Running Tests

Run PHPUnit tests.

vendor/bin/phpunit

๐Ÿ“ Project Structure

itcrackers-helper/
โ”‚
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ Masking.php
โ”‚   โ”œโ”€โ”€ Validation.php
โ”‚   โ””โ”€โ”€ ...
โ”‚
โ”œโ”€โ”€ tests/
โ”‚
โ”œโ”€โ”€ composer.json
โ”œโ”€โ”€ phpunit.xml
โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ CHANGELOG.md
โ”œโ”€โ”€ CONTRIBUTING.md
โ”œโ”€โ”€ LICENSE
โ””โ”€โ”€ .gitignore

๐Ÿ”– Versioning

This project follows Semantic Versioning (SemVer).

Version Description
Major (X.0.0) Breaking Changes
Minor (1.X.0) New Features
Patch (1.0.X) Bug Fixes

Example

v1.0.0
v1.1.0
v1.1.1

๐Ÿ“œ Changelog

See the CHANGELOG.md file for complete release history.

๐Ÿค Contributing

Contributions are always welcome.

Development Workflow

git clone https://github.com/ITCrackers/helper.git

cd helper

composer install

Create a feature branch.

git checkout -b feature/new-feature

Commit your changes.

git commit -m "Add new feature"

Push your branch.

git push origin feature/new-feature

Finally, create a Pull Request.

๐Ÿ”’ Security

If you discover any security vulnerability, please create a private issue or contact the maintainer before publicly disclosing it.

โญ Support

If you find this package useful, please consider:

  • โญ Starring the repository on GitHub
  • ๐Ÿž Reporting bugs
  • ๐Ÿ’ก Suggesting new features
  • ๐Ÿค Contributing to the project

๐Ÿ“„ License

This package is open-sourced software licensed under the MIT License.

See the LICENSE file for more information.

๐Ÿ‘จโ€๐Ÿ’ป Author

ITCrackers

GitHub

https://github.com/ITCrackers

Packagist

https://packagist.org/packages/itcrackers/helper

โค๏ธ Made with PHP by ITCrackers