PHP code example of teamgantt / user-sync
1. Go to this page and download the library: Download teamgantt/user-sync 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/ */
teamgantt / user-sync example snippets
public function __invoke(SyncableUserInterface $user, SyncRequestInterface $request);
use TeamGantt\UserSync\SyncRequest;
use TeamGantt\UserSync\CognitoSync;
$args = []; // see CognitoSync for ll not happen depending on what is given
$request = SyncRequest::fromArray(['password' => 'newcleartextpassword', 'email_address' => '[email protected]', 'action' => 'update']);
$user = ExampleUserRepository::fetch($userId); // $user can be any object that implements the