PHP code example of projectmata / mobile-secure-storage
1. Go to this page and download the library: Download projectmata/mobile-secure-storage 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/ */
projectmata / mobile-secure-storage example snippets
use Projectmata\MobileSecureStorage\Facades\SecureStorage;
SecureStorage::setItem('auth_token', $token);
$token = SecureStorage::getItem('auth_token');
// ['success' => true, 'value' => '...'] or ['success' => true, 'value' => null] if missing
SecureStorage::removeItem('auth_token');
SecureStorage::clear(); // wipe every key this app has stored
bash
php artisan native:run android
# or
php artisan native:run ios