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

1.0.1 2017-03-12 20:47 UTC

This package is auto-updated.

Last update: 2025-09-29 01:55:45 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');