PHPackages                             rawphp/raw-request - 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. rawphp/raw-request

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

rawphp/raw-request
==================

RawRequest is a simple request class used by RawPHP framework and other applications and provides a useful interface to the HTTP request.

0305PHP

Since Dec 17Pushed 11y ago1 watchersCompare

[ Source](https://github.com/rawphp/RawRequest)[ Packagist](https://packagist.org/packages/rawphp/raw-request)[ RSS](/packages/rawphp-raw-request/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

RawRequest - A Simple Http Request Interface Class for PHP Applications
=======================================================================

[](#rawrequest---a-simple-http-request-interface-class-for-php-applications)

[![Build Status](https://camo.githubusercontent.com/7a88056f7040e68b0d8f717c809fcc169e10318b463d6b9d7bea4885c6f58109/68747470733a2f2f7472617669732d63692e6f72672f7261777068702f526177526571756573742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/rawphp/RawRequest) [![Coverage Status](https://camo.githubusercontent.com/05c700b9da629ff2e23092738be408fe2d2b017dfc32d10475ac27b6b555a099/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f7261777068702f526177526571756573742f62616467652e706e673f6272616e63683d6d6173746572)](https://coveralls.io/r/rawphp/RawRequest?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/22de5d5f77f5c3402813ee13b5e8d738cf334223526e57c8eee6af1feba9c022/68747470733a2f2f706f7365722e707567782e6f72672f7261777068702f7261772d726571756573742f762f737461626c652e737667)](https://packagist.org/packages/rawphp/raw-request) [![Total Downloads](https://camo.githubusercontent.com/d4bd5084b72964a7b52345ecf3feb1052bfe023eefe328d58cea50733ca34ece/68747470733a2f2f706f7365722e707567782e6f72672f7261777068702f7261772d726571756573742f646f776e6c6f6164732e737667)](https://packagist.org/packages/rawphp/raw-request)[![Latest Unstable Version](https://camo.githubusercontent.com/3c0bce776d3fdc3422f6e170418cd3aa55b6e30a4a6f8ebcf69d8429af074cda/68747470733a2f2f706f7365722e707567782e6f72672f7261777068702f7261772d726571756573742f762f756e737461626c652e737667)](https://packagist.org/packages/rawphp/raw-request) [![License](https://camo.githubusercontent.com/4e05e4e9cf8add094af3e9e9a34ef9e4ad9500572c319e12487ddcc84bce85e6/68747470733a2f2f706f7365722e707567782e6f72672f7261777068702f7261772d726571756573742f6c6963656e73652e737667)](https://packagist.org/packages/rawphp/raw-request)

[![SensioLabsInsight](https://camo.githubusercontent.com/793122d74c2e23c9f6218e4ce51dfaf18694138b47419628018408f7e489907f/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f30626530643638332d333436342d343462332d623435642d6261613464383838316636372f6269672e706e67)](https://insight.sensiolabs.com/projects/0be0d683-3464-44b3-b45d-baa4d8881f67)

Package Features
----------------

[](#package-features)

- Provides an interface to the current HTTP request
- Help with creating relative and absolute site urls

Installation
------------

[](#installation)

### Composer

[](#composer)

RawRequest is available via [Composer/Packagist](https://packagist.org/packages/rawphp/raw-request).

Add `"rawphp/raw-request": "0.*@dev"` to the require block in your composer.json and then run `composer install`.

```
{
        "require": {
            "rawphp/raw-request": "0.*@dev"
        }
}
```

You can also simply run the following from the command line:

```
composer require rawphp/raw-request "0.*@dev"
```

### Tarball

[](#tarball)

Alternatively, just copy the contents of the RawRequest folder into somewhere that's in your PHP `include_path` setting. If you don't speak git or just want a tarball, click the 'zip' button at the top of the page in GitHub.

Basic Usage
-----------

[](#basic-usage)

```
