PHPackages                             alifuz/service-hook - 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. alifuz/service-hook

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

alifuz/service-hook
===================

Package will send request to service-hook and create hook

v1.0.5(4y ago)07MITPHPPHP ^7.4|^8.0

Since Dec 15Pushed 4y agoCompare

[ Source](https://github.com/Alifuz/service-hook)[ Packagist](https://packagist.org/packages/alifuz/service-hook)[ RSS](/packages/alifuz-service-hook/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (1)Dependencies (1)Versions (7)Used By (0)

This package provides a nice way of sending hooks to service-hook in your Laravel projects.

Follow these docs to install this package and start using hooks in your laravel projects.

Installation
============

[](#installation)

You may now install Hooks into your project using the Composer package manager:

```
composer require aliftech/service-hook
```

After installing hook package, publish its assets using the `vendor:publish` Artisan command:

```
php artisan vendor:publish --provider=Alifshop\Hooks\ServiceHookProvider

```

Configuration
=============

[](#configuration)

After publishing hook's assets, its primary configuration file will be located at `config/hook.php`.

for the specified keys, you must enter the data of the hook service, you can get them by asking the responsible person for the hook service

Concept of hooking data
-----------------------

[](#concept-of-hooking-data)

Hooks are needed in order to store the history of entity changes, for example,

when an entity changes its status, or when an entity is created, and so on.

As a microservice, we have separated this service and are linking through the http

Using Hook package on your controller or on your service or anywhere u want to use
----------------------------------------------------------------------------------

[](#using-hook-package-on-your-controller-or-on-your-service-or-anywhere-u-want-to-use)

```
use Alifshop\Hooks\HookData;
use Alifshop\Hooks\Http\ServiceHook;

...
...
...

public function foo() {
    (new ServiceHook(new HookData(
            service: 'merchants',
            hookable_type: $model->getTable(),
            hookable_id: $model->id,
            created_from_str: 'PRM',
            created_by_id: 6,
            body: 'Создано условие',
            keyword: 'id: ' . $condition->id . ' ' . $condition->title,
            action: 'create',
            class: 'info',
            action_at: null,
            created_by_str: 'Oybek',
        )))->store();
}

```

The other specific documentation will be coming soon

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~1 days

Total

6

Last Release

1604d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/69c63d397ac7c8542f6cd2941d6a9033b013b79253e005659f1cdf34a58caa75?d=identicon)[orejametov](/maintainers/orejametov)

---

Top Contributors

[![rejametov](https://avatars.githubusercontent.com/u/190107438?v=4)](https://github.com/rejametov "rejametov (5 commits)")

### Embed Badge

![Health badge](/badges/alifuz-service-hook/health.svg)

```
[![Health](https://phpackages.com/badges/alifuz-service-hook/health.svg)](https://phpackages.com/packages/alifuz-service-hook)
```

###  Alternatives

[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[dhlparcel/magento2-plugin

DHL Parcel plugin for Magento 2

11180.5k2](/packages/dhlparcel-magento2-plugin)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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