1. Go to this page and download the library: Download unetway/vk-mini-app-php library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
unetway / vk-mini-app-php example snippets
`
$ composer
`
use Unetway\VkMiniApp\Core;
$url = $_SERVER['REQUEST_URI'];
$client_secret = '';
$vk = new Core([
'url' => $url,
'client_secret' => $client_secret,
]);
`
use Unetway\VkMiniApp\Core;
$url = $_SERVER['REQUEST_URI'];
$client_secret = '';
$vk = new Core([
'url' => $url,
'client_secret' => $client_secret,
]);
if ($vk->signature()) {
echo 'ok';
}else {
echo 'fail';
}
`
use Unetway\VkMiniApp\Core;
$url = $_SERVER['REQUEST_URI'];
$client_secret = '';
$vk = new Core([
'url' => $url,
'client_secret' => $client_secret,
]);
if ($vk->signature()) {
return $vk->getParams();
}
`
use Unetway\VkMiniApp\Core;
$url = $_SERVER['REQUEST_URI'];
$client_secret = '';
$vk = new Core([
'url' => $url,
'client_secret' => $client_secret,
]);
if ($vk->signature()) {
return $vk->getVkUserId();
}
`
use Unetway\VkMiniApp\Core;
$url = $_SERVER['REQUEST_URI'];
$client_secret = '';
$vk = new Core([
'url' => $url,
'client_secret' => $client_secret,
]);
if ($vk->signature()) {
return $vk->getVkAppId();
}
`
use Unetway\VkMiniApp\Core;
$url = $_SERVER['REQUEST_URI'];
$client_secret = '';
$vk = new Core([
'url' => $url,
'client_secret' => $client_secret,
]);
if ($vk->signature()) {
return $vk->geVKIsAppUser();
}
`
use Unetway\VkMiniApp\Core;
$url = $_SERVER['REQUEST_URI'];
$client_secret = '';
$vk = new Core([
'url' => $url,
'client_secret' => $client_secret,
]);
if ($vk->signature()) {
return $vk->geVKAreNotificationsEnabled();
}
`
use Unetway\VkMiniApp\Core;
$url = $_SERVER['REQUEST_URI'];
$client_secret = '';
$vk = new Core([
'url' => $url,
'client_secret' => $client_secret,
]);
if ($vk->signature()) {
return $vk->getVkLanguage();
}
`
use Unetway\VkMiniApp\Core;
$url = $_SERVER['REQUEST_URI'];
$client_secret = '';
$vk = new Core([
'url' => $url,
'client_secret' => $client_secret,
]);
if ($vk->signature()) {
return $vk->getVkRef();
}
`
use Unetway\VkMiniApp\Core;
$url = $_SERVER['REQUEST_URI'];
$client_secret = '';
$vk = new Core([
'url' => $url,
'client_secret' => $client_secret,
]);
if ($vk->signature()) {
return $vk->getVkAccessTokenSettings();
}
`
use Unetway\VkMiniApp\Core;
$url = $_SERVER['REQUEST_URI'];
$client_secret = '';
$vk = new Core([
'url' => $url,
'client_secret' => $client_secret,
]);
if ($vk->signature()) {
return $vk->getVkGroupId();
}
`
use Unetway\VkMiniApp\Core;
$url = $_SERVER['REQUEST_URI'];
$client_secret = '';
$vk = new Core([
'url' => $url,
'client_secret' => $client_secret,
]);
if ($vk->signature()) {
return $vk->getVkViewerGroupRole();
}
`
use Unetway\VkMiniApp\Core;
$url = $_SERVER['REQUEST_URI'];
$client_secret = '';
$vk = new Core([
'url' => $url,
'client_secret' => $client_secret,
]);
if ($vk->signature()) {
return $vk->getVkPlatform();
}
`
use Unetway\VkMiniApp\Core;
$url = $_SERVER['REQUEST_URI'];
$client_secret = '';
$vk = new Core([
'url' => $url,
'client_secret' => $client_secret,
]);
if ($vk->signature()) {
return $vk->getVkIsFavorite();
}
`
use Unetway\VkMiniApp\Core;
$url = $_SERVER['REQUEST_URI'];
$client_secret = '';
$vk = new Core([
'url' => $url,
'client_secret' => $client_secret,
]);
if ($vk->signature()) {
return $vk->getVkTs();
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.