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

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

radowoj/yaah-mtg
================

Yaah Auction decorators for Allegro categories related to Magic: The Gathering categories

v0.2.0(9y ago)016MITPHP

Since Mar 26Pushed 9y agoCompare

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

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

yaah-mtg
========

[](#yaah-mtg)

Yaah Auction decorators for Allegro categories related to Magic: The Gathering

Example
-------

[](#example)

**New auction via category-specific decorator. More human readable (associative array instead of numeric FID-indexed array). Also, with the help of multiple decorators (one per category) you can map the same array key (i.e. condition) to different category-specific FIDs.**

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

use Radowoj\Yaah\AuctionDecorators\Mtg\RedAuction;
use Radowoj\Yaah\AuctionDecorators\Mtg\BlueAuction;

$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'
]);

$redAuction = new RedAuction(new Auction());
$redAuction->fromArray([
    'title' => 'Test auction for a Red card',
    'description' => 'Test auction description',
    'timespan' => AuctionTimespans::TIMESPAN_3_DAYS,
    'quantity' => 100,
    'country' => 1,
    'region' => 15,
    'city' => 'SomeCity',
    'postcode' => '12-345',
    'condition' => Conditions::CONDITION_NEW,
    'sale_format' => SaleFormats::SALE_FORMAT_SHOP,
    'buy_now_price' => 43.21,
    'shipping_paid_by' => ShippingPaidBy::SHIPPING_PAID_BY_BUYER,
    'post_package_priority_price' => 12.34,
]);

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

$blueAuction = new BlueAuction(new Auction());
$blueAuction->fromArray([
    'title' => 'Test auction for a Blue card',
    'description' => 'Test auction description',
    'timespan' => AuctionTimespans::TIMESPAN_3_DAYS,
    'quantity' => 100,
    'country' => 1,
    'region' => 15,
    'city' => 'SomeCity',
    'postcode' => '12-345',
    'condition' => Conditions::CONDITION_NEW,
    'sale_format' => SaleFormats::SALE_FORMAT_SHOP,
    'buy_now_price' => 43.21,
    'shipping_paid_by' => ShippingPaidBy::SHIPPING_PAID_BY_BUYER,
    'post_package_priority_price' => 12.34,
]);

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

$localId = 1;

$allegroItemId = $helper->newAuction($redAuction, $localId++);
echo "Created auction with itemId = {$allegroItemId}\n";

$allegroItemId = $helper->newAuction($blueAuction, $localId++);
echo "Created auction with itemId = {$allegroItemId}\n";
```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity54

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

2

Last Release

3376d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/26042435?v=4)[Radosław Wojtyczka](/maintainers/radowoj)[@radowoj](https://github.com/radowoj)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[cornernote/yii2-returnurl

ReturnUrl helper for tab-aware nested redirection in Yii2.

145.8k1](/packages/cornernote-yii2-returnurl)

PHPackages © 2026

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