1. Go to this page and download the library: Download denis156/app-manager 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/ */
denis156 / app-manager example snippets
use Denis156\AppManager\Facades\AppManager;
// 1. Mendapatkan daftar semua aplikasi yang terinstal
$apps = AppManager::getInstalledApps();
// Hasil berupa array: [['label' => 'WhatsApp', 'package' => 'com.whatsapp', 'icon_base64' => '...'], ...]
// 2. Mengecek apakah aplikasi terinstal
if (AppManager::isInstalled('com.whatsapp')) {
// Lakukan sesuatu
}
// 3. Mengambil info spesifik (Nama & Ikon)
$info = AppManager::getAppInfo('com.whatsapp');
// 4. Meluncurkan aplikasi lain
AppManager::launchApp('com.whatsapp');