cr4sec/atom-vpn

Package for working with the Atom VPN API

1.1.4 2022-01-16 15:30 UTC

This package is auto-updated.

Last update: 2024-04-17 03:10:11 UTC


README

Latest Stable Version Total Downloads Latest Unstable Version License PHP Version Require

What It Does

This package allows you to manage Atom VPN sessions.

Once installed you can do stuff like this:

/** 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();
$ php artisan atom-vpn:clearing-unused-sessions

$ php artisan atom-vpn:create-vpn-account

$ php artisan atom-vpn:disable-vpn-account

Installation

$ composer require cr4sec/atom-vpn

Publishing config

$ php artisan vendor:publish --provider="Cr4sec\AtomVPN\AtomVPNServiceProvider"