PHPackages                             litvinenko/object - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. litvinenko/object

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

litvinenko/object
=================

Litvinenko\\Common\\Object class that powers Varien Object class with data validation rules taken from 'illuminate\\validation' package

v0.0.5(11y ago)0732PHPPHP &gt;=5.4.0

Since Jan 4Pushed 9y ago1 watchersCompare

[ Source](https://github.com/absent1706/extended_varien_object)[ Packagist](https://packagist.org/packages/litvinenko/object)[ RSS](/packages/litvinenko-object/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (3)Versions (6)Used By (2)

Extended Varien\_Object
=======================

[](#extended-varien_object)

Here is Litvinenko\\Common\\Object class that powers Varien\_Object class (see [http://docs.magentocommerce.com/Varien/Varien\_Object/Varien\_Object.html](http://docs.magentocommerce.com/Varien/Varien_Object/Varien_Object.html), [http://alanstorm.com/magento\_varien\_object\_debugging](http://alanstorm.com/magento_varien_object_debugging)) with data validation rules taken from 'illuminate\\validation' package ().

With this object, you have automatically getters, setters, unsetters and functions like 'has' (this is what Varien\_Object does for you) and can validate data in Varien\_Obect with simple rules provided by 'illuminate\\validation' package (see ).

Litvinenko\\Common\\Object class has isValid method that returns TRUE, if object data satisfies object data rules.

For example, for our User object we require login field, user email (which should look like real email) and user id (which should be integer). We will have class like that:

```
class User extends Litvinenko\Common\Object
{
    protected $dataRules = array(
        'login'   => 'required',
        'email'   => 'required|email',
        'user_id' => 'required|integer',
    );
}
```

Now, we can create some user and check whether it has valid data.

```
$user = new User([
    'login'   => null,
    'email'   => 'some_email@gmail.com',
    'user_id' => 'not_number',
]);
echo ($user->isValid()) ? "User is valid\n" : "User is invalid\n";
```

We even can get all validation errors

```
print_r($user->getValidationErrors());
```

That's it!

Installation
------------

[](#installation)

```
composer require litvinenko/object

```

Change logs:
------------

[](#change-logs)

- version 0.0.2: added new convenient validation rules 'float', 'float\_strict', 'integer\_strict', 'more\_than', 'less\_than', 'more\_than\_or\_equal', 'less\_than\_or\_equal' (see bootstrap.php)
- version 0.0.3: added 'object' data rule (see bootstrap.php) and add/remove/set methods for data rules to Litvinenko\\Common\\Object

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 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

Every ~2 days

Total

5

Last Release

4191d ago

PHP version history (2 changes)v0.0.1PHP &gt;=5.3.0

v0.0.4PHP &gt;=5.4.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/45f279e00b0a4c22cf1e0ccf82cd5e2c86e051d66ac911a6ca5413bea4178b2a?d=identicon)[absent1706](/maintainers/absent1706)

---

Top Contributors

[![absent1706](https://avatars.githubusercontent.com/u/1609763?v=4)](https://github.com/absent1706 "absent1706 (11 commits)")

### Embed Badge

![Health badge](/badges/litvinenko-object/health.svg)

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

###  Alternatives

[illuminate/validation

The Illuminate Validation package.

18838.2M1.7k](/packages/illuminate-validation)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77022.3M151](/packages/laravel-mcp)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M131](/packages/roots-acorn)[laravel-validation-rules/credit-card

Validate credit card number, expiration date, cvc

2462.4M7](/packages/laravel-validation-rules-credit-card)[proengsoft/laravel-jsvalidation

Validate forms transparently with Javascript reusing your Laravel Validation Rules, Messages, and FormRequest

1.1k2.4M50](/packages/proengsoft-laravel-jsvalidation)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)

PHPackages © 2026

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