2017 © Pedro Peláez
 

library discord-gitlab

A package which enables you to create webhooks for gitlab

image

bennetgallein/discord-gitlab

A package which enables you to create webhooks for gitlab

  • Sunday, May 6, 2018
  • by BennetPHP
  • Repository
  • 1 Watchers
  • 0 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

discord-gitlab

This is a library to Discord and GitLab to have the same beautiful Notifications as GitHub has!, (*1)

Getting Started

You can either copy the PHP file directly into your project or preferable just use composer., (*2)

The Scope of this project

So this is a library for composer, right. I'm planning on building a Website that enables even unexperienced users to hook up Gitlab (and maybe other services) to Discord. But that's a thing for the future., (*3)

Composer require command

composer require bennetgallein/discord-gitlab, (*4)

Usage

It is fairly easy to use. I'll throw in an example., (*5)

<?php
namespace DiscordGitlab;

include('vendor/autoload.php');

$input = file_get_contents('php://input');

$secret = "YOUR GITLAB SECRET HERE"; // If you didn't

$gitlab = new \DiscordGitlab\GitLab("WebhookURL_HERE", $input, $secret);

Now, just upload to a webserver and paste the file's path over at GitLab. And you are now receving Discord Notifications every time something gets pushed!, (*6)

Changelog

v2.0

Push Event and Issues are now working as expected., (*7)

v1.0

First release, enables Notifications for push Event., (*8)

License

The project is MIT licensed. To read the full license, open LICENSE.md., (*9)

Contributing

Here are the official Docs by GitLab in case you need them., (*10)

Pull requests and issues are open!, (*11)

The Versions

06/05 2018

dev-master

9999999-dev

A package which enables you to create webhooks for gitlab

  Sources   Download

GPL-3.0

13/10 2017

v2.0

2.0.0.0

A package which enables you to create webhooks for gitlab

  Sources   Download

GPL-3.0

12/10 2017

v1.0

1.0.0.0

A package which enables you to create webhooks for gitlab

  Sources   Download

GPL-3.0