New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

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
Laravel:5 – 8
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...

651,963,193 9,701
laravel/framework

The Laravel Framework.

604,216,237 34,982
laravel/tinker

Powerful REPL for the Laravel framework.

512,508,631 7,443
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

429,221,767 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

407,699,310 4,663

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