PHPackages                             lts/microdeps-safeobjects - 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. lts/microdeps-safeobjects

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

lts/microdeps-safeobjects
=========================

A micro dependency that provides safe PHP objects

00[1 issues](https://github.com/LongTermSupport/microdeps-safeobjects/issues)PHP

Since Nov 15Pushed 4y agoCompare

[ Source](https://github.com/LongTermSupport/microdeps-safeobjects)[ Packagist](https://packagist.org/packages/lts/microdeps-safeobjects)[ RSS](/packages/lts-microdeps-safeobjects/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

MicroDeps/SafeObjects
=====================

[](#microdepssafeobjects)

MicroDeps are all about very small pieces of code that do a single small thing well

This MicroDep is for Safe Objects. This is an implementation of objects that prevent one particular foot gun - dynamic properties.

This uses the magic `__get`, `__set` and `__isset` methods to intercept accesses to non existant properties and throws a helpful exception - with a hint on which property you might have meant if it is a typo, or otherwise listing all public properties.

Installing
----------

[](#installing)

You can use Composer if you want to quickly test out the idea, though it is suggested that as this is so small - you might be better just copy/pasting it into your first party code.

```
composer require lts/microdeps-safeobjects

```

Developing
----------

[](#developing)

This package is intended to both be useful, and also to be an example of how to write modern well tested code utilising the latest QA tools to enforce a high standard. You are encouraged to clone the repo and have a play with it and see how it all works.

### PHP QA CI

[](#php-qa-ci)

This package is using PHP QA CI for the quality assurance and continuous integration. You can read more about that here:

#### To run QA process locally

[](#to-run-qa-process-locally)

To run the full QA process locally, simply run:

```
./bin/qa
```

Long Term Support
-----------------

[](#long-term-support)

This package was brought to you by Long Term Support LTD, a company run and founded by Joseph Edmonds

You can get in touch with Joseph at

Check out Joseph's recent book [The Art of Modern PHP 8](https://joseph.edmonds.contact/#book)

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/5a46ff83653f10442de0a2ba097a939acfb8583e1393a2e376a73cb140348791?d=identicon)[lts](/maintainers/lts)

---

Top Contributors

[![LTSCommerce](https://avatars.githubusercontent.com/u/72404520?v=4)](https://github.com/LTSCommerce "LTSCommerce (2 commits)")

### Embed Badge

![Health badge](/badges/lts-microdeps-safeobjects/health.svg)

```
[![Health](https://phpackages.com/badges/lts-microdeps-safeobjects/health.svg)](https://phpackages.com/packages/lts-microdeps-safeobjects)
```

###  Alternatives

[select2/select2

Select2 is a jQuery based replacement for select boxes.

26.0k7.8M27](/packages/select2-select2)[iamcal/php-emoji

This is a PHP library for dealing with Emoji, allowing you to convert between various native formats and displaying them using HTML.

1.3k481.1k](/packages/iamcal-php-emoji)[noahbuscher/macaw

Simple PHP router class.

88717.1k8](/packages/noahbuscher-macaw)[demi/seo

Library for working with SEO parameters of models

131.6k](/packages/demi-seo)

PHPackages © 2026

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