PHPackages                             vyants/yii2-softdelete - 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. vyants/yii2-softdelete

ActiveYii2-behavior

vyants/yii2-softdelete
======================

Behavior for soft delete pattern

34.4k1[1 issues](https://github.com/vyants/yii2-softdelete/issues)PHP

Since Nov 6Pushed 10y ago3 watchersCompare

[ Source](https://github.com/vyants/yii2-softdelete)[ Packagist](https://packagist.org/packages/vyants/yii2-softdelete)[ RSS](/packages/vyants-yii2-softdelete/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Soft delete behavior for Yii2
=============================

[](#soft-delete-behavior-for-yii2)

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist vyants/yii2-softdelete "*"

```

or add

```
"vyants/yii2-softdelete": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

```
public function behaviors() {
     return [
         'softDelete' => ['class' => 'vyants\softdelete\SoftDelete',
             'statusAttribute' => 'status',
             'timeAttribute' => false,
             'deletedValue' => -1,
             'activeValue' => 1,
         ],
     ];
}

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/vyants-yii2-softdelete/health.svg)

```
[![Health](https://phpackages.com/badges/vyants-yii2-softdelete/health.svg)](https://phpackages.com/packages/vyants-yii2-softdelete)
```

PHPackages © 2026

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