Skip to content

PHP Library for interacting with Lokal Client REST API

License

Notifications You must be signed in to change notification settings

lokal-so/lokal-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lokal PHP library

PHP Library for interacting with Lokal Client REST API.

CLI Preview Browser Preview
CLI Preview Browser Preview

the screenshot are demonstrating Lokal Laravel Provider

<?php

use LokalSo\Lokal;

$address = "127.0.0.1:8080";

$lokal  = new Lokal();
$tunnel = $lokal->newTunnel()
	->setName("laravel test")
	->setTunnelType(Lokal::TunnelTypeHTTP)
	->setLANAddress("laravel-backend.local")
	->setLocalAddress($address)
	->showStartupBanner()
	->ignoreDuplicate();

$ret = $tunnel->create();

Installation

composer require lokal-so/lokal-php

Development

git clone https://github.com/lokal-so/lokal-php.git;
cd lokal-php;
composer install -vvv;
php example.php;

License

GPL-2.0-only

Maintainer:

-- Ammar Faizi