PHPackages                             pardovimes/serra - 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. pardovimes/serra

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

pardovimes/serra
================

A Script to check if there is Domain-Driven Design layer leaks

1.0.1(4y ago)14.5k↓40%GPL-3.0-or-laterPHPPHP ^7.4 || ^8.0CI passing

Since Feb 9Pushed 2mo ago1 watchersCompare

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

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

Serra
=====

[](#serra)

Serra is a script that check if there are Domain-driven design layer leaks.

*The name of this repository is inspired by serra angel*

Installation
============

[](#installation)

Install with composer:

```
$ composer require pardovimes/serra
```

Usage
=====

[](#usage)

```
php   [-f ] [-c ]
```

Example

```
php  vendor/bin/serra
```

Options

- `-f ` execute script only for this file
- `-c ` execute script with this configuration

Configuration options
---------------------

[](#configuration-options)

Example

```
{
  "folder-to-scan": "src/",
  "domain-folder-name": "Domain",
  "application-folder-name": "Application",
  "domain-valid-uses": [
    "Webmozart\\Assert\\Assert"
  ],
  "application-valid-uses": [
    "Webmozart\\Assert\\Assert"
  ]
}
```

Options

- `folder-to-scan` if file is not passed it scans all files from folder. `src/` by default.
- `domain-folder-name` Domain layer name. `Domain` by default.
- `application-folder-name` Application layer name. `Application` by default.
- `domain-valid-uses` Array of packages that will ignore if found on domain layer. empty array by default
- `application-valid-uses` Array of packages that will ignore if found on application layer. empty array by default

License
=======

[](#license)

Composer is licensed under the GNU GPLv3 License - see the [LICENSE](LICENSE) file for details.

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance57

Moderate activity, may be stable

Popularity22

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.3% 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

Unknown

Total

1

Last Release

1560d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7abcb32210fa12394f571afc6f3bc3136d7239ccb0d263c2d9b2951fc22f09b7?d=identicon)[pardovimes](/maintainers/pardovimes)

---

Top Contributors

[![pardovimes](https://avatars.githubusercontent.com/u/4448036?v=4)](https://github.com/pardovimes "pardovimes (14 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pardovimes-serra/health.svg)

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

PHPackages © 2026

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