PHPackages                             zonuexe/objectsystem - 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. zonuexe/objectsystem

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

zonuexe/objectsystem
====================

Object system for PHP

0.7.0(2y ago)614.6k↓26.5%2Apache-2.0PHPPHP ^7.2||^8.0

Since Dec 7Pushed 2y ago2 watchersCompare

[ Source](https://github.com/BaguettePHP/objectsystem)[ Packagist](https://packagist.org/packages/zonuexe/objectsystem)[ RSS](/packages/zonuexe-objectsystem/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (11)Used By (2)

Teto Objectsystem
=================

[](#teto-objectsystem)

[![Package version](https://camo.githubusercontent.com/e2bf5ab3426662312a0edebdf518da652b604ea2b1cb9482768577c41f85ea8f/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7a6f6e756578652f6f626a65637473797374656d2e7376673f7374796c653d666c6174)](https://packagist.org/packages/zonuexe/objectsystem)[![Build Status](https://camo.githubusercontent.com/6e6bfa918f3a32353b38cc05685f599ecf8d25587a050c8316f683effe96f310/68747470733a2f2f7472617669732d63692e6f72672f42616775657474655048502f6f626a65637473797374656d2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/BaguettePHP/objectsystem)[![Packagist](https://camo.githubusercontent.com/c0ff1bece9379f60fea0d27d1b29c44fffb5c4eac095623bb2344c00a9eb76d1/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7a6f6e756578652f6f626a65637473797374656d2e7376673f7374796c653d666c6174)](https://packagist.org/packages/zonuexe/objectsystem)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/d60c86062853bbbb7f30283e04a52287401eea254abcd6c68ba7d7db66c0dd4e/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f42616775657474655048502f6f626a65637473797374656d2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/BaguettePHP/objectsystem/?branch=master)

Object system implementation for PHP

Document
--------

[](#document)

- [API Reference](http://baguettephp.github.io/objectsystem/) (generated By [ApiGen](https://github.com/ApiGen/ApiGen) 4.1.2)
- in Japanese: [`TypedProperty`について](./poem.ja.md).
- in Japanese: [private/protectedなプロパティを外部から読み込み可能にする - Qiita](http://qiita.com/tadsan/items/2049243e47495764b191)

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

[](#installation)

### [Composer](https://getcomposer.org/)

[](#composer)

```
cd /path/to/your/project
composer require zonuexe/objectsystem
```

Features
--------

[](#features)

- Property type check at run time
    - `trait TypedProperty`
    - `trait TypeAssert`
    - `class TypeDefinision`
- Object container
    - `class ObjectArray`
    - `interface ToArrayInterface`
- Trait for general class
    - `trait ReadOnlyTrait`: Restrict write to not accessable property.
    - `trait PrivateGetter`: Private property behaves like read only.
        - Very simple, but you may not be able to imagine the behavior of trait in the inherited class.
        - Behavior of undefined property depends on [error\_reporting()](http://php.net/manual/function.error-reporting.php) and [set\_error\_handler()](http://php.net/manual/function.set-error-handler.php).
    - `trait PrivateStrictGetter`: Private property behaves like read only.
        - Throws `OutOfRangeException` if propery is undefined.
    - `trait MethodAlias`: Make alias of method.
    - `trait PropertyLikeMethod`: Call method as property.

References
----------

[](#references)

- [phpDocumentor Definition of a ‘Type’](http://www.phpdoc.org/docs/latest/references/phpdoc/types.html)

Copyright
---------

[](#copyright)

see `./LICENSE`.

```
Object system implementation for PHP
Copyright (c) 2016 [Baguette HQ](http://baguettephp.github.io/) / [USAMI Kenta](https://tadsan.github.io/)

```

Teto Kasane
-----------

[](#teto-kasane)

I love [Teto Kasane](http://utau.wikia.com/wiki/Teto_Kasane). (ja: [Teto Kasane official site](http://kasaneteto.jp/))

```
　　　　　 　r /
　 ＿＿ , --ヽ!-- .､＿
　! 　｀/::::;::::ヽ l
　!二二!::／}::::丿ハﾆ|
　!ﾆニ.|:／　ﾉ／ }::::}ｺ
　L二lイ　　0´　0 ,':ﾉｺ
　lヽﾉ/ﾍ､ ''　▽_ノイ ソ
 　ソ´ ／}｀ｽ /￣￣￣￣/
　　　.(_:;つ/  0401 /　ｶﾀｶﾀ
 ￣￣￣￣￣＼/＿＿＿＿/

```

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity64

Established project with proven stability

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

Recently: every ~722 days

Total

9

Last Release

938d ago

PHP version history (2 changes)0.6.0PHP &gt;=5.5|&gt;=7.0

0.7.0PHP ^7.2||^8.0

### Community

Maintainers

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

---

Top Contributors

[![zonuexe](https://avatars.githubusercontent.com/u/822086?v=4)](https://github.com/zonuexe "zonuexe (73 commits)")

---

Tags

magic-methodobject-systemooppackagistphpteto-kasane

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleECS

Type Coverage Yes

### Embed Badge

![Health badge](/badges/zonuexe-objectsystem/health.svg)

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

PHPackages © 2026

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