rekalogika / direct-property-access
Simple implementation of PropertyAccessorInterface that reads and writes directly to the object's properties, bypassing getters and setters.
Package info
github.com/rekalogika/direct-property-access
Type:symfony-bundle
pkg:composer/rekalogika/direct-property-access
Fund package maintenance!
1.4.0
2026-05-08 20:19 UTC
Requires
- php: ^8.2
- symfony/property-access: ^6.1 || ^7.0 || ^8.0
Requires (Dev)
- phpstan/phpstan: ^2.1.54
- phpunit/phpunit: ^10.5
- psalm/plugin-phpunit: ^0.19.5
- symfony/config: ^6.1 || ^7.0 || ^8.0
- symfony/dependency-injection: ^6.1 || ^7.0 || ^8.0
- symfony/http-kernel: ^6.1 || ^7.0 || ^8.0
- symfony/phpunit-bridge: ^6.1 || ^7.0 || ^8.0
- vimeo/psalm: ^6.16
This package is auto-updated.
Last update: 2026-05-11 00:11:34 UTC
README
Implementation of Symfony's PropertyAccessorInterface that reads and writes
directly to the object's properties, bypassing getters and setters.
Synopsis
use Rekalogika\DirectPropertyAccess\DirectPropertyAccessor; class Person { private string $name = 'Jane'; } $propertyAccessor = new DirectPropertyAccessor(); $name = $propertyAccessor->getValue($person, 'name'); // Jane $propertyAccessor->setValue($person, 'name', 'John');
Documentation
rekalogika.dev/direct-property-access
Credits
This project took inspiration from the following projects.
License
MIT
Contributing
Issues and pull requests should be filed in the GitHub repository rekalogika/direct-property-access.