PHPackages                             evista/clean\_code - 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. evista/clean\_code

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

evista/clean\_code
==================

Demonstration of clean code practices in PHP.

v1.0.0(10y ago)018MITPHPPHP &gt;=5.5.0

Since Oct 4Pushed 10y ago1 watchersCompare

[ Source](https://github.com/balintsera/cleancode)[ Packagist](https://packagist.org/packages/evista/clean_code)[ Docs](https://github.com/evista/clean_code)[ RSS](/packages/evista-clean-code/feed)WikiDiscussions master Synced 2d ago

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

evista/clean\_code
==================

[](#evistaclean_code)

[![Latest Version on Packagist](https://camo.githubusercontent.com/5252acff2516c6bba4baf16ed6e24627231bba603f97c4c8472ea3170cbbf0c6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c65616775652f6576697374612f636c65616e5f636f64652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/league/evista/clean_code)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/6ddd4162de2547ca9f461e8412be7fae0eb942b9cc45a656b6a0f6312345aa08/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7468657068706c65616775652f6576697374612f636c65616e5f636f64652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/thephpleague/evista/clean_code)[![Coverage Status](https://camo.githubusercontent.com/729ee73228c3d60abb4346530bfaad7bd1f12336dcb6dfc68428f1621e84810e/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f7468657068706c65616775652f6576697374612f636c65616e5f636f64652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/thephpleague/evista/clean_code/code-structure)[![Quality Score](https://camo.githubusercontent.com/10e6f16fda9681b1e3253e75aa66f39238ee570382c8ccff108778e5a62fcb14/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7468657068706c65616775652f6576697374612f636c65616e5f636f64652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/thephpleague/evista/clean_code)[![Total Downloads](https://camo.githubusercontent.com/84acfc5206915747cd1bc00f0fe77bad75b9a15c5f5d23d14db83e807d2ffb95/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c65616775652f6576697374612f636c65616e5f636f64652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/league/evista/clean_code)

This is a demonstration package of clean coding practices in PHP. Feel free to contribute.

Install
-------

[](#install)

Via Composer

```
$ composer require evista/clean_code
```

Usage
-----

[](#usage)

```
$longMethod = new \Evista\CleanCode\LongMethods();;
echo $longMethod->getLogName(1,1);
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Balint Sera](https://github.com/serabalint)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

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

Unknown

Total

1

Last Release

3919d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0ab3f9b98b8874849b833ccc3b0dd415d8b116654b319d17e687c218e9021e87?d=identicon)[balintsera](/maintainers/balintsera)

---

Top Contributors

[![balintsera](https://avatars.githubusercontent.com/u/8377085?v=4)](https://github.com/balintsera "balintsera (25 commits)")

---

Tags

refactoringclean codedemonstrationevista

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/evista-clean-code/health.svg)

```
[![Health](https://phpackages.com/badges/evista-clean-code/health.svg)](https://phpackages.com/packages/evista-clean-code)
```

###  Alternatives

[bmitch/churn-php

Discover files in need of refactoring.

1.4k1.5M12](/packages/bmitch-churn-php)[pantheon-systems/terminus

A command line interface for Pantheon

3391.5M18](/packages/pantheon-systems-terminus)[codewithdennis/larament

Larament is a time-saving starter kit to quickly launch Laravel 13.x projects. It includes FilamentPHP 5.x pre-installed and configured, along with additional tools and features to streamline your development workflow.

3891.8k](/packages/codewithdennis-larament)[bowphp/framework

The bow PHP Framework

6017.5k13](/packages/bowphp-framework)[serenata/serenata

Free and open source server providing code assistance for PHP

6412.6k](/packages/serenata-serenata)

PHPackages © 2026

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