PHPackages                             wp-kit/softdeletes - 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. [Database &amp; ORM](/categories/database)
4. /
5. wp-kit/softdeletes

ActiveLibrary[Database &amp; ORM](/categories/database)

wp-kit/softdeletes
==================

A wp-kit component that provides soft deletes for Eloquent models

1.0.3(4y ago)01.0k↓81.3%1MITPHPPHP &gt;=7.2

Since Sep 19Pushed 4y ago1 watchersCompare

[ Source](https://github.com/wp-kit/softdeletes)[ Packagist](https://packagist.org/packages/wp-kit/softdeletes)[ Docs](https://github.com/wp-kit/softdeletes)[ RSS](/packages/wp-kit-softdeletes/feed)WikiDiscussions master Synced today

READMEChangelog (4)Dependencies (1)Versions (5)Used By (1)

wp-kit/softdeletes
==================

[](#wp-kitsoftdeletes)

This is a wp-kit component that provides soft deletes for [`Eloquent`](https://laravel.com/docs/5.4/eloquent) models.

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

[](#installation)

If you're using [`Themosis`](http://framework.themosis.com/), install via [`Composer`](https://getcomposer.org/) in the root of your `Themosis` installation, otherwise install in your `Composer` driven theme folder:

```
composer require "wp-kit/softdeletes"
```

Usage
-----

[](#usage)

### Model

[](#model)

`wp-kit/softdeletes` comes with a trait, so all you need to do is include these in your model.

Based on [`drewjbartlett/wordpress-eloquent`](https://github.com/drewjbartlett/wordpress-eloquent) you can the `Post` model provided and use the `SoftDeletes` trait.

```
namespace Theme\Models;

use WPEloquent\Model\Post;
use WPKit\SoftDeletes\SoftDeletes;

class SomePostType extends Post {

	use SoftDeletes;

}
```

Get Involved
------------

[](#get-involved)

To learn more about how to use `wp-kit` check out the docs:

[View the Docs](https://github.com/wp-kit/theme/tree/docs/README.md)

Any help is appreciated. The project is open-source and we encourage you to participate. You can contribute to the project in multiple ways by:

- Reporting a bug issue
- Suggesting features
- Sending a pull request with code fix or feature
- Following the project on [GitHub](https://github.com/wp-kit)
- Sharing the project around your community

For details about contributing to the framework, please check the [contribution guide](https://github.com/wp-kit/theme/tree/docs/Contributing.md).

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

[](#requirements)

Wordpress 4+

PHP 5.6+

License
-------

[](#license)

wp-kit/softdeletes is open-sourced software licensed under the MIT License.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

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

Total

4

Last Release

1781d ago

PHP version history (2 changes)1.0.0PHP &gt;=5.6.4

1.0.2PHP &gt;=7.2

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

wordpresseloquentOOPthemosiswp-kitassleysoftdeletes

### Embed Badge

![Health badge](/badges/wp-kit-softdeletes/health.svg)

```
[![Health](https://phpackages.com/badges/wp-kit-softdeletes/health.svg)](https://phpackages.com/packages/wp-kit-softdeletes)
```

###  Alternatives

[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k8.4M96](/packages/mongodb-laravel-mongodb)[kirschbaum-development/eloquent-power-joins

The Laravel magic applied to joins.

1.6k32.6M46](/packages/kirschbaum-development-eloquent-power-joins)[owen-it/laravel-auditing

Audit changes of your Eloquent models in Laravel

3.4k36.8M157](/packages/owen-it-laravel-auditing)[cybercog/laravel-love

Make Laravel Eloquent models reactable with any type of emotions in a minutes!

1.2k332.0k1](/packages/cybercog-laravel-love)[dbout/wp-orm

WordPress ORM with Eloquent.

12910.3k1](/packages/dbout-wp-orm)[ntanduy/cloudflare-d1-database

Cloudflare D1 database driver for Laravel — full Eloquent &amp; Query Builder support.

267.8k](/packages/ntanduy-cloudflare-d1-database)

PHPackages © 2026

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