PHPackages                             olegopro/phpgologin - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. olegopro/phpgologin

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

olegopro/phpgologin
===================

0.0.2(3y ago)136[2 issues](https://github.com/olegopro/phpgologin/issues)MITPHP

Since Sep 4Pushed 3y ago1 watchersCompare

[ Source](https://github.com/olegopro/phpgologin)[ Packagist](https://packagist.org/packages/olegopro/phpgologin)[ RSS](/packages/olegopro-phpgologin/feed)WikiDiscussions main Synced 3d ago

READMEChangelog (2)Dependencies (4)Versions (3)Used By (0)

phpgologin
==========

[](#phpgologin)

REST API provides programmatic access to GoLogin App. Create a new browser profile, get a list of all browser profiles, add a browser profile and running

class GoLogin - class for working with [gologin.com](https://gologin.com) API
=============================================================================

[](#class-gologin---class-for-working-with-gologincom-api)

Getting Started
---------------

[](#getting-started)

GoLogin supports Linux, MacOS and Windows platforms.

### Installation

[](#installation)

clone or download this repository

`https://github.com/olegopro/phpgologin.git`

for running gologin-selenium.php install selenium

`composer require php-webdriver/webdriver`

for Selenium need download [webdriver](https://chromedriver.chromium.org/downloads)

### Usage

[](#usage)

Where is token? API token is [here](https://app.gologin.com/#/personalArea/TokenApi). To have an access to the page below you need [register](https://app.gologin.com/#/createUser) GoLogin account.

[![Token API in Settings](https://user-images.githubusercontent.com/12957968/146891933-c3b60b4d-c850-47a5-8adf-bc8c37372664.gif)](https://user-images.githubusercontent.com/12957968/146891933-c3b60b4d-c850-47a5-8adf-bc8c37372664.gif)

### Example "gologin-selenium.php"

[](#example-gologin-seleniumphp)

```
namespace App;

use Dotenv\Dotenv;
use Facebook\WebDriver\Chrome\ChromeDriver;
use Facebook\WebDriver\Chrome\ChromeOptions;
use Facebook\WebDriver\Remote\DesiredCapabilities;

require './vendor/autoload.php';

$dotenv = Dotenv::createImmutable(__DIR__);
$dotenv->load();

$gl = new GoLogin([
	'token'      => $_ENV['TOKEN'],
	'profile_id' => 'yU0Pr0f1leiD',
	'port'       => GoLogin::getRandomPort()
	//'tmpdir'     => __DIR__ . '/temp',
]);

if (strtolower(PHP_OS) == 'linux') {
	putenv("WEBDRIVER_CHROME_DRIVER=./chromedriver");
} elseif (strtolower(PHP_OS) == 'darwin') {
	putenv("WEBDRIVER_CHROME_DRIVER=./mac/chromedriver");
} elseif (strtolower(PHP_OS) == 'winnt') {
	putenv("WEBDRIVER_CHROME_DRIVER=chromedriver.exe");
}

$debugger_address = $gl->start();
var_dump($debugger_address) . PHP_EOL;

$chromeOptions = new ChromeOptions();
$chromeOptions->setExperimentalOption('debuggerAddress', $debugger_address);

$capabilities = DesiredCapabilities::chrome();
$capabilities->setCapability(ChromeOptions::CAPABILITY_W3C, $chromeOptions);

$driver = ChromeDriver::start($capabilities);
$driver->get('https://php.net');
sleep(20);

$driver->close();
$gl->stop();
```

### Running example:

[](#running-example)

`php gologin-selenium.php`

### Methods

[](#methods)

#### constructor

[](#constructor)

- `options` &lt;\[Object\]&gt; Options for profile
    - `token` &lt;\[string\]&gt; your API [token](https://gologin.com/#/personalArea/TokenApi)
    - `profile_id` &lt;\[string\]&gt; profile ID
    - `executablePath` &lt;\[string\]&gt; path to executable Orbita file. Orbita will be downloaded automatically if not specified.
    - `remote_debugging_port` &lt;\[int\]&gt; port for remote debugging
    - `tmpdir` &lt;\[string\]&gt; path to temporary directore for saving profiles
    - `extra_params` arrayof &lt;\[string\]&gt; extra params for browser orbita (ex. extentions etc.)
    - `port` &lt;\[integer\]&gt; Orbita start port

```
$gl = new GoLogin([
	'token'      => $_ENV['TOKEN'],
	'profile_id' => 'yU0Pr0f1leiD',
]);
```

#### Example create profile

[](#example-create-profile)

`php gologin-create-profile.php`

```
use App\GoLogin;
use Dotenv\Dotenv;

require './vendor/autoload.php';

$dotenv = Dotenv::createImmutable(__DIR__);
$dotenv->load();

$gl = new GoLogin([
	'token' => $_ENV['TOKEN']
]);

//CREATE
$profile_id = $gl->create([
		'name'         => 'profile_mac',
		'os'           => 'mac',
		'navigator'    => [
			'language'   => 'en-US',
			'userAgent'  => 'random',
			'resolution' => 'random',
			'platform'   => 'mac'
		],
		'proxyEnabled' => true,
		'proxy'        => [
			'mode'            => 'gologin',
			'autoProxyRegion' => 'us'
			//'host'            => '',
			//'port'            => '',
			//'username'        => '',
			//'password'        => '',
		],
		'webRTC'       => [
			'mode'    => 'alerted',
			'enabled' => true
		]
	]
);

echo 'profile id=' . $profile_id . PHP_EOL;
$profile = $gl->getProfile($profile_id);
echo 'new profile name=' . $profile->name . PHP_EOL;

//UPDATE
/*$gl->update([
	'id'   => 'yU0Pr0f1leiD',
	'name' => 'profile_mac2'
]);*/

//DELETE
/*$gl->delete('yU0Pr0f1leiD');*/
```

#### start()

[](#start)

start browser with profile id

#### stop()

[](#stop)

stop browser with profile id

Full GoLogin API
----------------

[](#full-gologin-api)

**Swagger:** [link here](https://api.gologin.com/docs)

**Postman:** [link here](https://documenter.getpostman.com/view/21126834/Uz5GnvaL)

### For use multiprocess you need install APCu PECL extension and compile PHP with ZTS mode.

[](#for-use-multiprocess--you-need-install-apcu-pecl-extension-and-compile-php-with-zts-mode)

 and Zend Thread Safety (ZTS) In php.ini change memory\_limit = 512M

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

1400d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/73001865?v=4)[Oleg Desyatnikov](/maintainers/olegopro)[@olegopro](https://github.com/olegopro)

---

Top Contributors

[![olegopro](https://avatars.githubusercontent.com/u/73001865?v=4)](https://github.com/olegopro "olegopro (21 commits)")

### Embed Badge

![Health badge](/badges/olegopro-phpgologin/health.svg)

```
[![Health](https://phpackages.com/badges/olegopro-phpgologin/health.svg)](https://phpackages.com/packages/olegopro-phpgologin)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k543.8M20.1k](/packages/laravel-framework)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k39.6M297](/packages/laravel-dusk)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k39](/packages/neuron-core-neuron-ai)[descope/descope-php

Descope SDK for PHP

4223.8k](/packages/descope-descope-php)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
