armdevstack / strict-properties-access
A PHP trait that prevents dynamic property creation and enforces strict property access using reflection.
1.0.0
2025-07-18 21:34 UTC
Requires
- php: >=8.2
This package is not auto-updated.
Last update: 2025-07-19 00:48:39 UTC
README
A lightweight PHP trait that enforces strict property access by:
- Preventing creation of dynamic properties
- Warning when trying to access undefined properties
- Using reflection to determine defined properties at runtime
📦 Installation
You can install the package via Composer:
composer require armdevstack/strict-properties-access