PHPackages                             sndpbag/blog - 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. [Framework](/categories/framework)
4. /
5. sndpbag/blog

ActiveLibrary[Framework](/categories/framework)

sndpbag/blog
============

A simple blog package for Laravel.

1.0.1(6mo ago)08MITBladePHP ^8.1

Since Nov 3Pushed 6mo agoCompare

[ Source](https://github.com/sndpbag/laravel-blog-packege)[ Packagist](https://packagist.org/packages/sndpbag/blog)[ RSS](/packages/sndpbag-blog/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Of course! Here is a professional, user-friendly `README.md` file for your `sndpbag/blog` package, written in English.

---

sndpbag/blog - A Laravel Blog Package 📝
=======================================

[](#sndpbagblog---a-laravel-blog-package-)

[](https://www.google.com/search?q=https://packagist.org/packages/sndpbag/blog)[](https://www.google.com/search?q=https://packagist.org/packages/sndpbag/blog)[](https://opensource.org/licenses/MIT)

`sndpbag/blog` is a powerful and easy-to-use blog package built for Laravel applications. It is designed to work seamlessly with **[sndpbag/admin-panel](https://packagist.org/packages/sndpbag/admin-panel)**, providing you with a complete and feature-rich blog management system out of the box.

\## ✨ Features

This package is packed with modern features to make your blogging experience fast, efficient, and enjoyable:

- **✍️ Full Post Management:** A complete CRUD interface in the dashboard for creating, editing, and deleting blog posts.
- **🗂️ Category System:** Manage categories to organize your posts effectively, complete with soft-delete (trash) functionality.
- **🏷️ Tagging System:** Add relevant tags to posts for better organization, searchability, and SEO.
- **👤 Multi-Author Support:** Built with Polymorphic Relationships, allowing any model (like `User`, `Member`, or `Admin`) to be an author.
- **🖼️ Advanced Image Handling:**
    - Easy featured image uploads for each post.
    - Direct image uploads from within the rich-text editor for a smooth writing experience.
- **📝 Powerful Rich-Text Editor:** A beautiful WYSIWYG editor that supports text formatting, links, tables, and media embeds to create stunning content.
- **🚀 SEO Optimized:** Includes fields for Meta Title and Meta Description for each post to improve search engine rankings.
- **📊 Built-in Analytics:** Automatically tracks view and like counts for each post.
- **💬 Interactive Frontend:**
    - Clean and responsive designs for the blog list and single post pages.
    - AJAX-powered like system for real-time interaction.
    - A nested comment and reply system for user discussions.

Follow these steps to get started:

```
## 🛠️ Installation

... (composer require steps) ...

**2. Publish Assets & Views:**

This package uses tags to let you publish only what you need.

* **Publish Config File:** (এটি `config/blog.php` ফাইলটি পাবলিশ করবে)
    ```bash
    php artisan vendor:publish --tag="blog-config"
    ```

* **Publish Views (Recommended):** (এটি `resources/views/vendor/blog` ফোল্ডারে ভিউ ফাইলগুলো পাবলিশ করবে)
    **এটি খুবই গুরুত্বপূর্ণ** যাতে আপনি আপনার ওয়েবসাইটের `layouts/main.blade.php` ফাইলের সাথে ডিজাইন মেলাতে পারেন।
    ```bash
    php artisan vendor:publish --tag="blog-views"
    ```

* **(Optional) Publish Assets:** (যদি আপনার কোনো CSS/JS ফাইল থাকে)
    ```bash
    php artisan vendor:publish --tag="blog-assets"
    ```

**2. Publish Assets:**

This command will publish the necessary migrations and configuration files to your project.

```bash
php artisan vendor:publish --provider="Sndpbag\Blog\Providers\BlogServiceProvider"
```

**3. Run Migrations:**

This will create the required tables for your blog (e.g., `blogs`, `blog_categories`, `comments`, etc.) in your database.

```
php artisan migrate
```

⚙️ Usage &amp; Integration
--------------------------

[](#️-usage--integration)

This package is designed for integration with `sndpbag/admin-panel`. Follow these steps after installation.

### Add a Link to the Dashboard Sidebar

[](#add-a-link-to-the-dashboard-sidebar)

To add a "Blog" link to your admin panel's sidebar:

1. If you haven't already, publish the `admin-panel` configuration file:

    ```
    php artisan vendor:publish --tag="admin-panel-config"
    ```
2. Now, open the `config/admin-panel.php` file in your project and add the following entry to the `sidebar` array:

    ```
    'sidebar' => [
        // ... your other menu items ...

        [
            'title' => 'Blog Posts',
            'route' => 'blog.index', // The route for the blog index
            'icon' => '',
            'active_on' => 'blog.*' // The link will be active for all blog routes
        ],
        [
            'title' => 'Blog Categories',
            'route' => 'blog-categories.index',
            'icon' => '',
            'active_on' => 'blog-categories.*'
        ],
        [
            'title' => 'Comments',
            'route' => 'comments.index', // কমেন্ট রুট
            'icon' => '',
            'active_on' => 'comments.*' // 'comments' রুটে অ্যাক্টিভ থাকবে
        ],
    ]
    ```

### Accessing the Blog Section

[](#accessing-the-blog-section)

You can now access the blog management dashboard at `your-app.com/dashboard/blog`.

🎨 Frontend Integration
----------------------

[](#-frontend-integration)

The package includes frontend routes and views to display your blog.

- **Blog Index Page:** `your-app.com/blog`
- **Single Post Page:** `your-app.com/blog/{slug}`
- **Category Page:** `your-app.com/blog/category/{slug}`

You can customize the frontend views by publishing them and editing the files in `resources/views/vendor/blog/`.

📦 What's Included?
------------------

[](#-whats-included)

- **Migrations:** For `blogs`, `blog_categories`, `comments`, and `blog_likes` tables.
- **Models:** `Blog`, `BlogCategory`, `Comment`, `BlogLike`.
- **Controllers:** Backend controllers for managing posts and categories, and frontend controllers for displaying the blog.
- **Views:** Blade templates for both the backend dashboard and the public-facing frontend, built with TailwindCSS.
- **Routes:** Pre-configured web routes for backend and frontend functionality.

🤝 Contributing
--------------

[](#-contributing)

Contributions are welcome! If you find a bug or have a feature request, please open an issue on GitHub. If you'd like to contribute code, please fork the repository and submit a pull request.

📜 License
---------

[](#-license)

The `sndpbag/blog` package is open-sourced software licensed under the **[MIT license](https://opensource.org/licenses/MIT)**.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance72

Regular maintenance activity

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 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

187d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b559afd1382982cdcdc6b7588f096b239dd0d397d0f82dfff939b59d97229a23?d=identicon)[sndpbag](/maintainers/sndpbag)

---

Top Contributors

[![sndpbag](https://avatars.githubusercontent.com/u/142666414?v=4)](https://github.com/sndpbag "sndpbag (21 commits)")

### Embed Badge

![Health badge](/badges/sndpbag-blog/health.svg)

```
[![Health](https://phpackages.com/badges/sndpbag-blog/health.svg)](https://phpackages.com/packages/sndpbag-blog)
```

###  Alternatives

[laravel/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k96.9M671](/packages/laravel-socialite)[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.2k84.2M224](/packages/laravel-horizon)[laravel/ui

Laravel UI utilities and presets.

2.7k134.9M596](/packages/laravel-ui)[laravel/jetstream

Tailwind scaffolding for the Laravel framework.

4.1k19.8M136](/packages/laravel-jetstream)[stancl/tenancy

Automatic multi-tenancy for your Laravel application.

4.3k6.6M40](/packages/stancl-tenancy)[internachi/modular

Modularize your Laravel apps

1.1k662.4k8](/packages/internachi-modular)

PHPackages © 2026

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