roshangara/webservice

package for request to another server

0.7.2 2019-09-15 12:00 UTC

This package is auto-updated.

Last update: 2024-11-15 23:31:42 UTC


README

package for request to another server

Install with composer

composer require roshangara/webservice

Usage

send request

 $webservice = new \Roshangara\Webservice\Webservice();

    $webservice
        ->setMethod('get')
        ->setUrl('https://restcountries.eu/rest/v2/')
        ->setFunction('all')
        ->setParam('fullText', 'true')
        ->send();
        
    \\ get array result
    $webservice->getResult();