the-3labs-team/laravel-ads-post-parser

This is my package laravel-ads-post-parser

v4.0.0-beta 2024-09-30 15:06 UTC

This package is auto-updated.

Last update: 2024-10-31 00:08:42 UTC


README

Latest Version on Packagist Fix PHP code style issues PHPStan run-tests Total Downloads

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.

Logo Laravel ADS Post Parser

🚀 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

License

The MIT License (MIT). Please see License File for more information.