PHPackages                             igzard/php-unas-webhook - 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. igzard/php-unas-webhook

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

igzard/php-unas-webhook
=======================

Unas Webhook Processor

v0.1.1(1y ago)26MITPHPPHP ^8.3.0

Since Nov 3Pushed 1y ago1 watchersCompare

[ Source](https://github.com/igzard/php-unas-webhook)[ Packagist](https://packagist.org/packages/igzard/php-unas-webhook)[ RSS](/packages/igzard-php-unas-webhook/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (4)Versions (6)Used By (0)

PHP Unas Webhook Processor
==========================

[](#php-unas-webhook-processor)

🛍️ Use this package to process incoming webhooks from [Unas](https://unas.hu).

 [![Tests passed](https://camo.githubusercontent.com/82e236f98c657cba055008a3e1545b4e1d499fc33c21e6c1a0b27ca2fd0987b0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f69677a6172642f7068702d756e61732d776562686f6f6b2f74657374732e796d6c3f6c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/igzard/php-unas-webhook/actions/workflows/tests.yml) [![Total Downloads](https://camo.githubusercontent.com/ec9e266c9cc9199847bac9d88c3e60104ba622ea497507a28ccbbd7a748159c7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f69677a6172642f7068702d756e61732d776562686f6f6b)](https://packagist.org/packages/igzard/php-unas-webhook) [![Latest Version](https://camo.githubusercontent.com/3b31d27fb6149b4de272e007cc37570e7927cf6d8abb84d4b31ecf9de81ae3f7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f69677a6172642f7068702d756e61732d776562686f6f6b)](https://packagist.org/packages/igzard/php-unas-webhook)

---

> **Requires [PHP 8.3+](https://php.net/releases/)**

Getting started
---------------

[](#getting-started)

### Get Hmac Secret from UNAS

[](#get-hmac-secret-from-unas)

```
1. First step you need to login to your unas webshop admin (https://unas.hu/belepes)
2. Navigate to Settings -> External connections -> API connection (https://shop.unas.hu/admin_config_connect_api.php)
3. Click to "Verify webhook" tab
4. Click to "HMAC key generation"
5. Copy+Paste your Hmac secret code

```

### Installation

[](#installation)

```
composer require igzard/php-unas-webhook
```

### Usage

[](#usage)

```
//Initialize Unas Webhook with your Unas shop HMAC secret and request header UNAS hmac
use Igzard\PhpUnasWebhook\UnasWebhook;

$webhook = new UnasWebhook([
    'hmac' => 'your-unas-shop-hmac-secret',
    'hmac_header' => 'Hmac secret from http header e.g: $_SERVER["HTTP_X_UNAS_HMAC"]'
]);

//Process incoming webhook request
$unasOrder = $webhook->process("{'message':'Unas request json'}");

//Get order data eg. order number
$orderNumber = $unasOrder->getOrderId()->getValue(); //return with unas webshop order number string

//or get customer data
$customer = $unasOrder->getCustomer(); //return with Customer data object

//etc.

//processing Unas Order with your domain logic...
```

Contributing
------------

[](#contributing)

We are open to contributions. If you want to fix a bug, implement a new feature or just ask a question, please feel free to open an issue or create a pull request.

🚀 Install dependencies with **composer**:

```
make composer-install
```

✅ Run **Code quality** check:

```
make code-quality
```

👷 Run **PHPUnit** tests:

```
make phpunit
```

🎨 Run **cs-fix**:

```
make cs-fix
```

🔥 Run **phpstan**:

```
make phpstan
```

♻️ Run **rector**:

```
make rector
```

**PHP UNAS Webhook processor** was created by **[Gergely Ignácz](https://x.com/igz4rd)** under the **[MIT license](https://opensource.org/licenses/MIT)**.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance40

Moderate activity, may be stable

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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 ~6 days

Total

5

Last Release

535d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/edf561191867ffdeb3b9d6d58cad673300a26d4523cb0e0e169da75a59c4da0f?d=identicon)[igzard](/maintainers/igzard)

---

Top Contributors

[![igzard](https://avatars.githubusercontent.com/u/10142225?v=4)](https://github.com/igzard "igzard (36 commits)")

---

Tags

phpwebhookprocessorunas

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/igzard-php-unas-webhook/health.svg)

```
[![Health](https://phpackages.com/badges/igzard-php-unas-webhook/health.svg)](https://phpackages.com/packages/igzard-php-unas-webhook)
```

###  Alternatives

[imanghafoori/laravel-anypass

A minimal yet powerful package to help you in development.

21421.6k](/packages/imanghafoori-laravel-anypass)[atakde/discord-webhook-php

discord webhook php

186.5k](/packages/atakde-discord-webhook-php)

PHPackages © 2026

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