PHPackages                             vpg/titon.common - 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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. vpg/titon.common

ActiveLibrary[PSR &amp; Standards](/categories/psr-standards)

vpg/titon.common
================

The Titon common package provides global functionality like class traits and augmentation as well as dependency and configuration management.

v1.4(8y ago)013.8k↓30.4%1BSD-2-ClausePHPPHP &gt;=5.4.0

Since Jan 1Pushed 2mo ago8 watchersCompare

[ Source](https://github.com/vpg/titon.common)[ Packagist](https://packagist.org/packages/vpg/titon.common)[ Docs](http://titon.io)[ RSS](/packages/vpg-titoncommon/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (1)Versions (7)Used By (1)

Common v0.13.5 [![Build Status](https://camo.githubusercontent.com/d201ddc063b8c8720780d87ee5f2f51f3df3ff35c1c45b52e2b8f1613883b2fc/68747470733a2f2f7472617669732d63692e6f72672f7469746f6e2f636f6d6d6f6e2e706e67)](https://travis-ci.org/titon/common)
======================================================================================================================================================================================================================================================

[](#common-v0135-)

Provides common functionality for external packages, such as dependency management through registries and containers, global configuration with a static configuration management layer, and a base class for all modular abstract classes to inherit.

On top of those features, the common package provides multiple traits that allow horizontal inheritance of powerful patterns that solve basic use cases, like caching within class instances, class configurations, class dependencies, and more. Classes can be further enhanced through augmentations, which are self contained inner classes.

For example, we can inherit common class functionality like serialization, configuration, and more.

```
class Object extends Titon\Common\Base {
    use Titon\Common\Attachable,    \\ Provides lazy-loaded inner class dependencies
        Titon\Common\Cacheable,     \\ Provides memoization (method caching)
        Titon\Common\Instanceable;  \\ Provides multiton instance support
}
```

We can also lazy-load dependencies through the registry.

```
use Titon\Common\Registry;

Registry::register('foo.bar', function() {
    return new Foo\Bar();
});

$foobar = Registry::get('foo.bar');
$foobar = Registry::factory('Foo\Bar'); // by namespace
```

And finally, configuration management has never been easier.

```
use Titon\Common\Config;

Config::set('foo.bar', 'baz');
$baz = Config::get('foo.bar');
```

### Features

[](#features)

- `Base` - Primary base class
- `Traits` - Horizontal inheritance
- `Augments` - Class functionality encapsulation
- `Registry` - Static dependency container
- `Container` - Dependency container
- `Config` - Configuration management

### Dependencies

[](#dependencies)

- `Utility`
- `Io` (optional for Config)

### Requirements

[](#requirements)

- PHP 5.4.0

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance57

Moderate activity, may be stable

Popularity25

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity62

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

Total

5

Last Release

3001d ago

### Community

Maintainers

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

---

Top Contributors

[![ogarbe](https://avatars.githubusercontent.com/u/1395245?v=4)](https://github.com/ogarbe "ogarbe (1 commits)")[![OlivierPiegay](https://avatars.githubusercontent.com/u/1914604?v=4)](https://github.com/OlivierPiegay "OlivierPiegay (1 commits)")

---

Tags

containerconfigdependencycommonbasetitontraitsregistryaugments

### Embed Badge

![Health badge](/badges/vpg-titoncommon/health.svg)

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

###  Alternatives

[league/container

A fast and intuitive dependency injection container.

86787.8M343](/packages/league-container)[capsule/di

A PSR-11 compliant autowiring dependency injection container.

2857.5k2](/packages/capsule-di)[miladrahimi/phpcontainer

Dependency injection (IoC) container for PHP projects

1322.7k2](/packages/miladrahimi-phpcontainer)

PHPackages © 2026

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