the-3labs-team / laravel-ads-post-parser
This is my package laravel-ads-post-parser
Requires
- php: ^8.1|^8.2|^8.3
- illuminate/contracts: ^10.0||^11.0
- spatie/laravel-package-tools: ^1.16
- voku/portable-utf8: ^6.0
- voku/simple_html_dom: ^4.8
Requires (Dev)
- larastan/larastan: ^2.9
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.1.1||^7.10.0
- orchestra/testbench: ^9.0.0||^8.22.0
- pestphp/pest: ^2.34
- pestphp/pest-plugin-arch: ^2.7
- pestphp/pest-plugin-laravel: ^2.3
- phpstan/extension-installer: ^1.3
- phpstan/phpstan-deprecation-rules: ^1.1
- phpstan/phpstan-phpunit: ^1.3
README
Laravel ADS Post Parser is a powerful and flexible package that revolutionizes the way you integrate advertisements into your Laravel-powered content. Whether you're running a blog, news site, or any content-rich platform, this package offers a seamless solution to boost your revenue without compromising user experience.
🚀 Key Features
- Intelligent Ad Insertion: Automatically append advertisements to your posts with customizable frequency, ensuring optimal ad placement for maximum engagement.
- Content-Aware Parsing: Our smart parser respects your content structure, avoiding disruption of crucial elements like headings, images, or code blocks.
- Flexible Threshold Settings: Fine-tune your ad insertion strategy with customizable thresholds, maintaining the perfect balance between monetization and readability.
- Seamless Integration: Designed to work harmoniously with Laravel, requiring minimal setup and configuration.
- Performance Optimized: Built with efficiency in mind, ensuring fast page loads even with dynamic ad insertions.
- Customizable Ad Templates: Easily create and manage your ad templates to match your site's look and feel.
💡 Why Choose Laravel ADS Post Parser?
- Boost Revenue: Maximize your content monetization potential with strategically placed advertisements.
- Maintain User Experience: Our intelligent parsing ensures ads are placed naturally within your content, preserving readability and user engagement.
- Save Time: Automate the tedious process of manually inserting ads into your content.
- Stay in Control: Extensive configuration options allow you to tailor the ad insertion process to your specific needs.
- Future-Proof: Regular updates and compatibility with the latest Laravel versions keep your monetization strategy ahead of the curve.
🛠Easy to Use, Powerful to Implement
With a simple setup process and intuitive API, you can start monetizing your content in minutes. The Laravel ADS Post Parser seamlessly integrates with your existing Laravel projects, providing a robust foundation for your advertising strategy.
Transform your content into a revenue-generating powerhouse with Laravel ADS Post Parser – where intelligent ad insertion meets effortless implementation.
Installation
You can install the package via composer.json:
composer require the-3labs-team/laravel-ads-post-parser
You can publish the config file with:
php artisan vendor:publish --tag="laravel-ads-post-parser-config"
You can publish the views using
php artisan vendor:publish --tag="laravel-ads-post-parser-views"
Usage
First, add your ADS content in one of /resources/views/adsX.blade.php
file.
Then, use the AdsPostParser
class to append advertising to your post:
$parsedContent = (new AdsPostParser($content))->appendAdvertising();
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Stefano Novelli
- voku - Creator of portable-utf8 and simple_html_dom packages
- All Contributors
License
The MIT License (MIT). Please see License File for more information.