PHPackages                             korditpteltd/kd-cakephp-webhooks - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. korditpteltd/kd-cakephp-webhooks

ActiveCakephp-plugin[Utility &amp; Helpers](/categories/utility)

korditpteltd/kd-cakephp-webhooks
================================

KORDIT CakePHP Webhook Plugin

03742PHP

Since Mar 31Pushed 6y ago1 watchersCompare

[ Source](https://github.com/mohamednizar/kd-cakephp-webhooks)[ Packagist](https://packagist.org/packages/korditpteltd/kd-cakephp-webhooks)[ RSS](/packages/korditpteltd-kd-cakephp-webhooks/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

CakePHP Webhooks Plugin
=======================

[](#cakephp-webhooks-plugin)

[![Build Status](https://camo.githubusercontent.com/100a5275e43bb4a953f5476df4760a670ab4e3f1ad900b122b613ce2e2eb04a8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4275696c642d70617373696e672d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://bitbucket.org/korditpteltd/kd-cakephp-webhooks)[![License](https://camo.githubusercontent.com/44026c5b60860b638fa88ba49602b11a4993a6a10b01c6a2046d605378bfd711/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e63652d47504c253230322e302d626c75652e7376673f7374796c653d666c61742d737175617265)](LICENSE.txt)

Plugin containing the vanilla javascript file for the triggering of webhook events implemented on the application level. Plugin also contain the Table file, SQL structure and the default controller for retrieval of webhook table information for execution.

Requirements
------------

[](#requirements)

- CakePHP 3.1+

Installation
------------

[](#installation)

- Edit `composer.json` file by adding the following lines:

```
"repositories":[
        {
            "type": "git",
            "url": "git@github.com:mohamednizar/kd-cakephp-webhooks.git"
        }
    ]
```

- Example `composer.json` after adding required lines:

```
{
    "name": "korditpteltd/openemis-phpoe",
    "description": "KORDIT OpenEMIS CORE",
    "homepage": "https://demo.openemis.org/core",
    "type": "project",
    "license": "GPL-2.0",
    "require": {
        "php": ">=5.4.16",
        "cakephp/cakephp": "3.2.6"
    },
    "scripts": {
        "post-install-cmd": "App\\Console\\Installer::postInstall",
        "post-autoload-dump": "Cake\\Composer\\Installer\\PluginInstaller::postAutoloadDump"
    },
    "minimum-stability": "dev",
    "prefer-stable": true,
    "repositories":[
        {
            "type": "git",
            "url": "git@github.com:mohamednizar/kd-cakephp-webhooks.git"
        }
    ]
}
```

```
composer require korditpteltd/kd-cakephp-webhooks "*"
```

Usage
-----

[](#usage)

In your app's `config/bootstrap.php` add:

```
// In config/bootstrap.php
Plugin::load('Webhook', ['autoload' => true, 'route' => true]);
```

or using cake's console:

```
bin/cake plugin load -r --autoload Webhook
```

Configuration:
--------------

[](#configuration)

You will need to insert the event entries into the webhooks and webhook\_events table

**webhooks table**

idnamestatusurlmethoddescriptionmodified\_user\_idmodifiedcreated\_user\_idcreated1Application A Logout1GETTo logout from application A`null``null`12017-03-17 03:38:50**webhook\_events table**

webhook\_idevent\_key1logout### Using JavaScript Webhook

[](#using-javascript-webhook)

In the ctp file you may have the following event implemented:

```
// load the javascript file from the plugin
$this->Html->script('Webhook.webhook');

// Webhook url link to the webhook controller
$webhookListUrl = [
    'plugin' => 'Webhook',
    'controller' => 'Webhooks',
    'action' => 'listWebhooks'
];

// You may replace \'logout\', with your event name for example \'login\'
echo $this->Html->link('Logout Link', 'http://someurl.com/logout', ['onclick' => 'Webhook.triggerEvent(\''.Router::url($webhookListUrl).'\', [\'logout\']);']);
```

### Using Backend CakePHP Client Service with Shell

[](#using-backend-cakephp-client-service-with-shell)

```
$Webhooks = TableRegistry::get('Webhook.Webhooks');

// Setting the 'username' parameter will replace the url with the username that you have specified
$Webhooks->triggerShell('logout', ['username' => $username]);
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8711284?v=4)[Mohamed Nizar](/maintainers/mohamednizar)[@mohamednizar](https://github.com/mohamednizar)

---

Top Contributors

[![mohamednizar](https://avatars.githubusercontent.com/u/8711284?v=4)](https://github.com/mohamednizar "mohamednizar (3 commits)")

### Embed Badge

![Health badge](/badges/korditpteltd-kd-cakephp-webhooks/health.svg)

```
[![Health](https://phpackages.com/badges/korditpteltd-kd-cakephp-webhooks/health.svg)](https://phpackages.com/packages/korditpteltd-kd-cakephp-webhooks)
```

###  Alternatives

[symfony/polyfill-uuid

Symfony polyfill for uuid functions

688335.4M63](/packages/symfony-polyfill-uuid)[spatie/error-solutions

This is my package error-solutions

6853.2M11](/packages/spatie-error-solutions)[phpflo/phpflo

Flow-based programming for PHP

2173.3k4](/packages/phpflo-phpflo)[eftec/autoloadone

AutoloadOne is a program that generates an autoload class for PHP.

403.4k](/packages/eftec-autoloadone)[ys-tools/default-theme-configuration-bundle

OroCommerce Default Theme Configuration Bundle

124.2k](/packages/ys-tools-default-theme-configuration-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
