2017 © Pedro Peláez
 

library web

Provides web Request and Response objects for use by web controllers and actions. These are representations of the PHP web environment, not HTTP request and response objects proper.

image

aura/web

Provides web Request and Response objects for use by web controllers and actions. These are representations of the PHP web environment, not HTTP request and response objects proper.

  • Thursday, February 9, 2017
  • by pmjones
  • Repository
  • 11 Watchers
  • 72 Stars
  • 87,746 Installations
  • PHP
  • 15 Dependents
  • 0 Suggesters
  • 20 Forks
  • 1 Open issues
  • 13 Versions
  • 4 % Grown

The README.md

Aura.Web

Provides web Request and Response objects for use by web controllers and actions. These are representations of the PHP web environment, not HTTP request and response objects proper., (*1)

Foreword

Installation

This library requires PHP 5.3 or later; we recommend using the latest available version of PHP as a matter of principle. It has no userland dependencies., (*2)

It is installable and autoloadable via Composer as aura/web., (*3)

Alternatively, download a release or clone this repository, then require or include its autoload.php file., (*4)

Quality

Scrutinizer Code Quality codecov Continuous Integration, (*5)

To run the unit tests at the command line, issue composer install and then ./vendor/bin/phpunit at the package root. This requires Composer to be available as composer., (*6)

This library attempts to comply with PSR-1, PSR-2, and PSR-4. If you notice compliance oversights, please send a patch via pull request., (*7)

Community

To ask questions, provide feedback, or otherwise communicate with the Aura community, please join our Google Group, follow @auraphp on Twitter, or chat with us on #auraphp on Freenode., (*8)

Getting Started

Instantiation

First, instantiate a WebFactory object, then use it to create Request and Response objects., (*9)

newRequest();
$response = $web_factory->newResponse();
?>

Note that if jit-globals is turned on, merely passing $GLOBALS will not work properly. In this case, use compact() to pass the needed values. For example:, (*10)

 $_ENV,
    '_GET' => $_GET,
    '_POST' => $_POST,
    '_COOKIE' => $_COOKIE,
    '_SERVER' => $_SERVER
));
$request = $web_factory->newRequest();
$response = $web_factory->newResponse();
?>

Request and Response Objects

Because each object contains so much functionality, we have split up the documentation into a Request page and a Response page., (*11)

By way of overview, the Request object has these sub-objects ..., (*12)

... and the Response object has these sub-objects:, (*13)

Once you have built a Response you can send it with any HTTP mechanism you prefer, including plain PHP., (*14)

Be sure to read the Request and Response pages for more detailed information., (*15)

The Versions

09/02 2017

2.x-dev

2.9999999.9999999.9999999-dev https://github.com/auraphp/Aura.Web

Provides web Request and Response objects for use by web controllers and actions. These are representations of the PHP web environment, not HTTP request and response objects proper.

  Sources   Download

BSD-2-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

request response

09/02 2017

2.1.0

2.1.0.0 https://github.com/auraphp/Aura.Web

Provides web Request and Response objects for use by web controllers and actions. These are representations of the PHP web environment, not HTTP request and response objects proper.

  Sources   Download

BSD-2-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

request response

03/10 2016

2.0.4

2.0.4.0 https://github.com/auraphp/Aura.Web

Provides web Request and Response objects for use by web controllers and actions. These are representations of the PHP web environment, not HTTP request and response objects proper.

  Sources   Download

BSD-2-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

request response

14/09 2015

1.x-dev

1.9999999.9999999.9999999-dev http://auraphp.github.com/Aura.Web

The Aura Web package provides tools to build web page controllers, including an AbstractPage for action methods, a Context class for discovering the request environment, and a Response transfer object that describes the eventual HTTP response.

  Sources   Download

BSD-2-Clause

The Requires

 

controller page controller web controller

27/03 2015

2.0.3

2.0.3.0 https://github.com/auraphp/Aura.Web

Provides web Request and Response objects for use by web controllers and actions. These are representations of the PHP web environment, not HTTP request and response objects proper.

  Sources   Download

BSD-2-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

request response

15/03 2015

2.0.2

2.0.2.0 https://github.com/auraphp/Aura.Web

Provides web Request and Response objects for use by web controllers and actions. These are representations of the PHP web environment, not HTTP request and response objects proper.

  Sources   Download

BSD-2-Clause

The Requires

  • php >=5.3.0

 

request response

07/11 2014

2.0.1

2.0.1.0 https://github.com/auraphp/Aura.Web

Provides web Request and Response objects for use by web controllers and actions. These are representations of the PHP web environment, not HTTP request and response objects proper.

  Sources   Download

BSD-2-Clause

The Requires

  • php >=5.3.0

 

request response

04/10 2014

2.0.0

2.0.0.0 https://github.com/auraphp/Aura.Web

Provides web Request and Response objects for use by web controllers and actions. These are representations of the PHP web environment, not HTTP request and response objects proper.

  Sources   Download

BSD-2-Clause

The Requires

  • php >=5.3.0

 

request response

31/05 2014

1.0.3

1.0.3.0 http://auraphp.com/Aura.Web

The Aura Web package provides tools to build web page controllers, including an AbstractPage for action methods, a Context class for disovering the request environment, and a Response transfer object that describes the eventual HTTP response.

  Sources   Download

BSD-2-Clause

The Requires

 

by Pascal Borreli

controller page controller web controller

09/01 2014

2.0.0-beta1

2.0.0.0-beta1 https://github.com/auraphp/Aura.Web/releases

Provides web Request and Response objects for use by web controllers. These are representations of the PHP web environment, not HTTP request and response objects proper.

  Sources   Download

BSD-2-Clause

The Requires

  • php >=5.3.0

 

request response

10/09 2013

1.0.2

1.0.2.0 http://auraphp.com/Aura.Web

The Aura Web package provides tools to build web page controllers, including an AbstractPage for action methods, a Context class for disovering the request environment, and a Response transfer object that describes the eventual HTTP response.

  Sources   Download

BSD-2-Clause

The Requires

 

by Pascal Borreli

controller page controller web controller

09/05 2013

1.0.1

1.0.1.0 http://auraphp.github.com/Aura.Web

The Aura Web package provides tools to build web page controllers, including an AbstractPage for action methods, a Context class for disovering the request environment, and a Response transfer object that describes the eventual HTTP response.

  Sources   Download

BSD-2-Clause

The Requires

 

by Pascal Borreli

controller page controller web controller

30/11 2012

1.0.0

1.0.0.0 http://auraphp.github.com/Aura.Web

The Aura Web package provides tools to build web page controllers, including an AbstractPage for action methods, a Context class for disovering the request environment, and a Response transfer object that describes the eventual HTTP response.

  Sources   Download

BSD-2-Clause

The Requires

 

controller page controller web controller