chrisreedio / laravel-multilogin-sdk
Provides a Laravel SDK for the Multilogin API.
Fund package maintenance!
Chris Reed
Requires
- php: ^8.3
- illuminate/contracts: ^10.0||^11.0||^12.0
- saloonphp/cache-plugin: ^3.0
- saloonphp/pagination-plugin: ^2.0
- saloonphp/saloon: ^3.0
- spatie/laravel-data: ^4.17
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- larastan/larastan: ^2.9||^3.0
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.1.1||^7.10.0
- orchestra/testbench: ^10.0.0||^9.0.0||^8.22.0
- pestphp/pest: ^2.0||^3.0
- pestphp/pest-plugin-arch: ^2.5||^3.0
- pestphp/pest-plugin-laravel: ^2.0||^3.0
- phpstan/extension-installer: ^1.3
- phpstan/phpstan-deprecation-rules: ^1.1||^2.0
- phpstan/phpstan-phpunit: ^1.3||^2.0
- spatie/laravel-ray: ^1.35
This package is auto-updated.
Last update: 2025-08-13 08:19:39 UTC
README
A comprehensive Laravel package that provides an elegant SDK for the Multilogin API. This package allows you to manage browser profiles, automate browser sessions, handle proxies, and perform advanced browser fingerprinting operations through Multilogin's powerful antidetect browser platform.
Built on top of the robust Saloon HTTP client, this SDK provides a clean, Laravel-friendly interface to all of Multilogin's API endpoints with full type safety and IDE autocompletion.
Features
- Complete API Coverage: Access all Multilogin API endpoints through intuitive resource classes
- Browser Profile Management: Create, update, clone, and manage browser profiles with ease
- Advanced Proxy Support: Validate and manage proxy configurations
- Cookie Management: Handle pre-made cookies and import/export functionality
- Two-Factor Authentication: Full 2FA management capabilities
- Object Storage: Manage extensions and cloud storage objects
- Script Runner: Execute Selenium automation scripts with browser profiles
- Laravel Integration: Service provider, facade, and publishable config/migrations
- Type Safety: Full PHP type declarations and IDE autocompletion support
Installation
You can install the package via composer:
composer require chrisreedio/laravel-multilogin-sdk
Optionally, you can publish the config file:
php artisan vendor:publish --tag="laravel-multilogin-sdk-config"
You can also publish migrations and views if needed:
# 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"
Usage
Basic Setup
use ChrisReedIO\MultiloginSDK\MultiloginSDK; // Create SDK instance $sdk = new MultiloginSDK(); // Or use the facade use MultiloginSDK;
Browser Profile Management
// 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');
Proxy Management
// Validate a proxy $response = $sdk->launcher()->validateProxy( type: 'http', host: '127.0.0.1', port: '8080', username: 'user', password: 'pass' );
Quick Profile Operations
// 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();
Available Resources
The SDK provides access to all Multilogin API endpoints through these resource classes:
bookmarkManagement()
- Import/export bookmarksbrowserProfileData()
- Manage profile datalauncher()
- Core browser operationsobjectStorage()
- Manage extensions and cloud objectspreMadeCookies()
- Handle pre-made cookie setsprofileAccessManagement()
- User authentication and workspacesprofileImportExport()
- Import/export profile dataprofileManagement()
- Create, update, manage profilesproxy()
- Proxy validation and managementscriptRunner()
- Execute automation scriptstwoFactor()
- Two-factor authentication
Testing
Run the test suite:
composer test # With coverage composer test-coverage # Run static analysis composer analyse # Format code composer format
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.