mohamedhk2/mail-to-image

Convert email address to image to protect against spamming

1.1.0 2022-12-01 20:48 UTC

This package is auto-updated.

Last update: 2024-10-29 06:11:52 UTC


README

About mailToImage

Convert email address to image to protect against spamming.

Installation

composer require mohamedhk2/mail-to-image

Usage

simple

<?= mailToImage('mohamedhk2@mail-to-image.test') ?>

clickable mailto:

default: false

<?= mailToImage('mohamedhk2@mail-to-image.test', true) ?>

font size

can be 1, 2, 3, 4, 5
default: 4

<?= mailToImage('mohamedhk2@mail-to-image.test', false, 4) ?>

text color

array(R, G, B)
default: [0, 0, 0]

<?= mailToImage('mohamedhk2@mail-to-image.test', false, 4, [0, 0, 0]) ?>

background color

array(R, G, B)
default: [255, 255, 255]

<?= mailToImage('mohamedhk2@mail-to-image.test', false, 4, [0, 0, 0], [255, 255, 255]) ?>

image class

nullable string
default: mti

<?= mailToImage('mohamedhk2@mail-to-image.test', false, 4, [0, 0, 0], [255, 255, 255], 'mti') ?>
<?= mailToImage('mohamedhk2@mail-to-image.test', false, 4, [0, 0, 0], [255, 255, 255], null) ?>

Laravel

{!! mailToImage( ... ) !!}

Sponsors