oleg-chulakov-studio / yii2-vkapi
Yii2 component for VK API
Installs: 193
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 6
Forks: 0
Open Issues: 0
Type:yii2-components
Requires
- php: >=5.4.0
- vladkens/vk: ^0.1.9
This package is auto-updated.
Last update: 2024-10-16 19:46:29 UTC
README
Install by composer
composer require oleg-chulakov-studio/yii2-vkapi
Or add this code into require section of your composer.json and then call composer update in console
"oleg-chulakov-studio/yii2-vkapi": "*"
Usage
In configuration file do
<?php 'components' => [ 'class' => OlegChulakovStudio\YiiVkComponent::className(), 'clientId' => '', 'secretCode' => '', 'accessToken' => '', 'apiVersion' => '5.67' ] ?>
Use as simple component
<?php $responseData = Yii::$app->YiiVk->request('newsfeed.search', [ 'count' => 100, 'q' => '#tag', 'extended' => true, ]); ?>