PHPackages                             dropinblog/laravel-rendered - 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. dropinblog/laravel-rendered

ActiveLibrary[API Development](/categories/api)

dropinblog/laravel-rendered
===========================

Official DropInBlog package for integrating DropInBlog with your Laravel application

v1.2.0(2w ago)418MITPHPPHP ^8.2|^8.3|^8.4

Since Jul 6Pushed 2w ago1 watchersCompare

[ Source](https://github.com/DropInBlog/laravel-rendered)[ Packagist](https://packagist.org/packages/dropinblog/laravel-rendered)[ Docs](https://github.com/dropinblog/laravel-rendered)[ RSS](/packages/dropinblog-laravel-rendered/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (4)Dependencies (6)Versions (9)Used By (0)

DropInBlog Laravel Rendered Package
===================================

[](#dropinblog-laravel-rendered-package)

This package allows you to easily integrate DropInBlog's rendered content into your Laravel application. It fetches pre-rendered HTML from DropInBlog's API and seamlessly integrates it into your Laravel views.

Requirements
------------

[](#requirements)

- PHP 8.2 or higher
- Laravel 11.x, 12.x, or 13.x
- DropInBlog account with API access

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

[](#installation)

1. Install the package via composer:

```
composer require dropinblog/laravel-rendered
```

2. Publish the configuration file:

```
php artisan vendor:publish --provider="DropInBlog\\Laravel\\Providers\\DropInBlogServiceProvider" --tag="config"
```

3. Add your DropInBlog credentials to your `.env` file:

```
DROPINBLOG_ID=your-dropinblog-id
DROPINBLOG_API_KEY=your-dropinblog-api-key

```

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

[](#configuration)

The package publishes a configuration file at `config/dropinblog.php` with the following options:

```
return [
    // DropInBlog API Configuration
    'id' => env('DROPINBLOG_ID'),
    'api_key' => env('DROPINBLOG_API_KEY'),
    'response_fields' => 'head_html,body_html,head_items',

    // Routes Configuration
    'path' => 'blog',

    // View Configuration
    'layout' => 'layouts.app',
    'sections' => [
        'content' => 'content',
    ],

    // Feed Configuration
    'feed' => [
        'type' => 'rss',
        'limit' => 10,
    ],
];
```

- `id`: Your DropInBlog ID
- `api_key`: Your DropInBlog API key
- `path`: The base URL path for your blog (defaults to 'blog')
- `layout`: The layout file that your blog views will extend
- `sections.content`: The section name in your layout where blog content will be displayed
- `feed.type`: The default feed type (rss or atom)
- `feed.limit`: The default number of items in feeds

### Upgrading from 1.1.x

[](#upgrading-from-11x)

The credential is now `api_key` / `DROPINBLOG_API_KEY`. Existing installs keep working without changes — the old `api_token` config key and `DROPINBLOG_API_TOKEN` variable are still read.

If you rename the variable in your `.env`, republish the config so it picks up the new key:

```
php artisan vendor:publish --provider="DropInBlog\\Laravel\\Providers\\DropInBlogServiceProvider" --tag="config" --force
php artisan config:clear
```

Usage
-----

[](#usage)

The package automatically registers routes for your blog at `/blog` (configurable via the `path` option). These include:

- `/blog` - Blog index
- `/blog/page/{page}` - Paginated blog index
- `/blog/{slug}` - Individual post
- `/blog/category/{slug}` - Category index
- `/blog/category/{slug}/page/{page}` - Paginated category index
- `/blog/author/{slug}` - Author index
- `/blog/author/{slug}/page/{page}` - Paginated author index
- `/blog/feed` - RSS/Atom feed
- `/blog/feed/category/{slug}` - Category-specific feed
- `/blog/feed/author/{slug}` - Author-specific feed
- `/blog/sitemap.xml` - XML sitemap

### Blade Directives

[](#blade-directives)

The package provides several Blade directives to help integrate DropInBlog content:

> **IMPORTANT:** Add the `@dropInBlogHead` directive to your layout's `` section. This will add title, description, styles and more meta tags inside your ``.

```
{{-- Include DropInBlog head content --}}
@dropInBlogHead

{{-- Conditional content only for DropInBlog pages --}}
@isDropInBlog
    This content only shows on blog pages
@endisDropInBlog

{{-- Conditional content only for non-DropInBlog pages --}}
@notDropInBlog
    This content only shows on non-blog pages
@endnotDropInBlog
```

#### Avoiding Duplicate Head Elements

[](#avoiding-duplicate-head-elements)

The `@dropInBlogHead` directive adds meta tags title, description, styles and more. Most likely you will already be setting some of these tags in your ``. You can use directives to prevent any duplicates.

For proper implementation:

1. **Always** place the `@dropInBlogHead` directive in your layout's `` section
2. Use the `@isDropInBlog` and `@notDropInBlog` directives to conditionally include or exclude your own head elements

Example layout:

```

    {{-- Include DropInBlog head content (title, meta tags, etc.) --}}
    @dropInBlogHead

    {{-- Only include your own title on non-blog pages --}}
    @notDropInBlog
        Your Site Title
    @endnotDropInBlog

```

This ensures that on blog pages, the title and meta tags come from DropInBlog, while on non-blog pages, your own title and meta tags are used.

### Customizing Views

[](#customizing-views)

If you want to customize the blog views, you can publish them:

```
php artisan vendor:publish --provider="DropInBlog\\Laravel\\Providers\\DropInBlogServiceProvider" --tag="views"
```

The views will be published to `resources/views/vendor/dropinblog/`.

How It Works
------------

[](#how-it-works)

This package fetches pre-rendered HTML from DropInBlog's API and displays it within your Laravel application. The rendered content includes:

- `bodyHtml`: The main content of the page
- `headHtml`: HTML for the `` section (meta tags, title, etc.)

The package handles all routing and view rendering for you, making it easy to integrate a fully-featured blog into your Laravel application without managing blog content in your database.

License
-------

[](#license)

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

###  Health Score

47

—

FairBetter than 93% of packages

Maintenance97

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~56 days

Recently: every ~84 days

Total

8

Last Release

14d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6adfd8a03ffec88f3903d84f164662985d0dc62e18b396f57216a8ee36827c7a?d=identicon)[DropInBlog](/maintainers/DropInBlog)

---

Top Contributors

[![jason18505](https://avatars.githubusercontent.com/u/75988743?v=4)](https://github.com/jason18505 "jason18505 (12 commits)")

---

Tags

laravelblogseodropinblog

### Embed Badge

![Health badge](/badges/dropinblog-laravel-rendered/health.svg)

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

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.9k3.8M1.2k](/packages/statamic-cms)[backpack/crud

Quickly build admin interfaces using Laravel, Bootstrap and JavaScript.

3.4k3.8M228](/packages/backpack-crud)[unopim/unopim

UnoPim Laravel PIM

10.8k2.5k](/packages/unopim-unopim)[bagisto/bagisto

Bagisto Laravel E-Commerce

28.0k175.2k9](/packages/bagisto-bagisto)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.3M49](/packages/tencentcloud-tencentcloud-sdk-php)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

353.6k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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