PHPackages                             phalcon/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. [Framework](/categories/framework)
4. /
5. phalcon/traits

ActiveLibrary[Framework](/categories/framework)

phalcon/traits
==============

Phalcon Framework reusable traits

4.0.0(1mo ago)673.3k—3.6%42BSD-3-ClausePHPPHP &gt;=8.1 &lt;9.0CI passing

Since Oct 28Pushed 3d ago4 watchersCompare

[ Source](https://github.com/phalcon/traits)[ Packagist](https://packagist.org/packages/phalcon/traits)[ Docs](https://phalcon.io)[ GitHub Sponsors](https://github.com/phalcon)[ Fund](https://opencollective.com/phalcon)[ RSS](/packages/phalcon-traits/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (10)Dependencies (17)Versions (14)Used By (2)

Phalcon Traits
==============

[](#phalcon-traits)

[![Latest Version](https://camo.githubusercontent.com/17c7e563e3afc367b8a0ccbe3b13c578433f80f9835457196824612d172da6b7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7068616c636f6e2f7472616974733f696e636c7564655f70726572656c6561736573267374796c653d666c61742d737175617265266c6f676f3d7061636b6167697374266c6f676f436f6c6f723d7768697465)](https://packagist.org/packages/phalcon/traits)[![PHP Version](https://camo.githubusercontent.com/4da0bcb8acb0641ad95036765d67d8ea2da37a494e3434b8a04613066d7e241d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f7068616c636f6e2f7472616974733f7374796c653d666c61742d737175617265266c6f676f3d706870266c6f676f436f6c6f723d7768697465)](https://packagist.org/packages/phalcon/traits)[![Total Downloads](https://camo.githubusercontent.com/11dfa85087a353dbee01c09153fc24099503285a60a3bc7372d0fd617ade8119/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7068616c636f6e2f7472616974733f7374796c653d666c61742d737175617265266c6f676f3d7061636b6167697374266c6f676f436f6c6f723d7768697465)](https://packagist.org/packages/phalcon/traits/stats)[![License](https://camo.githubusercontent.com/9408f99f6e144fd920bebc51bff2859ad588dbb805b5027524cd24f3ab616c72/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f7068616c636f6e2f7472616974733f7374796c653d666c61742d737175617265266c6f676f3d6f70656e736f75726365696e6974696174697665266c6f676f436f6c6f723d7768697465)](https://github.com/phalcon/traits/blob/master/LICENSE)

[![Traits CI](https://github.com/phalcon/traits/actions/workflows/main.yml/badge.svg?branch=master)](https://github.com/phalcon/traits/actions/workflows/main.yml)[![Quality Gate Status](https://camo.githubusercontent.com/1e887e2a5933ff7d04bebf66cbe87051f14ef9fb327e48cec413cad6723bbaf2/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d7068616c636f6e5f747261697473266d65747269633d616c6572745f737461747573)](https://sonarcloud.io/summary/new_code?id=phalcon_traits)[![Coverage](https://camo.githubusercontent.com/26160484bd13c54955c2faafef2a45841c3dc29d37c738d3e8e7839fc0a5a36b/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d7068616c636f6e5f747261697473266d65747269633d636f766572616765)](https://sonarcloud.io/summary/new_code?id=phalcon_traits)[![PDS Skeleton](https://camo.githubusercontent.com/50d01a5094afcc3a827c3cadaec43d23b2a256cb249f5fdd6e5ffdb53ea7971c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7064732d736b656c65746f6e2d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/php-pds/skeleton)

[![Discord](https://camo.githubusercontent.com/94fc3d9eff10556bb8115023b0f05a2b7465d01e863e0d7bb030e8fc51cfcf56/68747470733a2f2f696d672e736869656c64732e696f2f646973636f72642f3331303931303438383135323337353239373f6c6162656c3d446973636f7264266c6f676f3d646973636f7264267374796c653d666c61742d737175617265)](https://phalcon.io/discord)[![Contributors](https://camo.githubusercontent.com/fd74d8130cb03b4ab13884bc486e5fea7c8ea78936cd3b5cff928a997f844417/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6e7472696275746f72732f7068616c636f6e2f7472616974733f7374796c653d666c61742d737175617265266c6f676f3d676974687562266c6f676f436f6c6f723d7768697465)](https://github.com/phalcon/traits/graphs/contributors)[![OpenCollective Backers](https://camo.githubusercontent.com/b0e7e54861423843ca8c0b82b3cbdbd7e43557493dee35be2c721a9cc21107a1/68747470733a2f2f696d672e736869656c64732e696f2f6f70656e636f6c6c6563746976652f6261636b6572732f7068616c636f6e3f7374796c653d666c61742d737175617265266c6f676f3d6f70656e636f6c6c656374697665266c6f676f436f6c6f723d7768697465)](https://opencollective.com/phalcon)[![OpenCollective Sponsors](https://camo.githubusercontent.com/09f0801da6213d104e2283e28a70b5b5c9aa25076b9211442e403187c64ca12b/68747470733a2f2f696d672e736869656c64732e696f2f6f70656e636f6c6c6563746976652f73706f6e736f72732f7068616c636f6e3f7374796c653d666c61742d737175617265266c6f676f3d6f70656e636f6c6c656374697665266c6f676f436f6c6f723d7768697465)](https://opencollective.com/phalcon)

This package contains traits with methods that are used for Phalcon v6 onward.

It can also be useful to others that want short snippets of code that perform a task, without having to reinvent the wheel.

Some of these methods are just wrappers to PHP functions, thus allowing developers to mock the method in order to get different results and cover paths of the application with relevant tests.

[Documentation](docs/general.md)

###  Health Score

62

—

FairBetter than 99% of packages

Maintenance96

Actively maintained with recent releases

Popularity39

Limited adoption so far

Community23

Small or concentrated contributor base

Maturity76

Established project with proven stability

 Bus Factor1

Top contributor holds 93% 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 ~156 days

Recently: every ~318 days

Total

12

Last Release

38d ago

Major Versions

1.3.0 → 2.0.02023-01-02

2.0.4 → 3.0.02025-02-11

3.0.0 → 4.0.02026-07-10

PHP version history (3 changes)1.0.0PHP &gt;=7.4 &lt;9.0

2.0.0PHP &gt;=8.0 &lt;9.0

3.0.0PHP &gt;=8.1 &lt;9.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1221505?v=4)[The Phalcon PHP Framework](/maintainers/phalcon)[@phalcon](https://github.com/phalcon)

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

---

Top Contributors

[![niden](https://avatars.githubusercontent.com/u/1073784?v=4)](https://github.com/niden "niden (200 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (11 commits)")[![borisdelev](https://avatars.githubusercontent.com/u/4441663?v=4)](https://github.com/borisdelev "borisdelev (3 commits)")[![Jeckerson](https://avatars.githubusercontent.com/u/3289702?v=4)](https://github.com/Jeckerson "Jeckerson (1 commits)")

---

Tags

hacktoberfestphalconphalcon-frameworktraitsphpframeworkphalcontraits

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/phalcon-traits/health.svg)

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

###  Alternatives

[atk4/core

Agile Core - collection of PHP Traits for designing object-oriented frameworks

192.5M5](/packages/atk4-core)[phpmv/php-mv-ui

A JQuery and UI library for php and php MVC frameworks

3320.6k3](/packages/phpmv-php-mv-ui)[zemit-cms/core

Build Phalcon REST APIs faster with database-first scaffolding, model relationships, eager loading, identity, permissions, CLI, and WebSocket support.

138.5k1](/packages/zemit-cms-core)

PHPackages © 2026

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