Download the PHP package protonlabs/php-adblock-parser without Composer
On this page you can find all versions of the php package protonlabs/php-adblock-parser. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download protonlabs/php-adblock-parser
More information about protonlabs/php-adblock-parser
Files in protonlabs/php-adblock-parser
Download protonlabs/php-adblock-parser
More information about protonlabs/php-adblock-parser
Files in protonlabs/php-adblock-parser
Vendor protonlabs
Package php-adblock-parser
Short Description PHP parser for Adblock Plus filters. A fork of abandoned limonte/php-adblock-parser
License MIT
Homepage https://github.com/limonte/php-adblock-parser
Package php-adblock-parser
Short Description PHP parser for Adblock Plus filters. A fork of abandoned limonte/php-adblock-parser
License MIT
Homepage https://github.com/limonte/php-adblock-parser
Please rate this library. Is it a good library?
Informations about the package php-adblock-parser
PHP parser for Adblock Plus filters
This is a fork of the abandoned Limonte\AdblockParser.
It has been edited to optimize performance, namely:
- The object containing the rules can be saved to avoid the long time to create it.
- Only run necessary rules; the generic rules and the rules applying specifically to the domain of the url.
It also separates responsibilities of classes better by having factories, services and DTOs.
Usage
To learn about Adblock Plus filter syntax check these links:
-
Get filter rules somewhere: write them manually, read lines from a file downloaded from EasyList, etc.:
-
Create AdblockRules instance from the rules array:
- Use this instance to check if an URL should be blocked or not:
Related projects
- Google Safebrowsing PHP library: limonte/google-safebrowsing
- McAfee SiteAdvisor PHP library: limonte/mcafee-siteadvisor
- Check if link is SPAM: limonte/spam-link-analyser
- Python parser for Adblock Plus filters: scrapinghub/adblockparser
- EasyList filter subscription: easylist/easylist
All versions of php-adblock-parser with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.1
ext-ctype Version *
ext-iconv Version *
jeremykendall/php-domain-parser Version ^6.2
ext-ctype Version *
ext-iconv Version *
jeremykendall/php-domain-parser Version ^6.2
The package protonlabs/php-adblock-parser contains the following files
Loading the files please wait ....