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');

// Validate a proxy
$response = $sdk->launcher()->validateProxy(
    type: 'http',
    host: '127.0.0.1',
    port: '8080',
    username: 'user',
    password: 'pass'
);

// 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();
bash
php artisan vendor:publish --tag="laravel-multilogin-sdk-config"
bash
# Publish migrations
php artisan vendor:publish --tag="laravel-multilogin-sdk-migrations"
php artisan migrate

# Publish views  
php artisan vendor:publish --tag="laravel-multilogin-sdk-views"