Download the PHP package yiiplus/yii2-appversion without Composer

On this page you can find all versions of the php package yiiplus/yii2-appversion. 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-appversion

yiiplus/yii2-appversion

易加脚手架里面的 app版本控制

Feature

Installation

The preferred way to install this extension is through composer.

Either run

or add

to the require section of your composer.json file.

Usage

配置

定义后台添加 .admin/config/main.php 的中添加 modules 定义 Api 接口 .app/config/main.php 添加 modules 并且需要在 urlManager 数组中添加

执行数据迁移

首先需要确保你的数据库中没有以下数据表

然后执行迁移文件命令

输出

下一章讲解接口使用

接口说明

请求URL:

请求方式:

参数:

参数名 必选 类型 说明
app_id int 应用id
platform string ios & Android
code int 版本code eq: 2158
name string 版本号 eq: 1.0.0 1.10.15 1.1.156
timestamp string 时间
channel string 渠道码

参数 code、min_code、name、min_name

作用:客户端根据版本号来决定更新,后台内部根据 code 值判断版本大小,客户端可自定code OR name 来判断版本

code、name 当前该设备版本能支持的最新版本,比对当前版本是否要更新。

min_code、min_name 当前该设备最低版本对应的更新

参数 type

作用:客户端根据 type 类型来决定采用何种更新

具体有如下几种:

1 一般更新

每次APP启动都会弹出更新提示,但是更新对话框可以点击关闭,然后用户可以继续使用。

用户下次再次启动APP,更新对话框依然弹出来提示用户更新,用户依然可以关闭继续使用。

2 强制更新

顾名思义,弹出更新后就必须更新,否则无法进行任何操作,退出应用再进来依然是这样。

3 静默更新

APP检测到更新信息后,判断如果是WI-FI情况下,会在后台下载好Apk文件,下次用户再启动APP的时候会提示用户直接安装新版APP。

用户可以关闭更新提示框继续使用,但是下次再打开依然会提示用户安装新版APP。

4 可忽略更新

顾名思义,用户点击忽略后,不在对该版本进行提示,直到下一次版本更新才会重新提示版本更新。

5 静默可忽略更新

检测到新版本后先下载,下载完成之后弹更新对话框,随后逻辑同可忽略更新

参数 scope

作用:客户端根据 scope 返回的值去判断该设备是否在更新的范围内

1 全量更新

所有设备都在此次更新的范围内

2 IP白名单

根据 APP 管理里面设定的 IP 地址来进行更新,符合 IP白名单的,则会传递更新信息


All versions of yii2-appversion with dependencies

PHP Build Version
Package Version
No informations.
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 yiiplus/yii2-appversion contains the following files

Loading the files please wait ....