PHP code example of giacomomasseron / php-fire-and-forget

1. Go to this page and download the library: Download giacomomasseron/php-fire-and-forget library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

giacomomasseron / php-fire-and-forget example snippets


\GiacomoMasseroni\FireAndForget\FireAndForget::get($url);

\GiacomoMasseroni\FireAndForget\FireAndForget::withHeaders([
        'X-Header' => 'Test',
        'X-Header2' => 'Test2',
    ])->post($url);

\GiacomoMasseroni\FireAndForget\FireAndForget::withBearerToken('your_token')->post($url);