Download the PHP package noscrape/noscrape-laravel without Composer
On this page you can find all versions of the php package noscrape/noscrape-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download noscrape/noscrape-laravel
More information about noscrape/noscrape-laravel
Files in noscrape/noscrape-laravel
Package noscrape-laravel
Short Description Official Laravel package for protecting sensitive text from automated scraping using the Noscrape API.
License MIT
Homepage https://github.com/noscrape/noscrape-laravel
Informations about the package noscrape-laravel
Noscrape Laravel
Official Laravel integration for Noscrape.
Protect publicly visible text from automated scraping with a simple Blade component. The package automatically collects all protected content, sends it to the Noscrape API, injects a generated font, and renders the obfuscated text back in the browser.
Features
- Simple Blade component
- One API request per page
- Automatic font generation
- No JavaScript framework required
- Laravel 11 & 12 compatible
- Supports public cloud and on-premise installations
Installation
Install the package via Composer:
Publish the configuration file:
Configuration
For most installations only an API key is required.
Simply visit https://noscrape.eu, choose your plan and create your api key.
If you are using an on-premise or private Noscrape installation, configure the host as well.
NOSCRAPE_HOST is optional and defaults to the public Noscrape API.
Usage
Wrap any text you want to protect.
Finally, include the renderer once before the closing </body> tag.
Complete example
How it works
- Every
<x-noscrape::obfuscated>component registers its content during rendering. @noscrapeScriptssends all collected values to the Noscrape API in a single request.- The API returns:
- obfuscated text
- a generated font
- The package injects the font and replaces the placeholder elements with the protected text.
The original text is therefore no longer present in the HTML source.
Why Noscrape?
Noscrape uses dynamically generated fonts instead of simply encoding or hiding text.
Benefits
- Protects publicly visible text from automated scraping
- One request for all protected elements
- Fast integration
- Minimal performance overhead
- No build step required
- Works with server-rendered Blade templates
- Supports self-hosted deployments
Requirements
- PHP 8.2+
- Laravel 11 or newer
- A Noscrape API key
Testing
Run the test suite:
Run static analysis:
Format the code:
License
The MIT License (MIT).
All versions of noscrape-laravel with dependencies
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^11.0||^12.0||^13.0