Download the PHP package illchuk/zfc-user-simple-settings without Composer
On this page you can find all versions of the php package illchuk/zfc-user-simple-settings. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package zfc-user-simple-settings
ZfcUserSimpleSettings
A solid little "user settings" addition to your ZfcUser Doctrine entity; with configurable defaults.
Installation
Install with composer require illchuk/zfc-user-simple-settings
Then include in your modules.config.php
:
[..., 'ZfcUser', 'ZfcUserSimpleSettings', ...]
Finally, drop it into your User entity like the following:
class User extends ZfcEntityUser implements SettingsInterface {
use SettingsTrait;
// ...
}
Configuration
Configure the default values by installing the auto-config file.
Then add the lifecycle listener as follows:
'doctrine' => [
'eventmanager' => [
'orm_default' => [
'subscribers' => [
\ZfcUserSimpleSettings\Entity\Listener\SettingsLifecycle::class,
],
],
],
],
Bonus
This functionality can actually be applied to any Doctrine entity; ZfcUser isn't actually required.
All versions of zfc-user-simple-settings with dependencies
PHP Build Version
Package Version
Requires
php Version
^5.6|^7.0
doctrine/orm Version ^2.5
doctrine/doctrine-orm-module Version ^1.0
beaucal/beaucal-util Version ^0.1
phpoption/phpoption Version ^1.0
doctrine/orm Version ^2.5
doctrine/doctrine-orm-module Version ^1.0
beaucal/beaucal-util Version ^0.1
phpoption/phpoption Version ^1.0
The package illchuk/zfc-user-simple-settings contains the following files
Loading the files please wait ....