PHP code example of particleflux / password-manager-connection
1. Go to this page and download the library: Download particleflux/password-manager-connection 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/ */
particleflux / password-manager-connection example snippets
use particleflux\PMConnection\PassConnection;
// initialize the connection client
$connection = new PassConnection();
// get the password for the account 'facebook'
$password = $connection->getPassword('facebook');
// get the username for the account 'facebook'
$username = $connection->getUser('facebook');
// get a custom attribute for an account
$email = $connection->getAttribute('facebook', 'email');
$connection = new PassConnection([
'prefix' => 'social-media/',
'userAttribute' => 'username',
]);