PHP code example of hail / safe-storage
1. Go to this page and download the library: Download hail/safe-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/ */
hail / safe-storage example snippets
use Hail\SafeStorage\SafeStorageTrait;
class Example
{
use SafeStorageTrait;
public function __construct(string $password)
{
$this->setPassword($password);
}
public function usePassword()
{
$password = $this->getPassword();
}
}