Download the PHP package qingbing/yii2-helper without Composer

On this page you can find all versions of the php package qingbing/yii2-helper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package yii2-helper

yii-helper

版本控制

描述

yii 公用的一些基础类库

抽象类

  1. 基本的队列任务封装 : BaseQueueJob
  2. 控制台基类 : ConsoleController
  3. db-model基类 : Model
  4. 控制器基类 : RestController
  5. 服务基类 : Service
  6. 超管服务基类 : SuperService

封装行为

  1. 默认值填充 : DefaultBehavior
  2. 模型中客户端IP自动填充行为 : IpBehavior
  3. 模型中登录用户昵称自动填充行为 : NicknameBehavior
  4. web请求的附加行为 : RequestBehavior
  5. 模型中客户端日志ID自动填充行为 : TraceIdBehavior
  6. 模型中用户ID自动填充行为 : UidBehavior

组件封装

  1. 缓存助手 : CacheHelper
  2. 重构错误控制句柄 : ErrorHandler

控制器

  1. 健康状态控制器 : HealthController

yii扩展类

  1. yii扩展类 : Application
  2. 文件日志持久化 : FileTarget

过滤器

  1. Action过滤器 : ActionFilter

服务接口

  1. CURD(增删改查)服务接口 : ICurdService
  2. 服务基类 : IService

助手类器

  1. Yii-App 辅助类 : AppHelper
  2. 动态数据验证模型 : DynamicModel
  3. 响应类 : Response
  4. 请求助手 : Req
  5. 数据分页类 : Pager
  6. client请求类
    • 客户端请求封装 : Client
    • 内部系统请求客户端 : InnerClient
    • 普通三方请求代理类 : Proxy
    • 为实例附加重试计算功能 : RetryBehavior
    • 抽象类,系统代理 : SystemProxy

逻辑类

  1. 配置的 key-value 的获取 : KeyValues

工具

  1. redis 计数器 : RedisCounter
  2. 生命周期集合管理 : LifeCollection
    1. 生命周期数据管理 : Store
      1. db管理生命周期数据 : DbStore
      2. redis管理生命周期数据 : RedisStore

片段

  1. 用户登录状态判断 : TLoginRequired
  2. yii\db\Query的扩展处理 : TQueryWhere
  3. 响应处理片段 : Response
  4. 制作保存失败抛出异常片段 : TSave
  5. 数据验证片段 : TValidator

自定义常用验证类型

  1. yii-validator扩展验证数据是否是联系方式(手机或座机) : ContactValidator
  2. yii-validator扩展验证数据是否是传真号码 : FaxValidator
  3. yii-validator扩展验证数据是否是身份证号码 : IdCardValidator
  4. yii-validator扩展验证数据类型为json字符串 : JsonValidator
  5. yii-validator扩展验证数据是否是手机号码 : MobileValidator
  6. yii-validator扩展验证数据是否是姓名 : NameValidator
  7. yii-validator扩展验证数据是否是密码格式 : PasswordValidator
  8. yii-validator扩展验证数据是否是座机号码 : PhoneValidator
  9. yii-validator扩展验证数据是否是qq号码 : QqValidator
  10. yii-validator扩展验证安全操作密码 : SecurityOperateValidator
  11. yii-validator扩展验证数据是否是用户名格式 : UsernameValidator
  12. yii-validator扩展验证数据是否是用户名格式 : ZipCodeValidator

功能集

  1. IP地址解析 : Ip2Location
  2. 常量配置 define-local.php
  3. action操作
    1. \YiiHelper\actions\ClearCache: 系统缓存清理
  4. 三方系统管理
    • 控制器: \YiiHelper\features\system\controllers\SystemController
    • 模型: \YiiHelper\features\system\models\Systems
  5. 三方系统调用模型: \YiiHelper\models\ClientLogs(\YiiHelper\helpers\client\Client::$openDbLog 为true时,请求记录会记录模型表{{%client_logs}}中)

可能排错方式

  1. transmit系统接受不到参数

自有系统代理

SQL作用

  1. sql/prefix_system.sql: 三方系统登录
  2. sql/prefix_client_logs.sql: Client请求访问三方系统开启 openDbLog 时存储访问日志
  3. sql/prefix_life_collection.sql: 生命周期数据采用DbStore存储时使用

All versions of yii2-helper with dependencies

PHP Build Version
Package Version
Requires ext-json Version *
ext-openssl Version *
ext-curl Version *
php Version ^7.1.0
yiisoft/yii2-bootstrap Version ~2.0.0
yiisoft/yii2-swiftmailer Version ~2.0.0 || ~2.1.0
myweishanli/yii2-ip2location Version ~1.0.0
yiisoft/yii2 Version ~2.0.14
yiisoft/yii2-httpclient Version ^2.0
yiisoft/yii2-queue Version ^2.3
yiisoft/yii2-redis Version ^2.0
qingbing/zf-helper Version >=1.0, <2.0
qingbing/php-upload Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package qingbing/yii2-helper contains the following files

Loading the files please wait ....