hipsterjazzbo/fire-and-forget

A simple PHP library to just fire off an HTTP request and forget about it
9,780 14
Install
composer require hipsterjazzbo/fire-and-forget
Latest Version:0.1.6
PHP:>=5.4.0
License:MIT
Last Updated:Jul 24, 2019
Links: GitHub  ·  Packagist
Maintainer: HipsterJazzbo

FireAndForget

A simple PHP library to just fire off an HTTP request and forget about it

Installation

To get started, require this package in your composer.json and run composer update:

"hipsterjazzbo/fire-and-forget": "0.1.*"

If you're using Laravel

After updating composer, add the ServiceProvider to the providers array in app/config/app.php:

'HipsterJazzbo\FireAndForget\FireAndForgetServiceProvider',

You'll probably want to set up the alias:

'FireAndForget' => 'HipsterJazzbo\FireAndForget\Facades\FireAndForgetFacade'

You could also publish the config file:

php artisan config:publish hipsterjazzbo/fire-and-forget

Usage

Just call one of the methods (get, post, put, delete) and get on with your life. FireAndForget will compile the request, open a socket, fire the request and immediately close and return.

Note All the methods have the same signature.

// You can define a connection timeout, the default is 5
$connectionTimeout = 5;

$faf = new FireAndForget($connectionTimeout);
$faf->post($url, $params);

Or, if you're using Laravel,

FireAndForget::post($url, $params);

Related Packages

doctrine/dbal

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

637,827,751 9,703
laravel/framework

The Laravel Framework.

589,172,971 34,950
laravel/tinker

Powerful REPL for the Laravel framework.

498,216,183 7,442
laravel/serializable-closure

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

413,412,504 609
nunomaduro/collision

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

394,964,158 4,660

Version History

Version Released PHP Laravel License
0.1.6 >=5.4.0 4.2.*|~5.0 MIT
0.1.5 >=5.4.0 4.2.*|~5.0 MIT
0.1.4 >=5.4.0 4.2.*|~5.0 MIT
0.1.3 >=5.4.0 4.2.*|5.0.* MIT
0.1.2 >=5.4.0 4.2.* MIT