Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Propfunc Laravel Package

phpgt/propfunc

A small PHP library that uses magic __get/__set methods to expose getters and setters as normal properties via the MagicProp trait, enabling live and read-only computed properties for DOM-style implementations. Note: PHP 8.4 property hooks may soon make it obsolete.

View on GitHub
Deep Wiki
Context7
v2.0.0

PropFunc now uses GT\PropFunc and a clearer naming convention for magic property accessors. When upgrading to this major release, rename hooks such as __prop_get_name and __prop_set_name to __propGetName and __propSetName. PHP 8.1 or later is required; the legacy Gt\PropFunc namespace remains autoloadable.

  • 2bc05d74 Tighten dependency requirements.
  • 3e798034 Update dependencies through Dependabot.
  • 60a94ee4 Create SECURITY.md.
  • 3710e760 Add JetBrains sponsorship to README with H1 heading.
  • b874c919 Update dependencies and the supported PHP version.
  • 892b7c88 Update the CI runner.
  • 539fd96f Add GT\PropFunc and adopt camelCase magic accessor hooks.
v1.0.1

Sometimes it becomes useful to store the value of a class's magic properties internally, so this minor patch release introduced the __prop internal property, which can be access by any class using the MagicProp trait.

v1.0.0

PropFunc is heavily used in php.gt/dom due to the reliance on a the W3C specification. There have been minor improvements made since it was integrated within Dom, so now v1 is being released to allow Dom to get ready for its next stable release.

Have fun!

v0.1.0

This release finalises the way private/protected values should be accessed via the magic methods. Now if a class needs one of its public properties changing to read-only, it can do by making the property private/protected and implementing the magic getter.

v0.0.1

The simple functionality of the repository is now tested. The main plans are for using with PHP.Gt/Dom, so before v1 is released it will be battle-tested in a few real world applications.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator
equipc/laravel-email-database-log
adedsec/nova-translated-labels
wazza/laravel-db-encryption
hokny/laravel-generator
vonsogt/backup
jengo/queues
jeremykenedy/laravel-observability
coleus/frame
thtg88/journalism
filagora/filagora-ai-forums