定制 nullref/yii2-useful 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

nullref/yii2-useful

最新稳定版本:v0.0.4

Composer 安装命令:

composer require nullref/yii2-useful

包简介

Useful things for Yii2

README 文档

README

Latest Stable Version Total Downloads Latest Unstable Version License

Collection helpful classes for Yii2

Installation

composer require nullref/yii2-useful --prefer-dist

Structure

Actions

  • EditAction

    Action for AJAX model update.

  • MultipleDeleteAction

    Allows to delete multiple models.

  • MultipleUpdateAction

    Allows to update multiple models.

Behaviors

  • BinaryBehavior

    Allows encode and decode model fields as integer number.

  • DateBehavior

    Allows encode and decode model fields as Unix timestamp.

  • JsonBehavior

    Allows encode and decode model fields as JSON.

  • RelatedBehavior

    Allows to load related data for model.

  • SerializeBehavior

    Allows encode and decode model fields as serialize php string.

  • TranslationBehavior

    Allows to implement multilingual features.

  • CacheTagDependencyBehavior

    Allows to invalidate TagDependency when modify ActiveRecord

Traits

  • GetDefinition

    Allows to get defined in DI container class or default.

  • HasPassword

    Allows to set and validate password for model.

  • Mappable

    Allows to get map from ActiveRecord.

  • MappableQuery

    Same as Mappable trait but for ActiveQuery.

  • SessionModel

    Save and get object from session

Filters

  • RedirectFilter

    Redirect after action by url param.

Helpers

  • Memoize

    Class for calling memoized function or method.

Old version

(Will be remove from version 1.0.0)

JSONBehavior

Allows save in text field customs data structure.

ArrayBehavior

Allows save in text field array structure.

BitBehavior

Allows save in integer field bit array.

DropDownTrait

Allows get lists from ActiveRecord.

PasswordTrait

Easy work with password.

EditAction

Action for AJAX record update.

MultipleUpdateAction

Action multiple update by list of IDs.

TranslationBehavior

Allows implement translations for models

统计信息

  • 总下载量: 8.17k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 6
  • 点击次数: 0
  • 依赖项目数: 13
  • 推荐数: 0

GitHub 信息

  • Stars: 6
  • Watchers: 6
  • Forks: 1
  • 开发语言: PHP

其他信息

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