PHPackages                             radowoj/yaah - 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. radowoj/yaah

ActiveLibrary

radowoj/yaah
============

Yet Another Allegro Helper - Allegro WebAPI client with helper to simplify communication

v0.8.0(9y ago)44121MITPHP

Since Feb 26Pushed 8y ago2 watchersCompare

[ Source](https://github.com/radowoj/yaah)[ Packagist](https://packagist.org/packages/radowoj/yaah)[ Docs](https://github.com/radowoj/yaah)[ RSS](/packages/radowoj-yaah/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (8)Dependencies (1)Versions (10)Used By (1)

yaah - Yet Another Allegro Helper :)
====================================

[](#yaah---yet-another-allegro-helper-)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/2b89107962f9c353a56ca0482a9816ffa27453c8c5218d671fe7d0f61144cd0d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7261646f776f6a2f796161682f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/radowoj/yaah/?branch=master) [![Code Coverage](https://camo.githubusercontent.com/0efa7bd67bb48b9f83c9578a7a4dc65a16136e060062221cbf354b882511697a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7261646f776f6a2f796161682f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/radowoj/yaah/?branch=master) [![Build Status](https://camo.githubusercontent.com/faabee38f66ecd46f17b7ee8ed0c0db2399d585b935688f55c56c9ddcc5fd5d0/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7261646f776f6a2f796161682f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/radowoj/yaah/build-status/master)

Simple client library for Allegro WebAPI.

Goals
-----

[](#goals)

- Simplify basic auction operations (creating new auction, finishing, changing item quantity, retrieving log etc) - Helper class.
- Avoid the necessity of sending defaults for every value type of [every required field](http://allegro.pl/webapi/documentation.php/show/id,113#method-input) (fvalueString, fvalueInt, fvalueDate, fvalueAndSoOn...) - Auction class and [its decorators](https://github.com/radowoj/yaah-mtg).

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

[](#installation)

Via composer

```
$ composer require radowoj/yaah
```

Example 1 - new auction
-----------------------

[](#example-1---new-auction)

For an example of a more programmer-friendly Auction interface, see [yaah-mtg](https://github.com/radowoj/yaah-mtg)

```
use Radowoj\Yaah\Auction;
use Radowoj\Yaah\Constants\AuctionTimespans;
use Radowoj\Yaah\Constants\AuctionFids;
use Radowoj\Yaah\Constants\SaleFormats;
use Radowoj\Yaah\Constants\ShippingPaidBy;
use Radowoj\Yaah\Constants\PaymentForms;
use Radowoj\Yaah\HelperFactory\Factory;

$helper = (new Factory())->create([
    'apiKey'        => 'your-allegro-api-key',
    'login'         => 'your-allegro-login',
    'passwordHash'  => 'your-sha-256-hashed-and-then-base64-encoded-allegro-password',
    'countryCode'   => 'your-country-code',
    'isSandbox'     => 'true-if-you-intend-to-use-sandbox'
]);

$localId = 1;

$auction = new Auction([
    AuctionFids::FID_TITLE => 'Test auction',
    AuctionFids::FID_CATEGORY => 26319,
    AuctionFids::FID_TIMESPAN => AuctionTimespans::TIMESPAN_7_DAYS,
    AuctionFids::FID_QUANTITY => 1,
    AuctionFids::FID_BUY_NOW_PRICE => 10.00,
    AuctionFids::FID_COUNTRY => 1,
    AuctionFids::FID_REGION => 15,
    AuctionFids::FID_CITY => 'Poznan',
    AuctionFids::FID_SHIPPING_PAID_BY => ShippingPaidBy::SHIPPING_PAID_BY_BUYER,
    AuctionFids::FID_PAYMENT_FORMS => PaymentForms::PAYMENT_FORM_VAT_INVOICE,
    AuctionFids::FID_DESCRIPTION => 'Test auction description',
    AuctionFids::FID_POSTCODE => '12-345',
    AuctionFids::FID_SALE_FORMAT => SaleFormats::SALE_FORMAT_NON_SHOP,
    AuctionFids::FID_POST_PACKAGE_PRIORITY_PRICE => 11.00
]);

$auction->setPhotos([
    //array of (no more than 8) paths to photo files
]);

$allegroItemId = $helper->newAuction($auction, $localId);

echo "Created auction with itemId = {$allegroItemId}\n";
```

Example 2 - retrieving journal
------------------------------

[](#example-2---retrieving-journal)

```
require_once __DIR__ . '/../vendor/autoload.php';

require_once 'config.php';

use Radowoj\Yaah\HelperFactory\Factory;

try {
    $helper = (new Factory())->create(require('config.php'));

    $deals = $helper->getSiteJournalDeals();

    /**
     * Process journal entries - in this case echo details of every journal
     * item that creates a deal
     */
    array_map(function($deal){
        if ($deal->isTypeCreateDeal()) {
            echo "Deal {$deal->getId()} (itemId {$deal->getItemId()} - quantity {$deal->getQuantity()}) created at {$deal->getEventTime()}\n";
        }
    }, $deals);

} catch (Exception $e) {
    echo "Exception: {$e->getMessage()}\nFile: {$e->getFile()}; Line: {$e->getLine()}\n\n";
}
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 98.7% 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 ~4 days

Total

9

Last Release

3331d ago

### Community

Maintainers

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

---

Top Contributors

[![radowoj](https://avatars.githubusercontent.com/u/26042435?v=4)](https://github.com/radowoj "radowoj (78 commits)")[![cv65kr](https://avatars.githubusercontent.com/u/9404962?v=4)](https://github.com/cv65kr "cv65kr (1 commits)")

---

Tags

phpwebapiallegro

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/radowoj-yaah/health.svg)

```
[![Health](https://phpackages.com/badges/radowoj-yaah/health.svg)](https://phpackages.com/packages/radowoj-yaah)
```

###  Alternatives

[pestphp/pest-plugin-stressless

Stressless plugin for Pest

67792.6k16](/packages/pestphp-pest-plugin-stressless)[opengento/module-webapi-logger

This module allows you to analyze all the webapi rest done call toward your Magento.

1014.9k](/packages/opengento-module-webapi-logger)

PHPackages © 2026

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