mohamedhk2/mail-to-image

Convert email address to image to protect against spamming

1.0.1 2020-06-20 02:41 UTC

This package is auto-updated.

Last update: 2021-11-20 06:23:00 UTC


README

85176977-fc789c00-b272-11ea-96fa-9d275926f876.jpg

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]) ?>

Laravel

{!! mailToImage('mohamedhk2@mail-to-image.test') !!}

Sponsors

34744989?s=150&v=4