PHPackages                             cradlephp/components - 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. cradlephp/components

ActiveLibrary

cradlephp/components
====================

Common PHP7 Patterns and Constructs

2.3.0(6y ago)163.4k↑12.3%14MITPHPPHP &gt;=7.1CI failing

Since Jun 1Pushed 5y ago1 watchersCompare

[ Source](https://github.com/CradlePHP/components)[ Packagist](https://packagist.org/packages/cradlephp/components)[ Docs](https://cradlephp.github.io/)[ RSS](/packages/cradlephp-components/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (28)Used By (4)

Common PHP7 Patterns and Constructs
===================================

[](#common-php7-patterns-and-constructs)

[![Travis CI](https://camo.githubusercontent.com/f1adf3e57e27601bce25cdb79192404b4b371221d3bdc4010f8ea7075393d6a2/68747470733a2f2f7472617669732d63692e6f72672f437261646c655048502f636f6d706f6e656e74732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/CradlePHP/components)[![Coverage Status](https://camo.githubusercontent.com/0dfa04def256028c6399a327291848761f75fb42c2805e8f35264ff4ca9d7d0a/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f437261646c655048502f636f6d706f6e656e74732f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/CradlePHP/components?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/f89e9327273338cd6e3e297bc960f78e172f3843f15f97331b0e025cb706d425/68747470733a2f2f706f7365722e707567782e6f72672f637261646c657068702f636f6d706f6e656e74732f762f737461626c65)](https://packagist.org/packages/cradlephp/components)[![Total Downloads](https://camo.githubusercontent.com/6795fdd49933b78e33469b00e74bd22da6346257317c1264635e7a8c4ff7dc3a/68747470733a2f2f706f7365722e707567782e6f72672f637261646c657068702f636f6d706f6e656e74732f646f776e6c6f616473)](https://packagist.org/packages/cradlephp/components)[![Latest Unstable Version](https://camo.githubusercontent.com/46a7df5fdd84c5f3688057a7e0ccfe598d4d3910d3d0a52cd798027e39accee0/68747470733a2f2f706f7365722e707567782e6f72672f637261646c657068702f636f6d706f6e656e74732f762f756e737461626c65)](https://packagist.org/packages/cradlephp/components)[![License](https://camo.githubusercontent.com/d8731948aebea17906fafdd060ec970d6a23a17e42703deedcc29c7cbac1a50e/68747470733a2f2f706f7365722e707567782e6f72672f637261646c657068702f636f6d706f6e656e74732f6c6963656e7365)](https://packagist.org/packages/cradlephp/components)

Install
-------

[](#install)

If you already installed Cradle, you may not need to install this because it should be already included.

```
composer install cradlephp/components
```

Components
----------

[](#components)

- Curl - cURL wrapper class that helps making cUrl calls easier
- Data - Manages data structs of all kinds. Models, Collections and Registry objects are covered here
- Event - Similar to JavaScript Events. Covers basic and wildcard events.
- Helper - Miscellaneous traits used to add class features
- Http - Deals with Routers, Request, Response and Middleware
- i18n - Covers Language translations and timezone conversions
- Image - Dynamic Image processor
- Profiler - Assists with troubleshooting code
- Resolver - IoC to manage dependency injections

See the [Wiki](https://github.com/CradlePHP/components/wiki) for documentation on these components. See  for more information about the entire project.

---

Contributing to Cradle PHP
==========================

[](#contributing-to-cradle-php)

Thank you for considering to contribute to Cradle PHP.

Please be aware that master branch contains all edge releases of the current version. Please check the version you are working with and find the corresponding branch. For example `v1.1.1` can be in the `1.1` branch.

Bug fixes will be reviewed as soon as possible. Minor features will also be considered, but give me time to review it and get back to you. Major features will **only** be considered on the `master` branch.

1. Fork the Repository.
2. Fire up your local terminal and switch to the version you would like to contribute to.
3. Make your changes.
4. Always make sure to sign-off (-s) on all commits made (git commit -s -m "Commit message")

Making pull requests
--------------------

[](#making-pull-requests)

1. Please ensure to run [phpunit](https://phpunit.de/) and [phpcs](https://github.com/squizlabs/PHP_CodeSniffer) before making a pull request.
2. Push your code to your remote forked version.
3. Go back to your forked version on GitHub and submit a pull request.
4. All pull requests will be passed to [Travis CI](https://travis-ci.org/CradlePHP/components) to be tested. Also note that [Coveralls](https://coveralls.io/github/CradlePHP/components) is also used to analyze the coverage of your contribution.

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~60 days

Recently: every ~126 days

Total

24

Last Release

1892d ago

Major Versions

1.1.x-dev → 2.0.02018-03-11

2.3.x-dev → 3.0.x-dev2021-03-14

PHP version history (2 changes)1.1.1PHP &gt;=7.0

2.0.0PHP &gt;=7.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/120378?v=4)[Christian Blanquera](/maintainers/cblanquera)[@cblanquera](https://github.com/cblanquera)

---

Top Contributors

[![aprilsacil](https://avatars.githubusercontent.com/u/4941743?v=4)](https://github.com/aprilsacil "aprilsacil (8 commits)")[![soycaringal](https://avatars.githubusercontent.com/u/8705300?v=4)](https://github.com/soycaringal "soycaringal (7 commits)")[![cjzamora](https://avatars.githubusercontent.com/u/5561932?v=4)](https://github.com/cjzamora "cjzamora (1 commits)")

---

Tags

cradlecradlephplibraryphp71v2v3-prototypelibrarycradlecradlephpphp71php70

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/cradlephp-components/health.svg)

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

###  Alternatives

[filp/whoops

php error handling for cool kids

13.2k402.4M1.4k](/packages/filp-whoops)[mockery/mockery

Mockery is a simple yet flexible PHP mock object framework

10.7k497.0M23.6k](/packages/mockery-mockery)[league/iso3166

ISO 3166-1 PHP Library

70036.3M116](/packages/league-iso3166)

PHPackages © 2026

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