Package for accessing internal REST API in Laravel.
Use composer
:
composer require dstancer/int-rest-laravel
I recomend storing REST data in .env
file.
$rest = new Srce\IntRest(getenv('REST_USER'), getenv('REST_PWD'), getenv('REST_HOST'));
$data = $rest->getOrg('resource_name');
Avaliable methods
getOrg('resource_name')
getPP('resource_name')
getFin('resource_name')
getLDAP('resource_name')