PHPackages                             devniks/blog-curd - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. devniks/blog-curd

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

devniks/blog-curd
=================

using this package you can add blog curd in your project

1.0.3(1y ago)016MITPHPPHP &gt;=7.4

Since Feb 22Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/developNik/devniks)[ Packagist](https://packagist.org/packages/devniks/blog-curd)[ RSS](/packages/devniks-blog-curd/feed)WikiDiscussions main Synced 2mo ago

READMEChangelog (1)Dependencies (1)Versions (6)Used By (0)

Blog-CRUD Package
=================

[](#blog-crud-package)

Introduction
------------

[](#introduction)

**Blog-CRUD** is a Laravel package that provides a simple CRUD system for managing blog posts. It includes database migrations, models, and methods to add, edit, delete, and list blog posts with pagination.

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

[](#installation)

You can install this package via Composer:

```
composer require devniks/blog-curd
```

Running Migrations
------------------

[](#running-migrations)

After installing the package, run the following command to create the necessary database table:

```
php artisan migrate
```

Usage
-----

[](#usage)

### Adding a Blog Post

[](#adding-a-blog-post)

```
use Devniks\BlogCurd\Models\Blog;

$blog = new Blog();
$blog->title = 'My First Blog';
$blog->content = 'This is the content of my first blog.';
$blog->author = 'Nikhil Singhal';
$blog->save();
```

### Updating a Blog Post

[](#updating-a-blog-post)

```
$blog = Blog::find(1);
$blog->title = 'Updated Blog Title';
$blog->save();
```

### Deleting a Blog Post (Soft Delete)

[](#deleting-a-blog-post-soft-delete)

```
$blog = Blog::find(1);
$blog->delete(); // This will soft delete the blog
```

### Restoring a Soft Deleted Blog Post

[](#restoring-a-soft-deleted-blog-post)

```
use Devniks\BlogCurd\Models\Blog;

$blog = Blog::withTrashed()->find(1);
$blog->restore();
```

### Fetching Blogs with Pagination

[](#fetching-blogs-with-pagination)

```
$blogs = Blog::paginate(10); // Fetch 10 blogs per page
```

Features
--------

[](#features)

- Simple CRUD operations
- Soft delete support
- Pagination support
- Easy installation and setup

License
-------

[](#license)

This package is open-sourced software licensed under the **MIT license**.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance59

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

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

4

Last Release

495d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/65647324?v=4)[devniks](/maintainers/devniks)[@devniks](https://github.com/devniks)

---

Top Contributors

[![developNik](https://avatars.githubusercontent.com/u/131236519?v=4)](https://github.com/developNik "developNik (8 commits)")

### Embed Badge

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

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[illuminate/pagination

The Illuminate Pagination package.

12234.1M1.0k](/packages/illuminate-pagination)[illuminate/pipeline

The Illuminate Pipeline package.

9349.2M282](/packages/illuminate-pipeline)[illuminate/redis

The Illuminate Redis package.

8314.6M375](/packages/illuminate-redis)[illuminate/cookie

The Illuminate Cookie package.

244.6M136](/packages/illuminate-cookie)

PHPackages © 2026

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