PHPackages                             php-objects/php-objects - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. php-objects/php-objects

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

php-objects/php-objects
=======================

Primitive types behaving like grown up objects

0.9.3(11y ago)01.8k13MITPHP

Since Jun 25Pushed 11y agoCompare

[ Source](https://github.com/mjacobus/php-objects)[ Packagist](https://packagist.org/packages/php-objects/php-objects)[ Docs](https://github.com/mjacobus/php-objects)[ RSS](/packages/php-objects-php-objects/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependencies (6)Versions (4)Used By (3)

PHP Objects
===========

[](#php-objects)

**IMPORTANT**

This project has been deprecated in favor of [Koine Objects](https://github.com/koinephp/Objects)

Primitive types behaving like grown up objects. Compatible with PHP 5.3.3+

Code Information:

[![Build Status](https://camo.githubusercontent.com/f760e8b44a428cfa45ec8d83f2f66724b43aee3256aa6285c597ce5522fc38fa/68747470733a2f2f7472617669732d63692e6f72672f6d6a61636f6275732f7068702d6f626a656374732e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/mjacobus/php-objects)[![Coverage Status](https://camo.githubusercontent.com/0f5211c8469719f8ef117c5c8c57e84a4d78dfaf983193ab23ecb683f4d726ab/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6d6a61636f6275732f7068702d6f626a656374732f62616467652e706e67)](https://coveralls.io/r/mjacobus/php-objects)[![Code Climate](https://camo.githubusercontent.com/ab5a653bfbe2e8c0f43022d61e05f3dfc141d69c207f5d2afc8c0d14c4cccf6a/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6d6a61636f6275732f7068702d6f626a656374732e706e67)](https://codeclimate.com/github/mjacobus/php-objects)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/33654f1f1e1988ccc08be5219dc2c6201fd5f2076986ae0cfa3317713d0c0e8a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d6a61636f6275732f7068702d6f626a656374732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/mjacobus/php-objects/?branch=master)

Package information:

[![Latest Stable Version](https://camo.githubusercontent.com/183297fd16e2ba114ed82f49826b6ece427c6ea4bae688fbe4937e7946ae67b7/68747470733a2f2f706f7365722e707567782e6f72672f7068702d6f626a656374732f7068702d6f626a656374732f762f737461626c652e737667)](https://packagist.org/packages/php-objects/php-objects)[![Total Downloads](https://camo.githubusercontent.com/02e1a511922e40bae52525a322e67373088a24636c975a7aef54dc597e7aade7/68747470733a2f2f706f7365722e707567782e6f72672f7068702d6f626a656374732f7068702d6f626a656374732f646f776e6c6f6164732e737667)](https://packagist.org/packages/php-objects/php-objects)[![Latest Unstable Version](https://camo.githubusercontent.com/b613289c7d78208a2565d5801793fdec8e92b82d79aaa1db725ebb773a78a068/68747470733a2f2f706f7365722e707567782e6f72672f7068702d6f626a656374732f7068702d6f626a656374732f762f756e737461626c652e737667)](https://packagist.org/packages/php-objects/php-objects)[![License](https://camo.githubusercontent.com/777d208a0d3c03bf463e6d0ac2ef0f40eb65d9b1363f2d47f28485d5ea677a04/68747470733a2f2f706f7365722e707567782e6f72672f7068702d6f626a656374732f7068702d6f626a656374732f6c6963656e73652e737667)](https://packagist.org/packages/php-objects/php-objects)

Once you've written some ruby code and you HAVE to write php, you miss the hell out off ruby objects.

Well, not anymore. Hopefully.

- [PO\\Object](docs/Object.md)
- [PO\\Hash](docs/Hash.md) - There are tons of contribuitions you can make here
- [PO\\String](docs/String.md) - And here!

Installing
----------

[](#installing)

### Installing via Composer

[](#installing-via-composer)

Append the lib to your requirements key in your composer.json.

```
{
    // composer.json
    // [..]
    require: {
        // append this line to your requirements
        "php-objects/php-objects": "dev-master"
    }
}
```

### Alternative install

[](#alternative-install)

- Learn [composer](https://getcomposer.org). You should not be looking for an alternative install. It is worth the time. Trust me ;-)
- Follow [this set of instructions](#installing-via-composer)

Issues/Features proposals
-------------------------

[](#issuesfeatures-proposals)

[Here](https://github.com/mjacobus/php-objects/issues) is the issue tracker.

Contributing
------------

[](#contributing)

Only TDD code will be accepted. Please follow the [PSR-2 code standard](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md).

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

### How to run the tests:

[](#how-to-run-the-tests)

```
phpunit --configuration tests/phpunit.xml
```

### To check the code standard run:

[](#to-check-the-code-standard-run)

```
phpcs --standard=PSR2 lib
phpcs --standard=PSR2 tests

# alternatively

./bin/travis/run_phpcs.sh
```

Lincense
--------

[](#lincense)

[MIT](MIT-LICENSE)

Authors
-------

[](#authors)

- [Marcelo Jacobus](https://github.com/mjacobus)

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity55

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

4

Last Release

4336d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/226834?v=4)[Marcelo Jacobus](/maintainers/mjacobus)[@mjacobus](https://github.com/mjacobus)

---

Top Contributors

[![mjacobus](https://avatars.githubusercontent.com/u/226834?v=4)](https://github.com/mjacobus "mjacobus (111 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/php-objects-php-objects/health.svg)

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

PHPackages © 2026

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