Download the PHP package jobsys/approval-module without Composer

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

Approval 审核模块

该模块提供了基础的审核流程定义,审核流程实例,审核流程任务,审核流程任务实例,审核流程任务实例记录等功能。

模块安装

配置

模块配置

模块功能

审核功能

在模块配置中先添加项目中的审核类型,然后在管理后台进行审核的流程定义。可以为流程设置多个审核流程及节点的可见性,具体见设置页面。后续可以在业务中创建 审核任务,以及进行任务的审核。

开发规范

  1. config/module.phpApproval => approval_types 添加审核类型。

  2. 给被审核的 Model 添加 Modules\Approval\Traits\Approvable trait。

  3. 在业务逻辑中创建审核任务,如下:

    更推荐使用 Event/Listener 的方式创建审核任务,对于原业务流程侵入性更低,且可以在 Listener 中处理多种事件,其流程如下:

    1. app/Events 目录下创建 ProjectCreated.php 事件类

    2. app/Listeners 目录下创建 ProjectCreatedListener.php 监听类并创建审核任务

    3. app/Providers/EventServiceProvider.php 中注册事件和监听类

    4. 在业务逻辑中触发事件,如下:
  4. 使用 Modules\Approval\Services\ApprovalService 中的 getUserApprovable 获取用户的审核任务,如下:

    $query 参数是一个 Approvable Model 的查询对象,可以使用 with, where 等方法进行查询,进行业务处理后返回。

  5. 在前端引入 Modules\Approval\Resources\views\web\components\ApprovalBox.vue,其中已经封装了 审核功能,该组件接收三个参数:

    以上三个参数在上一步的 getUserApprovable 都已经封装到了审核对象中,可以直接使用。

模块代码

数据表

数据模型/Scope

枚举

辅助函数

基础

Controller

UI

PC 端页面

PC 组件

Service


All versions of approval-module 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 jobsys/approval-module contains the following files

Loading the files please wait ....