PHP code example of cr4sec / atom-vpn
1. Go to this page and download the library: Download cr4sec/atom-vpn 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/ */
cr4sec / atom-vpn example snippets
/** Search for the first free Atom VPN account */
Account::findFirstFreeAccount();
/** Create a new Atom VPN account */
$atomVpn->createAccount(['uuid' => 'my-uuid']);
/** Get expired user sessions */
$user->sessions()->expired();
/** Start a new session */
$session->start();
bash
$ php artisan atom-vpn:clearing-unused-sessions
$ php artisan atom-vpn:create-vpn-account
$ php artisan atom-vpn:disable-vpn-account
bash
$ php artisan vendor:publish --provider="Cr4sec\AtomVPN\AtomVPNServiceProvider"