PHPackages                             arashabedii/requester - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. arashabedii/requester

ActiveLib[HTTP &amp; Networking](/categories/http)

arashabedii/requester
=====================

php requester

1.5(2y ago)5694[1 PRs](https://github.com/ArashAbedii/requester/pulls)1MITPHPPHP ^7.3|^8.0

Since Jan 30Pushed 2y ago1 watchersCompare

[ Source](https://github.com/ArashAbedii/requester)[ Packagist](https://packagist.org/packages/arashabedii/requester)[ RSS](/packages/arashabedii-requester/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)DependenciesVersions (11)Used By (1)

Request
=======

[](#request)

php class to send requests
--------------------------

[](#php-class-to-send-requests)

### Simple &amp; Fast &amp; Very light

[](#simple--fast--very-light)

### features

[](#features)

send GET , POST , PUT , PATCH , DELETE requests
send params in simple array
send headers in simple array
requests auto logging
error logger
send request without waiting for response

Install via composer
--------------------

[](#install-via-composer)

Go to your project root directory and run this command in terminal: ```
composer require arashabedii/requester

```

usage
-----

[](#usage)

```
# to enable request logging just pass $logger=true to send method
Request::send([string] url, [array] or [string] or [file context] params, [string] request type , [array] headers,[bool] logger);

```

#### at first include autoload.php file to your project file

[](#at-first-include-autoloadphp-file-to-your-project-file--)

```
require 'vendor/autoload.php';

```

#### after you can call Request::send() to send your requests.

[](#after-you-can-call-requestsend-to-send-your-requests)

examples:
---------

[](#examples)

**SEND GET REQUEST**

```
