Skip to content

Latest commit

 

History

History
54 lines (37 loc) · 937 Bytes

README.md

File metadata and controls

54 lines (37 loc) · 937 Bytes

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