roshangara / webservice by mtc2012

package for request to another server
119
0
1
Package Data
Maintainer Username: mtc2012
Maintainer Contact: mroshangara@gmail.com (Mohammad Taghikhani)
Package Create Date: 2018-03-01
Package Last Update: 2019-09-28
Language: PHP
License: MIT
Last Refreshed: 2022-08-03 03:00:43
Package Statistics
Total Downloads: 119
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 1
Total Forks: 0
Total Open Issues: 1

webservice

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();