Download the PHP package zyan/gitlab-hooks without Composer

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

zyan/gitlab-hooks

gitlab消息推送 转发给 企业微信与钉钉群机器人等

已支持平台

注:钉钉群请添加一个自定义机器人 关健词为: git

企业微信效果图

钉钉效果图

要求

  1. php >= 7.2
  2. Composer

安装

入门

以laravel为例,创建一个新的控制器 路由为 /test/gitlab
将url填到gitlab系统钩子

进阶

过滤某些事件(白名单)

默认为

注意: 仅对 send 方法有效

高级

自定义提供者

  1. 编写更多的群机器人接口,自己写一个类

  2. 注册自定义提供者

自定义消息模板

钉钉与企业微信默认使用 Zyan\Template\Markdown 消息模板
由于飞书暂不支持 markdown 格式,所以飞书默认使用 Zyan\Template\Text 消息模板
您可以编写自定义模板 或 覆盖默认的模板

  1. 编写一个消息模板类

  2. 注册自定义模板

参与贡献

  1. fork 当前库到你的名下
  2. 在你的本地修改完成审阅过后提交到你的仓库
  3. 提交 PR 并描述你的修改,等待合并

关于作者

License

MIT license


All versions of gitlab-hooks with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
guzzlehttp/guzzle Version ~6.0|~7.0
ext-json Version *
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 zyan/gitlab-hooks contains the following files

Loading the files please wait ....