PHPackages                             alvarofpp/masks - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. alvarofpp/masks

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

alvarofpp/masks
===============

A package to mask your variables or model's attributes.

1.1.2(5y ago)715.2k—6.7%MITPHPPHP &gt;=7.2.0

Since Jun 1Pushed 5y ago1 watchersCompare

[ Source](https://github.com/alvarofpp/laravel-masks)[ Packagist](https://packagist.org/packages/alvarofpp/masks)[ Docs](https://github.com/alvarofpp/laravel-masks)[ RSS](/packages/alvarofpp-masks/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (5)Used By (0)

masks
=====

[](#masks)

[![Packagist Version](https://camo.githubusercontent.com/df39bd3763ea2ed8788734535b508c4c97e162405ec98dbe65aa31410fe8c568/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616c7661726f6670702f6d61736b73)](https://packagist.org/packages/alvarofpp/masks)[![License](https://camo.githubusercontent.com/074b89bca64d3edc93a1db6c7e3b1636b874540ba91d66367c0e5e354c56d0ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](https://github.com/alvarofpp/laravel-masks/blob/master/LICENSE)

A package to mask your variables or model's attributes.

Contents
--------

[](#contents)

- [Install](#install)
- [Usage](#usage)
- [Contributing](#contributing)

Install
-------

[](#install)

Install via composer:

```
composer require alvarofpp/masks
```

Usage
-----

[](#usage)

This package currently contains:

- Mask helper.
- Applies mask in model's attributes.

### Mask helper

[](#mask-helper)

- `mask(string $mask, string $value): string`

You can use this helper to apply mask in any value that you want. Example:

```
