PHPackages                             the-3labs-team/laravel-ads-post-parser - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. the-3labs-team/laravel-ads-post-parser

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

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

This is my package laravel-ads-post-parser

v5.0.5(1mo ago)295[1 PRs](https://github.com/The-3Labs-Team/laravel-ads-post-parser/pulls)MITPHPPHP ^8.1|^8.2|^8.3|^8.4CI passing

Since May 30Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/The-3Labs-Team/laravel-ads-post-parser)[ Packagist](https://packagist.org/packages/the-3labs-team/laravel-ads-post-parser)[ Docs](https://github.com/the-3labs-team/laravel-ads-post-parser)[ RSS](/packages/the-3labs-team-laravel-ads-post-parser/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (29)Versions (20)Used By (0)

Supercharge Your Content Monetization with Laravel ADS Post Parser
==================================================================

[](#supercharge-your-content-monetization-with-laravel-ads-post-parser)

[![Latest Version on Packagist](https://camo.githubusercontent.com/69e18cc04ea66c982a8494387a6585d7a30019dc5f44dc58fe74e5477214ab05/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7468652d336c6162732d7465616d2f6c61726176656c2d6164732d706f73742d7061727365722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/the-3labs-team/laravel-ads-post-parser)[![Fix PHP code style issues](https://github.com/The-3Labs-Team/laravel-ads-post-parser/actions/workflows/fix-php-code-style-issues.yml/badge.svg)](https://github.com/The-3Labs-Team/laravel-ads-post-parser/actions/workflows/fix-php-code-style-issues.yml)[![PHPStan](https://github.com/The-3Labs-Team/laravel-ads-post-parser/actions/workflows/phpstan.yml/badge.svg)](https://github.com/The-3Labs-Team/laravel-ads-post-parser/actions/workflows/phpstan.yml)[![run-tests](https://github.com/The-3Labs-Team/laravel-ads-post-parser/actions/workflows/run-tests.yml/badge.svg)](https://github.com/The-3Labs-Team/laravel-ads-post-parser/actions/workflows/run-tests.yml)[![Total Downloads](https://camo.githubusercontent.com/e6447e76a39f9b46e568d1d8d6ea3fcc58f5ef8f63f33f8dfee1bcf16dc94ee7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7468652d336c6162732d7465616d2f6c61726176656c2d6164732d706f73742d7061727365722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/the-3labs-team/laravel-ads-post-parser)

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](https://github.com/the-3labs-team/laravel-ads-post-parser/raw/HEAD/art/how-it-works.png)](https://github.com/the-3labs-team/laravel-ads-post-parser/raw/HEAD/art/how-it-works.png)

### 🚀 Key Features

[](#-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?

[](#-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

[](#-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
------------

[](#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
-----

[](#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
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Stefano Novelli](https://github.com/The-3Labs-Team)
- [voku](https://github.com/voku) - Creator of portable-utf8 and simple\_html\_dom packages
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Sponsor
-------

[](#sponsor)

 [ ![Tom's Hardware - Notizie, recensioni, guide all'acquisto e approfondimenti per tutti gli appassionati di computer, smartphone, videogiochi, film, serie tv, gadget e non solo](https://camo.githubusercontent.com/a9fa1ed2b6a72e6fcb0b2f3176c99d5073f5b75d532223562736659d447022f2/68747470733a2f2f336c6162732d6173736574732e622d63646e2e6e65742f6173736574732f6c6f676f732f62616e6e65722d6769746875622f746f6d732e706e67) ](https://www.tomshw.it/) [ ![Spaziogames - Tutto sul mondo dei videogiochi. Troverai tantissime anteprime, recensioni, notizie dei giochi per tutte le console, PC, iPhone e Android.](https://camo.githubusercontent.com/e197c1e8d1428d36e0a1f9b9ec750b26d9432a7a2911c926c3aa29852edfdf6b/68747470733a2f2f336c6162732d6173736574732e622d63646e2e6e65742f6173736574732f6c6f676f732f62616e6e65722d6769746875622f7370617a696f2e706e67) ](https://spaziogames.it/)
 [ ![Cpop - News, recensioni, guide su fumetto, cinema & serie TV, gioco da tavolo e di ruolo e collezionismo. Tutto quello di cui hai bisogno per rimanere aggiornato sul mondo della cultura pop](https://camo.githubusercontent.com/d6c1e37a8034b0d2d7df21c8130509e6ca539141bbed582a39021ea1a9f9d479/68747470733a2f2f336c6162732d6173736574732e622d63646e2e6e65742f6173736574732f6c6f676f732f62616e6e65722d6769746875622f63706f702e706e67) ](https://cpop.it/) [ ![Data4Biz - Sito dedicato alla trasformazione digitale del business](https://camo.githubusercontent.com/5558e851010e4ae4b5cb43921a90e7cf67afd89d3e6b9ce5c780858e6f34ab19/68747470733a2f2f336c6162732d6173736574732e622d63646e2e6e65742f6173736574732f6c6f676f732f62616e6e65722d6769746875622f6434622e706e67) ](https://data4biz.com/)
 [ ![SOS Home & Garden - Realtà dedicata a 360 gradi ai settori della casa e del giardino.](https://camo.githubusercontent.com/ef1f19fa4635ea5a313915fb5e7e4fdfc97007e168f51cf4da5009a9b1934da2/68747470733a2f2f336c6162732d6173736574732e622d63646e2e6e65742f6173736574732f6c6f676f732f62616e6e65722d6769746875622f736f732e706e67) ](https://soshomegarden.com/) [ ![Techradar - Le ultime notizie e recensioni dal mondo della tecnologia, su computer, sistemi per la casa, gadget e altro.](https://camo.githubusercontent.com/df0dac8e4d85175fac6143938c38e370f9fdfa60d19647e8cafe554624246b33/68747470733a2f2f336c6162732d6173736574732e622d63646e2e6e65742f6173736574732f6c6f676f732f62616e6e65722d6769746875622f7465636872616461722e706e67) ](https://global.techradar.com/it-it)
 [ ![Aibay - Scopri AiBay, il leader delle notizie sull'intelligenza artificiale. Resta aggiornato sulle ultime innovazioni, ricerche e tendenze del mondo AI con approfondimenti, interviste esclusive e analisi dettagliate.](https://camo.githubusercontent.com/647cb00914c70c5851526defce1b0a9ec012e2fcd97ddb029c8abda7bf9c2037/68747470733a2f2f336c6162732d6173736574732e622d63646e2e6e65742f6173736574732f6c6f676f732f62616e6e65722d6769746875622f61696261792e706e67) ](https://aibay.it/) [ ![Coinlabs - Notizie, analisi approfondite, guide e opinioni aggiornate sul mondo delle criptovalute, blockchain e finanza](https://camo.githubusercontent.com/5b483d538588264ca081383dacf830d9aab280a07c2388c70bd02887ef59fa0f/68747470733a2f2f336c6162732d6173736574732e622d63646e2e6e65742f6173736574732f6c6f676f732f62616e6e65722d6769746875622f636f696e6c6162732e706e67) ](https://coinlabs.it/)

###  Health Score

49

—

FairBetter than 95% of packages

Maintenance90

Actively maintained with recent releases

Popularity14

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 60% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~68 days

Recently: every ~15 days

Total

16

Last Release

47d ago

Major Versions

v1.0.0 → v2.0.02024-03-18

v2.0.2 → v3.0.02024-07-03

v3.0.2 → v4.0.0-beta2024-09-30

v4.0.2 → v5.0.02025-11-28

PHP version history (3 changes)v1.0.0PHP ^8.1

v2.0.0PHP ^8.1|^8.2|^8.3

v4.0.1PHP ^8.1|^8.2|^8.3|^8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/0d15c41e526b0044aef2fc0955ea1ecfedea9d481c21272ec2b3b0341bafee14?d=identicon)[the-3labs-team](/maintainers/the-3labs-team)

---

Top Contributors

[![murdercode](https://avatars.githubusercontent.com/u/7630252?v=4)](https://github.com/murdercode "murdercode (90 commits)")[![Claudio-Emmolo](https://avatars.githubusercontent.com/u/113107618?v=4)](https://github.com/Claudio-Emmolo "Claudio-Emmolo (38 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (18 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (4 commits)")

---

Tags

laravellaravelThe-3Labs-Teamlaravel-ads-post-parser

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/the-3labs-team-laravel-ads-post-parser/health.svg)

```
[![Health](https://phpackages.com/badges/the-3labs-team-laravel-ads-post-parser/health.svg)](https://phpackages.com/packages/the-3labs-team-laravel-ads-post-parser)
```

###  Alternatives

[spatie/laravel-markdown

A highly configurable markdown renderer and Blade component for Laravel

4053.4M35](/packages/spatie-laravel-markdown)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[spatie/laravel-markdown-response

Serve markdown versions of your HTML pages to AI agents and bots

6512.6k](/packages/spatie-laravel-markdown-response)[rajentrivedi/tokenizer-x

TokenizerX calculates required tokens for given prompt

91214.0k3](/packages/rajentrivedi-tokenizer-x)[prezet/prezet

Prezet: Markdown Blogging for Laravel

2969.8k2](/packages/prezet-prezet)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
