Download the PHP package gdpeter/tp6-addons without Composer

On this page you can find all versions of the php package gdpeter/tp6-addons. 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 tp6-addons

基于THINKPHP6的版本控制拓展

特点:

  1. 使用git进行版本管理,php think package:build 1.0.0 1.0.1 即可生成1.0.1版本的增量补丁
  2. 主要的一个函数是installPackage('system','1.0.1','补丁地址','补丁MD5'),从下载到安装一条龙
    1. 使用文件锁保证多进程并发情况下只会执行一次
    2. 使用md5和配置的检查对包的完整性进行了验证
    3. 支持包的断点下载,保证网络不好的时候下载补丁失败
    4. 动态配置每次更新的执行文件/SQL文件
    5. 动态配置不同包的event、command
    6. 完整的执行日志
    7. ......

升级示例:

示例仅为系统补丁升级流程!!!安装流程、插件流程劳驾您举一反三

git、tp6得熟悉,示例干得啥理解了就行,别原搬示例代码

示例分支:master、1.0.0、1.0.1,注意分支一定要push到origin,git diff的时候自动加了origin的前缀

  1. git checkout master 切换至主分支
  2. 安装拓展 composer require gdpeter/tp6-addons
  3. 配置config/package.php

  4. 配置1.0.0版本的 package.xml到包的目录,这里system包是在根目录

  5. 自行新建 安装.sql,也可以改成 安装.php也会执行,或者不创建
  6. git checkout -b 1.0.0 master 切换至1.0.0分支并推送,此时1.0.0版本已经生成,包是完整的1.0.0zip,可用于安装(不演示)
  7. 切换至master分支,同上配置1.0.1版本的 package.xml,新建分支1.0.1,推送到git origin

  8. 此时git origin 有三个分支,master、1.0.0、1.0.1,使用命令生成1.0.1补丁php think package:build 1.0.0 1.0.1,查看1.0.1版本是否生成:package_build/1.0.1.zip
  9. 任意处理1.0.1.zip到cdn或者某个可以下载的地方即可,获取其md5_file值,此时有url和md5了

在某段升级代码中是这样运行的,首先它是1.0.0版本了,然后执行1.0.1的更新

就是这么简单就升级成功了!!!!

app('package') 可以获取service服务,具体看代码Gdpeter\Tp6Addons\Service

app(Package::class) 可以获取安装服务,具体看代码Gdpeter\Tp6Addons\library\Package

以下展示补丁生成,只需要执行php think package:build 1.0.0 1.0.1即可得到1.0.1版本的补丁了


All versions of tp6-addons with dependencies

PHP Build Version
Package Version
Requires php Version >= 7.1.0
topthink/framework Version ^6.0.0
myttyy/directory-file Version ^1.3
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 gdpeter/tp6-addons contains the following files

Loading the files please wait ....