Libraries tagged by object property setter
rekalogika/direct-property-access
17914 Downloads
Simple implementation of PropertyAccessorInterface that reads and writes directly to the object's properties, bypassing getters and setters.
dandjo/object-adapter
610 Downloads
Provides adapters for target objects with easy property access via magic getter and setter.
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.
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
5 Downloads
A library for accessing object properties via getters and setters
lukaszmakuch/property-setter
149 Downloads
Sets properties of already existing objects.
lukasz93p/object-serializer
66 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
49906 Downloads
Trait for adding magic setters / getters to objects
macfja/value-provider
47 Downloads
Get/Set object value with its getter/setter/property/metadata
sikessem/capsule
1851 Downloads
Capsule is designed to make it easier to manage dependencies and objects, while improving encapsulation and ensuring code quality.
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.
bnomei/kirby-blueprints
96 Downloads
PHP Class-based Blueprints for Kirby CMS for better type safety and code completion
scaleupstack/easy-object
15 Downloads
Convenient object handling for a modern, defensive and strict style of programming in PHP without boilerplate code. E.g. default getters, typed properties, named/default constructors.