PHPackages                             convertain/laravel-babylovegrowth - 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. [API Development](/categories/api)
4. /
5. convertain/laravel-babylovegrowth

ActiveLibrary[API Development](/categories/api)

convertain/laravel-babylovegrowth
=================================

Laravel package for integrating with BabyLoveGrowth.ai API to fetch and store AI-curated parenting articles and baby development content

v1.0.0(9mo ago)20MITPHPCI passing

Since Aug 5Pushed 9mo agoCompare

[ Source](https://github.com/Convertain/laravel-babylovegrowth)[ Packagist](https://packagist.org/packages/convertain/laravel-babylovegrowth)[ Docs](https://af.boaa.it/babylovegrowth)[ GitHub Sponsors](https://github.com/Convertain)[ RSS](/packages/convertain-laravel-babylovegrowth/feed)WikiDiscussions 1.x Synced 1mo ago

READMEChangelog (1)Dependencies (16)Versions (3)Used By (0)

Laravel BabyLoveGrowth Integration
==================================

[](#laravel-babylovegrowth-integration)

[![Latest Version on Packagist](https://camo.githubusercontent.com/7f5b2f930139fe2534c1f1610fd389b23af8a908a59370fcc71cddf671040534/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636f6e7665727461696e2f6c61726176656c2d626162796c6f766567726f7774682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/convertain/laravel-babylovegrowth)[![Total Downloads](https://camo.githubusercontent.com/e65041c3ff901191f2cc32ad7108bb1d9d0a554abe28a0a841a1075c3f9e6be8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f6e7665727461696e2f6c61726176656c2d626162796c6f766567726f7774682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/convertain/laravel-babylovegrowth)[![CI](https://camo.githubusercontent.com/59b63a922cd394549c16248663a8458fc23240163229f47414d5e8691f454573/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f436f6e7665727461696e2f6c61726176656c2d626162796c6f766567726f7774682f63692e796d6c3f6272616e63683d6d61696e266c6162656c3d4349267374796c653d666c61742d737175617265)](https://github.com/Convertain/laravel-babylovegrowth/actions/workflows/ci.yml)[![PHPStan Level 10](https://camo.githubusercontent.com/65c9bbcae389e4ca189f0239aa80ea655e986c4d7d4d586a15927056765c173f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d6c6576656c25323031302d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://phpstan.org/)[![PHP 8.3+](https://camo.githubusercontent.com/aa5173f35ff61eb70850b202e6ba4aca7d743ee098898e6ccf6338f2aed642dd/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e332532422d626c75652e7376673f7374796c653d666c61742d737175617265)](https://php.net)[![Laravel 12](https://camo.githubusercontent.com/28258179aab3740537de18650134eb68e8c5f1f7396109f5bcfd29ddf28bb4d8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d31322d7265642e7376673f7374796c653d666c61742d737175617265)](https://laravel.com)

A Laravel package for integrating with the [BabyLoveGrowth.ai](https://af.boaa.it/babylovegrowth)\* API to fetch and manage SEO-optimized articles for organic traffic growth in your Laravel application.

> **Affiliate Disclosure**: This package integrates with [BabyLoveGrowth.ai](https://af.boaa.it/babylovegrowth)\*, and we may receive compensation if you sign up for their services through our affiliate links (marked with \*). This does not affect the functionality of the package or increase your costs. We only recommend services we believe provide value to developers and businesses.

Features
--------

[](#features)

- 🚀 **Simple API Integration** - Fetch SEO-optimized articles from [BabyLoveGrowth.ai](https://af.boaa.it/babylovegrowth)\* with a single command
- 🔍 **Domain Filtering** - Optional filtering by specific domains/websites
- 🌍 **Language Support** - Filter and categorize articles by language (20+ languages supported)
- 📦 **Local Storage** - Store articles in your database for offline access and fast queries
- ⚡ **Automatic Sync** - Background sync capabilities with configurable intervals
- 🛡️ **Type Safe** - Full PHPStan level 10 compliance for robust code
- 🎯 **Laravel Native** - Built with Laravel best practices and conventions

Installation
------------

[](#installation)

Install the package via Composer:

```
composer require convertain/laravel-babylovegrowth
```

The package will automatically register its service provider and make the configuration and migrations available.

### Run Migrations

[](#run-migrations)

Run the database migrations:

```
php artisan migrate
```

### Optional: Publish Configuration

[](#optional-publish-configuration)

If you need to customize the configuration, you can optionally publish the config file:

```
php artisan vendor:publish --tag=babylovegrowth-config
```

### Optional: Publish Migrations

[](#optional-publish-migrations)

If you need to customize the database schema, you can optionally publish the migrations:

```
php artisan vendor:publish --tag=babylovegrowth-migrations
php artisan migrate
```

Configuration
-------------

[](#configuration)

Add your [BabyLoveGrowth.ai](https://af.boaa.it/babylovegrowth)\* API credentials to your `.env` file:

```
BABYLOVEGROWTH_ENABLED=true
BABYLOVEGROWTH_API_KEY=your-api-key-here
BABYLOVEGROWTH_DOMAIN_FILTER=example.com  # Optional: filter by specific domain
```

> 💡 **Need an API key?** If you find this package useful and don't have a [BabyLoveGrowth.ai](https://af.boaa.it/babylovegrowth)\* account yet, please consider [signing up through our affiliate link](https://af.boaa.it/babylovegrowth)\* to support the development of this package.

**That's it!** The package works immediately with just the environment variables. No need to publish configuration files unless you want to customize the defaults.

### Advanced Configuration

[](#advanced-configuration)

If you published the configuration file (`config/babylovegrowth.php`), you can customize:

- **`enabled`** - Enable/disable the integration
- **`api_key`** - Your [BabyLoveGrowth.ai](https://af.boaa.it/babylovegrowth)\* API key
- **`domain_filter`** - Optional domain filter for articles
- **`cache_ttl`** - Cache time-to-live for API responses (in seconds)

Usage
-----

[](#usage)

### Database Setup

[](#database-setup)

Run the migrations to create the required database tables:

```
php artisan migrate
```

### Seeders

[](#seeders)

The package includes a factory-based seeder that uses **FakerPHP** to generate realistic, randomly-varied BabyLoveGrowth SEO articles:

```
php artisan db:seed --class="Database\Seeders\BabyLoveGrowthArticleSeeder"
```

This will create **15 unique articles** with dynamically generated content featuring:

- **Smart Title Generation**: Pattern-based templates with contextual variables
- **Dynamic Content**: Realistic paragraphs using Faker's text generation
- **Varied Sections**: 3-6 sections per article with contextual topics
- **Natural Language**: Template-based sentences with SEO/content marketing focus
- **Realistic Metadata**: Proper meta descriptions, image URLs, and timestamps
- **Multi-language Support**: Articles in English, Spanish, French, German, Italian, and Portuguese

Each article follows the exact [BabyLoveGrowth.ai](https://af.boaa.it/babylovegrowth)\* API structure while providing completely unique, realistic content every time the seeder runs.

### Fetching Articles

[](#fetching-articles)

Use the Artisan command to fetch articles from the [BabyLoveGrowth.ai](https://af.boaa.it/babylovegrowth)\* API:

```
# Fetch all articles
php artisan babylovegrowth:fetch

# Fetch articles with filters
php artisan babylovegrowth:fetch --language=en
php artisan babylovegrowth:fetch --domain=example.com
php artisan babylovegrowth:fetch --force  # Force update existing articles
```

### Using the Model

[](#using-the-model)

Query articles using the Eloquent model:

```
use Convertain\BabyLoveGrowth\Models\BabyLoveGrowthArticle;

// Get all articles
$articles = BabyLoveGrowthArticle::all();

// Get articles by language
$englishArticles = BabyLoveGrowthArticle::byLanguage('en')->get();

// Get published articles (ordered by date)
$recentArticles = BabyLoveGrowthArticle::published()->take(10)->get();

// Get articles with content
$articlesWithContent = BabyLoveGrowthArticle::withContent()->get();

// Find by external ID
$article = BabyLoveGrowthArticle::findByExternalId(123);

// Find by slug
$article = BabyLoveGrowthArticle::findBySlug('parenting-tips');
```

### Article Properties

[](#article-properties)

Each `BabyLoveGrowthArticle` model includes:

```
$article->id;                    // Local database ID
$article->external_id;           // [BabyLoveGrowth.ai](https://af.boaa.it/babylovegrowth)* article ID
$article->title;                 // Article title
$article->slug;                  // URL-friendly slug
$article->language_code;         // Language code (e.g., 'en', 'es')
$article->org_website;           // Organization website
$article->content_markdown;      // Markdown content
$article->content_html;          // HTML content
$article->meta_description;      // SEO meta description
$article->hero_image_url;        // Featured image URL
$article->external_created_at;   // Original creation date
$article->created_at;            // Local creation date
$article->updated_at;            // Local update date
```

### Helper Methods

[](#helper-methods)

The model includes several helpful methods:

```
// Check if article has content
if ($article->hasContent()) {
    // Article has either markdown or HTML content
}

// Get excerpt (auto-generated from meta description or content)
$excerpt = $article->getExcerpt(200); // Limit to 200 characters

// Get estimated reading time
$readingTime = $article->reading_time; // Returns minutes
```

### Programmatic API Usage

[](#programmatic-api-usage)

Use the API service directly in your code:

```
use Convertain\BabyLoveGrowth\Services\BabyLoveGrowthApiService;
use Convertain\BabyLoveGrowth\Services\DomainFilterService;

// Fetch articles from API
$apiService = app(BabyLoveGrowthApiService::class);
$articles = $apiService->getAllArticles();

// Apply domain filtering
$domainFilter = app(DomainFilterService::class);
$shouldInclude = $domainFilter->shouldSyncArticle('https://example.com/article');
```

### Background Sync

[](#background-sync)

Use the sync service for automated synchronization:

```
use Convertain\BabyLoveGrowth\Services\BabyLoveGrowthSyncService;

$syncService = app(BabyLoveGrowthSyncService::class);

// Check if sync should run
if ($syncService->shouldSync()) {
    $result = $syncService->sync();
}

// Get sync statistics
$stats = $syncService->getSyncStats();
```

Database Schema
---------------

[](#database-schema)

The package creates a `blog_babylovegrowth_articles` table with the following structure:

ColumnTypeDescription`id`bigintPrimary key`external_id`integer[BabyLoveGrowth.ai](https://af.boaa.it/babylovegrowth)\* article ID`title`stringArticle title`slug`stringURL slug`language_code`stringLanguage code`org_website`stringOrganization website`content_markdown`textMarkdown content`content_html`textHTML content`meta_description`textSEO description`hero_image_url`stringFeatured image URL`external_created_at`timestampOriginal creation date`created_at`timestampLocal creation date`updated_at`timestampLocal update dateError Handling
--------------

[](#error-handling)

The package includes comprehensive error handling:

```
use Convertain\BabyLoveGrowth\Exceptions\BabyLoveGrowthApiException;

try {
    $articles = $apiService->getAllArticles();
} catch (BabyLoveGrowthApiException $e) {
    // Handle API errors
    logger()->error('BabyLoveGrowth API Error: ' . $e->getMessage());
}
```

Testing
-------

[](#testing)

Run the package tests:

```
composer test
```

Run tests with coverage:

```
composer test-coverage
```

Run static analysis:

```
composer analyse
```

Run code style checks:

```
composer pint -- --test
```

Fix code style issues:

```
composer pint
```

### Continuous Integration

[](#continuous-integration)

This package includes comprehensive GitHub Actions workflows:

- **Tests**: Runs PHPUnit tests across PHP 8.3 and 8.4 with Laravel 12.x
- **Static Analysis**: PHPStan Level 10 analysis for type safety
- **Code Style**: Laravel Pint PSR-12 compliance checking
- **Security**: Automated vulnerability scanning with `composer audit`

All workflows run on push/pull requests to ensure code quality.

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
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Convertain Team](https://github.com/Convertain)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

About BabyLoveGrowth.ai
-----------------------

[](#about-babylovegrowthai)

[BabyLoveGrowth.ai](https://af.boaa.it/babylovegrowth)\* is an AI-powered SEO and content marketing automation platform that helps businesses grow organic traffic through automated content generation and backlink building. The platform provides:

- **Daily SEO/LLM-optimized articles** with real-time research and expert citations
- **Automated backlink exchange network** to boost domain authority
- **Multi-language content generation** (20+ languages supported)
- **Direct publishing integration** with WordPress, Webflow, Shopify, and other platforms
- **JSON-LD schema markup** for enhanced search visibility
- **ChatGPT and Google optimization** for maximum organic reach

This package enables Laravel applications to integrate with their content API for seamless access to high-quality SEO-optimized articles.

For more information about [BabyLoveGrowth.ai](https://af.boaa.it/babylovegrowth)*, visit [their website](https://af.boaa.it/babylovegrowth)*.

---

\*Affiliate links - we may receive compensation if you sign up through these links.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance57

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

2

Last Release

280d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/70cb1c26e43cb40caaa8676ab57a83ebf77a2c651db787500c785c57a509f8e7?d=identicon)[RauchenwaldC](/maintainers/RauchenwaldC)

---

Top Contributors

[![RauchenwaldC](https://avatars.githubusercontent.com/u/6176341?v=4)](https://github.com/RauchenwaldC "RauchenwaldC (1 commits)")

---

Tags

article-syncbabylovegrowthbackground-synccontent-managementlaravellaravel-packageapilaravelpackageaicontentcmsblogarticlescontent managementfamilypregnancybabybabylovegrowthparentingchild-developmentmotherhood

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/convertain-laravel-babylovegrowth/health.svg)

```
[![Health](https://phpackages.com/badges/convertain-laravel-babylovegrowth/health.svg)](https://phpackages.com/packages/convertain-laravel-babylovegrowth)
```

###  Alternatives

[darkaonline/l5-swagger

OpenApi or Swagger integration to Laravel

2.9k34.0M112](/packages/darkaonline-l5-swagger)[knuckleswtf/scribe

Generate API documentation for humans from your Laravel codebase.✍

2.3k12.2M45](/packages/knuckleswtf-scribe)[joisarjignesh/bigbluebutton

BigBlueButton Server API Library for Laravel

162145.5k1](/packages/joisarjignesh-bigbluebutton)[vinelab/api-manager

Laravel API Manager Package - beatify and unify your responses with the least effort possible.

392.1k](/packages/vinelab-api-manager)

PHPackages © 2026

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