Download the PHP package creatcode/easyaddons without Composer

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

easyaddons

easyaddons 是一个面向 ThinkPHP 6+ 项目体系的插件开发与运行支持包,提供插件安装、启用、禁用、升级、 配置读取、资源发布、路由接入与授权相关能力。

适用范围

面向 TP6+ 内核、FastAdmin 风格项目结构的插件扩展包,可直接运行 FastAdmin 生态的插件包 (含使用 use think\Addons; 等旧版命名空间的老插件)。

包内已内置以下兼容能力,宿主无需额外提供:

包依赖项目中存在以下基础类或等价实现:

功能简介

运行要求

安装方式

安装后执行配置发布:

配置

配置项位于 config/easyaddons.php,由 vendor:publish 从包内发布。 宿主可在自己的配置中覆盖任意一项。

配置项 默认值 说明
unknownsources true 调试模式下是否允许未知来源的插件包(同时受 app_debug 约束)
backup_global_files true 启用或禁用插件时是否备份将被覆盖的全局文件
addon_pure_mode true 插件纯净模式,启用后删除插件目录的 application、public、assets
addon_auth_check false 是否启用插件授权校验
ssl_verify true 是否校验插件市场 HTTPS 证书

包内代码的兜底默认值与上表完全一致,因此整份删除 config/easyaddons.php 不会改变行为 —— 该文件的作用是把可调开关暴露给宿主,而不是定义"另一套默认"。

注意:vendor:publish 对已存在的配置文件不会覆盖。 从旧版本升级时需手动同步新增的配置项。

插件市场地址

本包不定义市场地址 —— 地址属于部署配置(不同环境、不同市场各不相同), 由宿主提供,包只负责读取与调用:

宿主在 config/rocket.php 中配置:

未配置时返回空字符串,插件市场的在线安装入口会自动隐藏(宿主视图据此判断)。

插件钩子说明

FastAdmin 插件的钩子方法普遍使用引用参数修改传入数据:

包内以闭包形式注册插件钩子,闭包内部用引用调用插件方法并把修改后的参数作为返回值回传, 宿主侧需用返回值接收:

Event::trigger($event, $params, true) 在无监听器时返回 false,?: 兜底不可省略。

插件代码内部触发钩子请使用 hook() 函数(插件专属,支持引用传递); 宿主侧请使用 Event::trigger()。

许可

Apache-2.0


All versions of easyaddons with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2.5
topthink/framework Version ^6.1|^7.0|^8.0
guzzlehttp/guzzle Version ^7.0
nelexa/zip Version ^3.3 || ^4.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 creatcode/easyaddons contains the following files

Loading the files please wait ...