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

gabrieloliverio/laravel5-generators

Database metadata-based generators for Laravel 5

1
erirk/paypalpayment

laravel-paypalpayment is simple package help you process direct credit card paym...

0
doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

631,580,251 9,707
laravel/framework

The Laravel Framework.

580,311,802 34,925
laravel/tinker

Powerful REPL for the Laravel framework.

489,754,436 7,444