PHPackages                             l0wskilled/api-platform-traits - 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. l0wskilled/api-platform-traits

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

l0wskilled/api-platform-traits
==============================

Package to ease the use of common properties

0.1.8(6y ago)11.6k1MITPHPPHP &gt;=7.1

Since Nov 25Pushed 3y ago2 watchersCompare

[ Source](https://github.com/epubli/api-platform-traits)[ Packagist](https://packagist.org/packages/l0wskilled/api-platform-traits)[ RSS](/packages/l0wskilled-api-platform-traits/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (8)Dependencies (1)Versions (10)Used By (1)

API Platform Traits
===================

[](#api-platform-traits)

Package to ease the use of common properties needed for the api platform package.

You may want to have a look at:

### Content of this package

[](#content-of-this-package)

- OrmIdentificatorTrait
- OrmTimestampableTrait
- OrmSoftDeletableTrait
- OdmIdentificatorTrait
- OdmTimestampableTrait
- OdmSoftDeletableTrait

### Usage of ORM Timestampable and SoftDeletable

[](#usage-of-orm-timestampable-and-softdeletable)

Add the stof doctrine extension:

`composer require stof/doctrine-extensions-bundle`

Edit the config file `config/packages/stof_doctrine_extensions.yaml`

It should look like this:

```
stof_doctrine_extensions:
    default_locale: en_US
    orm:
        default:
            softdeleteable: true
            timestampable: true

```

Here is an example class which implements these traits:

```
use Epubli\ApiPlatform\TraitBundle\OrmSoftDeletableTrait;
use Epubli\ApiPlatform\TraitBundle\OrmTimestampableTrait;
use Gedmo\Mapping\Annotation as Gedmo;

/**
 * @Gedmo\SoftDeleteable(fieldName="deletedAt", timeAware=false, hardDelete=false)
 */
class Example
{
    use OrmTimestampableTrait;
    use OrmSoftDeletableTrait;
}

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity48

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

Recently: every ~36 days

Total

8

Last Release

2216d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/77d3ab602abb0841ec145e20fdcdfa622238ec34f0bbda69ef2275a5c87a44f3?d=identicon)[l0wskilled](/maintainers/l0wskilled)

---

Top Contributors

[![StefanGithubbbb](https://avatars.githubusercontent.com/u/60654484?v=4)](https://github.com/StefanGithubbbb "StefanGithubbbb (3 commits)")

### Embed Badge

![Health badge](/badges/l0wskilled-api-platform-traits/health.svg)

```
[![Health](https://phpackages.com/badges/l0wskilled-api-platform-traits/health.svg)](https://phpackages.com/packages/l0wskilled-api-platform-traits)
```

###  Alternatives

[simple-updates/phpwhois

This package contains a Whois (RFC954) library for PHP. It allows a PHP program to create a Whois object, and obtain the output of a whois query with the Lookup function.

251.4k](/packages/simple-updates-phpwhois)

PHPackages © 2026

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