Skip to content

noscrape/noscrape-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Noscrape - PHP

Installation

  • add repository to your composer.json
$ composer require noscrape/noscrape

Example Usage

$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>

Supported CPU Architectures

  • 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 noscrape@gmx.de or simply open a new issue