PHP code example of chrisreedio / laravel-multilogin-sdk
1. Go to this page and download the library: Download chrisreedio/laravel-multilogin-sdk 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/ */
chrisreedio / laravel-multilogin-sdk example snippets
use ChrisReedIO\MultiloginSDK\MultiloginSDK;
// Create SDK instance
$sdk = new MultiloginSDK();
// Or use the facade
use MultiloginSDK;
// Start a browser profile
$response = $sdk->launcher()->startBrowserProfile(
folderId: 'your-folder-id',
profileId: 'your-profile-id',
automationType: 'selenium'
);
// Create a new profile
$response = $sdk->profileManagement()->profileCreate([
'name' => 'My New Profile',
'browser' => 'mimic',
'os' => 'win'
]);
// Stop a running profile
$response = $sdk->launcher()->stopBrowserProfile('your-profile-id');
// Start a quick profile with custom settings
$response = $sdk->launcher()->startQuickProfileV3(
browserType: 'mimic',
osType: 'windows',
automation: 'selenium'
);
// Get status of all profiles
$response = $sdk->launcher()->getAllProfilesStatus();