eye4web/zfc-user-settings 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

eye4web/zfc-user-settings

Composer 安装命令:

composer require eye4web/zfc-user-settings

包简介

Adds settings functionality to ZfcUser

README 文档

README

Introduction

This adds user settings to ZfcUser. Examples of user settings could be:

  • Does the user want newsletter
  • Favourite color
  • Show profile picture
  • Whatever you want

Note: This module does not give the user the functionality to edit his/her settings. You have to add that functionality yourself. The reason for this is that a setting could be a input, radio, checkbox, select, etc. So instead of taking all this into account and creating some crazy code, you have to do it yourself.

Installation

With composer

  1. Add this project composer.json:

    "require": {
        "eye4web/zfc-user-settings": "dev-master"
    }
  2. Now tell composer to download the module by running the command:

    $ php composer.phar update
  3. Enable it in your application.config.php file.

    <?php
    return array(
        'modules' => array(
            // ...
            'Eye4web\ZfcUser\Settings'
        ),
        // ...
    );
  4. Create database schema(see data folder for dumps)

Usage

First of all you have to create your settings. You do this by inserting a row into the settings table in your database. Be sure to make the id something which is easy to read, for example allow_email.

There are a controller plugin and a viewhelper, both named ZfcUserSetting. Both takes two arguments, the setting id and an optional user object. If no user is supplied it will use the currently logged in user.

Now all you have to do is call $this->ZfcUserSetting('allow_email') and you will get the user setting value.

eye4web/zfc-user-settings 适用场景与选型建议

eye4web/zfc-user-settings 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 20.84k 次下载、GitHub Stars 达 4, 最近一次更新时间为 2015 年 03 月 07 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「module」 「ZendFramework」 「zfcuser」 「eye4web」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 eye4web/zfc-user-settings 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 eye4web/zfc-user-settings 我们能提供哪些服务?
定制开发 / 二次开发

基于 eye4web/zfc-user-settings 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 20.84k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 22
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 4
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-03-07