Libraries tagged by class props
welcomattic/has-attributes
2 Downloads
Check if a class, a method or a property has an attribute
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.
cptechinc/dplus-model
524 Downloads
Propel 2.0 built ORM classes for Dplus data(x) databases based
zeeshanu/yell
16 Downloads
A php package that yells when you try to access a property that doesn't exist in a class!
make/accessible
99 Downloads
A very lightweight PHP package that let you easely access and test singleton classes and inaccessible instance members like private or protected methods and properties.
crimsonkissaki/mockmaker
44 Downloads
Whether you call them doubles, stubs, mocks, partials, fakes, or something else there are times when a mocking library such as PHPUnit's mockBuilder, Mockery, Prophecy, etc. just doesn't do exactly what you need or want. Sometimes you just need a concrete class implementation to run through the unit test wringer or a full end to end functional unit test suite. MockMaker aims to simplify the process of generating concrete fake ORM entity objects. Flexible and extendable, the generated seed code can be altered to suit your particular project with relative ease. That means after the initial setup you can re-run MockMaker for any new entities that get added in or update existing entities that change with little to no fuss. What's more, once MockMaker has made your files it's done; you don't have to include it in your code base and can use the generated files like any other project class.
torugo/property-validator
47 Downloads
Validators and Handlers for class properties.
takutakuaoao/php-cs-fixer-align-property-rule
6 Downloads
the cs-fixer-rule aligning vertical positions of class properties.
seotils/properties
17 Downloads
Sets, gets and validate class properties
maximo-perez-villalba/class-properties-reader
5 Downloads
La clase lee vía reflexión todos las propiedades de una clase incluyendo las propiedades privadas de su jerarquía.
lesphp/property-info-typed-array
119 Downloads
Extract key and value types using PHP Attributes for array class properties. This dispense the use of PhpDocExtractor for typed arrays.
kerekit/class-property-management
4 Downloads
A library providing read & write access for class properties based on simple annotations
iggyvolz/class-properties-conditions
4 Downloads
Conditions for PHP Class Properties
iggyvolz/class-properties
124 Downloads
C#-style class properties for PHP classes
avantar/readable-only-properties
11 Downloads
A little trait which blocks class properties setters.