wakjoko/lara-http

Provides v7's Http Client for older Laravel versions up to v6
1,658
Install
composer require wakjoko/lara-http
Latest Version:v1.3
License:MIT
Last Updated:Nov 19, 2021
Links: GitHub  ·  Packagist
Maintainer: wakjoko

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/framework

The Laravel Framework.

593,882,149 34,959
laravel/tinker

Powerful REPL for the Laravel framework.

502,645,077 7,441
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|^6.0 MIT