- add repository to your
composer.json
$ composer require noscrape/noscrape
$noscrape = new Noscrape('path/to/font.ttf');
$text1 = $noscrape->obfuscate("placeholder text");
$text2 = $noscrape->obfuscate("another placeholder text");
$font = $noscrape->render();
# in your template header ...
in your template
<style>
@font-face {
font-family: 'noscrape-obfuscated';
src: url("data:font/truetype;charset=utf-8;base64,{{ $font }}");
}
.obfuscated {
font-family: "noscrape-obfuscated";
}
</style>
...
<div class="obfuscated">{{ $text1 }}</div>
<div class="obfuscated">{{ $text2 }}</div>
- Darwin Arm64
- Darwin x86_64
- Linux Arm64
- Linux x86_64
- Windows x86_64
if you miss your needed os/arch, feel free to contact us [email protected] or simply open a new issue