PHPackages                             vegas-cmf/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. vegas-cmf/common

AbandonedArchivedLibrary

vegas-cmf/common
================

Vegas CMF Common

v3.0.0(8y ago)13121MITPHPPHP &gt;=7.0

Since Mar 25Pushed 8y ago4 watchersCompare

[ Source](https://github.com/vegas-cmf/common)[ Packagist](https://packagist.org/packages/vegas-cmf/common)[ RSS](/packages/vegas-cmf-common/feed)WikiDiscussions master Synced 2d ago

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

Vegas CMF Common
================

[](#vegas-cmf-common)

[![Build Status](https://camo.githubusercontent.com/a23d8f692fc39373920e78e480eb18eb26d8813c5ca871618a5646c6b1ee1594/68747470733a2f2f7472617669732d63692e6f72672f76656761732d636d662f636f6d6d6f6e2e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/vegas-cmf/common)[![Coverage Status](https://camo.githubusercontent.com/915cbf7e7076e9976506ce8103abd457a595f094f19c67a15a8180e954d5e6a8/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f76656761732d636d662f636f6d6d6f6e2f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/vegas-cmf/common?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/68337def3206170e595e3ac1ca198953c689847800a00b81699a01f88801be05/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f76656761732d636d662f636f6d6d6f6e2e737667)](https://packagist.org/packages/vegas-cmf/common)[![Total Downloads](https://camo.githubusercontent.com/cb356f276af57e55dda6d86063064de507e10d0e8e9d538903b7970a54bc09bc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f76656761732d636d662f636f6d6d6f6e2e737667)](https://packagist.org/packages/vegas-cmf/common)

`Vegas\Di\InjectionAwareTrait`

Helper trait for \\Phalcon\\Di\\InjectionAwareInterface

```
class Foo implements \Phalcon\Di\InjectionAwareInterface
{
    use \Vegas\Di\InjectionAwareTrait;
}
```

`Vegas\Http\Method`

List of Http methods

`Vegas\Hydrator`

Simple component to provide mechanisms both for hydrating objects, as well as extracting data sets from them.

- `Vegas\Hydrator\Method`Hydrates object with given array using setter methods. Extracts data from object using getter methods.

```
class Foo
{
    protected $bar;

    public function setBar($bar)
    {
        $this->bar = $bar;
    }

    public function getBar()
    {
        return $this->bar;
    }
}

$array = ['bar' => 'test'];

$foo = new Foo();
(new \Vegas\Hydrator\Method())->hydrate($array, $foo);

echo $foo->getBar(); // 'test'

print_r((new \Vegas\Hydrator\Method())->extract($foo)); // ['bar' => 'test'];
```

- `Vegas\Hydrator\Property`Hydrates object with given array using accessible class properties. Extracts data from object using accessible class properties.

```
class Foo
{
    public $bar;
}

$array = ['bar' => 'test'];

$foo = new Foo();
(new \Vegas\Hydrator\Property())->hydrate($array, $foo);

echo $foo->bar; // 'test'

print_r((new \Vegas\Hydrator\Property())->extract($foo)); // ['bar' => 'test'];
```

- Naming strategy Converts underscore to camelCase notation and vice versa. Allows to fill object with methods/properties in camel case notation using array with underscore keys and vice versa.

- `UnderscoreToCamelCase`

```
class Foo
{
    protected $camelCase;

    public function setCamelCase($val)
    {
        $this->camelCase = $val;
    }

    public function getCamelCase()
    {
        return $this->camelCase;
    }
}

$array = ['camel_case' => 'test'];

$foo = new Foo();
(new \Vegas\Hydrator\Method(new \Vegas\Hydrator\NamingStrategy\UnderscoreToCamelCase()))->hydrate($array, $foo);

echo $foo->getCamelCase(); // 'test'
```

- `CamelCaseToUnderscore`

```
class Foo
{
    protected $camel_case;

    public function set_camel_case($val)
    {
        $this->camel_case = $val;
    }

    public function get_camel_case()
    {
        return $this->camel_case;
    }
}

$array = ['camelCase' => 'test'];

$foo = new Foo();
(new \Vegas\Hydrator\Method(new \Vegas\Hydrator\NamingStrategy\CamelCaseToUnderscore()))->hydrate($array, $foo);

echo $foo->get_camel_case(); // 'test'
```

`Vegas\Stdlib`

Set of components that implements general purpose utility class for different scopes:

- Array
- DateTime
- File
- String
- Path

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 53.8% 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 ~142 days

Total

4

Last Release

3275d ago

Major Versions

v2.0.0-beta → v3.0.02017-05-26

PHP version history (2 changes)v2.0.0PHP &gt;=5.4

v3.0.0PHP &gt;=7.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/46222392?v=4)[vegas](/maintainers/vegas)[@vegas](https://github.com/vegas)

---

Top Contributors

[![szytko](https://avatars.githubusercontent.com/u/300085?v=4)](https://github.com/szytko "szytko (21 commits)")[![maniolek](https://avatars.githubusercontent.com/u/3389670?v=4)](https://github.com/maniolek "maniolek (14 commits)")[![archdevil666pl](https://avatars.githubusercontent.com/u/2486875?v=4)](https://github.com/archdevil666pl "archdevil666pl (4 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/vegas-cmf-common/health.svg)

```
[![Health](https://phpackages.com/badges/vegas-cmf-common/health.svg)](https://phpackages.com/packages/vegas-cmf-common)
```

###  Alternatives

[stanislav-web/phalcon-sms-factory

Multiple gateway SMS Sender factory. Provide any SMS services inside your Phalcon's projects

321.6k](/packages/stanislav-web-phalcon-sms-factory)

PHPackages © 2026

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