shamanzpua / yii2stackexchange
yii2 stackexchange component
Installs: 14
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/shamanzpua/yii2stackexchange
Requires
- shamanzpua/stackexchange: *
- yiisoft/yii2: ~2.0.0
This package is auto-updated.
Last update: 2025-10-29 02:09:08 UTC
README
Yii2 stackexchange api component
Installation
Add to composer.json
 "require": {
    "shamanzpua/yii2stackexchange": "*"
 }
Configuration:
<?php 'stackexchange' => [ 'class' => 'shamanzpua\yii2stackexchange\Stackexchange', 'apiKey' => 'YOUR_API_KEY', 'apis' => [ 'stackoverflow' => [ 'class' => 'shamanzpua\stackexchange\Stackoverflow' ], ], ]
Usage:
<?php $stack = Yii::$app->stackexchange->getApi('stackoverflow'); $data = $stack->grab('search keyword');