PHP code example of smronju / nativephp-appearance
1. Go to this page and download the library: Download smronju/nativephp-appearance 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/ */
smronju / nativephp-appearance example snippets
use Smronju\NativephpAppearance\Facades\NativephpAppearance;
NativephpAppearance::setMode('dark'); // force dark
NativephpAppearance::setMode('light'); // force light
NativephpAppearance::setMode('system'); // follow the OS again
bash
composer vendor:publish --tag=nativephp-plugins-provider
php artisan native:plugin:register smronju/nativephp-appearance