wakjoko/lara-http
Laravel Http Client
This package provides Laravel v7 Http Client for older Laravel versions up to 6.
Installation
Install the package with Composer:
composer require wakjoko/lara-http
Usage
Please refer to Laravel v7 docs for more usage examples.
<?php
namespace App\Http\Clients;
use Wakjoko\LaraHttp\Support\Facades\Http;
class Httpbin
{
public function test($method, $endpoint)
{
return Http::send($method, $endpoint);
}
}
Just make sure to replace the namespace from Laravel v7 docs
use Illuminate\Support\Facades\Http;
and replace it with the namespace provided in this package
use Wakjoko\LaraHttp\Support\Facades\Http;
Related Packages
doctrine/dbal
Powerful PHP database abstraction layer (DBAL) with many features for database s...
641,106,524
9,700
laravel/serializable-closure
Laravel Serializable Closure provides an easy and secure way to serialize closur...
418,291,778
609
nunomaduro/collision
Cli error handling for console/command-line PHP applications.
394,964,158
4,660
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v1.3 | >=5.5 | MIT | ||
| v1.2 | >=5.5 | MIT | ||
| v1.1 | >=7.0 | >=5.5 | MIT | |
| v1.0 | >=7.1.3 | ~5.8.0| | MIT |