Libraries tagged by object property setter
rekalogika/direct-property-access
19548 Downloads
Simple implementation of PropertyAccessorInterface that reads and writes directly to the object's properties, bypassing getters and setters.
sikessem/capsule
1881 Downloads
Capsule is designed to make it easier to manage dependencies and objects, while improving encapsulation and ensuring code quality.
alaa-almaliki/property-setter-config
37 Downloads
PHP library can be used to set object properties by a given array passed in the constructor
as-pro/object-access
7 Downloads
A library for accessing object properties via getters and setters
lukaszmakuch/property-setter
149 Downloads
Sets properties of already existing objects.
dandjo/object-adapter
611 Downloads
Provides adapters for target objects with easy property access via magic getter and setter.
lukasz93p/object-serializer
73 Downloads
Package which allows easy serialization and deserialization of php objects using JSON format, setters or public properties are not needed.
ymmtmsys/properties
13 Downloads
Automatically creates a setter and getter via annotations.
mfonte/propaccessor
9 Downloads
A PHP Trait that adds support for direct access to object properties, with explicit accessors and mutators.
snscripts/getset
49911 Downloads
Trait for adding magic setters / getters to objects
macfja/value-provider
47 Downloads
Get/Set object value with its getter/setter/property/metadata
iconic/uniproperty
38 Downloads
A small helper library that helps when you have to access properties of unknown objects by name. It supports both public properties and getter/setter methods.
birb/fancy-stubs-codegen
13 Downloads
Build-time, attribute-driven code generator: write a stub class, mark members with #[DefinerAttribute], and get a real, finished PHP class back — conventions filled in (event names, ids, ...), or whole getters/setters/builder classes generated from the stub's properties. Unlike runtime-reflection tools, the output is a plain PHP file with zero dependency on this library and no per-request reflection cost; useful for scaffolding DDD value objects/aggregates/events, command classes and other boilerplate. Postprocessing (transforming code, e.g. phpcbf/php-cs-fixer/rector), quality checks (evaluating code, e.g. PHPStan/Psalm/PHPCS) and framework-specific conventions (e.g. Laravel table/id naming) ship as separate packages — see birb/fancy-stubs-codegen-postprocessors, birb/fancy-stubs-codegen-code-quality and birb/fancy-stubs-codegen-laravel.
antevemus/adeep-property-access
435 Downloads
Zero-dependency PHP 8.2+ property reader for arrays and objects: dot-notation paths, array/ArrayAccess keys, getX/x/isX/hasX methods, public and magic properties, and private fields only when the class author opts in with #[Specifiable]. The shared accessor of antevemus/aspecification and antevemus/alinq-collection.
bnomei/kirby-blueprints
106 Downloads
PHP Class-based Blueprints for Kirby CMS for better type safety and code completion