2017 © Pedro Peláez
 

library http

HTTP Request / Response classes (extending zend/diactoros with a few methods)

image

vakata/http

HTTP Request / Response classes (extending zend/diactoros with a few methods)

  • Wednesday, July 18, 2018
  • by vakata
  • Repository
  • 1 Watchers
  • 3 Stars
  • 719 Installations
  • PHP
  • 1 Dependents
  • 1 Suggesters
  • 0 Forks
  • 0 Open issues
  • 41 Versions
  • 12 % Grown

The README.md

http

Latest Version on Packagist ![Software License][ico-license] Build Status Scrutinizer Code Quality ![Code Coverage][ico-scrutinizer], (*1)

HTTP Request / Response classes, extending Zend Diactoros with just a few helful methods., (*2)

Install

Via Composer, (*3)

``` bash $ composer require vakata/http, (*4)


## Usage ``` php // REQUEST extras // create a request instance from the current client data $req = \vakata\http\Request::fromGlobals(); // now you can inspect properties $req->getQuery('asdf'); // get the "asdf" GET parameter value $req->getCookie('sessid'); // get the "sessid" cookie value $req->getPost('pass'); // get the "pass" POST parameter value $req->getPrefferedResponseLanguage(); // get the preffered response language // if a parameter is missing a default you pass in can be returned $req->getQuery('missing', 'default'); // now $a contains "default" // return values can also be filtered (all filters are listed in the docs) $req->getPost('user_id', null, 'int'); // you can also get the whole array of parameters $all = $req->getPost(); // URI extras $req->getUri()->getSegment(0); $req->getUri()->linkTo('some/path', [ 'get_param' => 'value' ]); // RESPONSE extras $res = new \vakata\http\Response(); $res = $res->expireCookie('sessid'); if ($res->hasCache()) { $res = $res->cacheUntil('+7 days'); } $res = $res->setContentTypeByExtension('json');

Read more in the API docs, (*5)

Testing

bash $ composer test, (*6)

Contributing

Please see CONTRIBUTING for details., (*7)

Security

If you discover any security related issues, please email github@vakata.com instead of using the issue tracker., (*8)

Credits

License

The MIT License (MIT). Please see License File for more information., (*9)

The Versions

18/07 2018

dev-master

9999999-dev https://github.com/vakata/http

HTTP Request / Response classes (extending zend/diactoros with a few methods)

  Sources   Download

MIT

The Requires

 

The Development Requires

http vakata

18/07 2018

2.2.2

2.2.2.0 https://github.com/vakata/http

HTTP Request / Response classes (extending zend/diactoros with a few methods)

  Sources   Download

MIT

The Requires

 

The Development Requires

http vakata

03/07 2018

2.2.1

2.2.1.0 https://github.com/vakata/http

HTTP Request / Response classes (extending zend/diactoros with a few methods)

  Sources   Download

MIT

The Requires

 

The Development Requires

http vakata

27/06 2018

2.2.0

2.2.0.0 https://github.com/vakata/http

HTTP Request / Response classes (extending zend/diactoros with a few methods)

  Sources   Download

MIT

The Requires

 

The Development Requires

http vakata

27/06 2018

2.1.2

2.1.2.0 https://github.com/vakata/http

HTTP Request / Response classes (extending zend/diactoros with a few methods)

  Sources   Download

MIT

The Requires

 

The Development Requires

http vakata

27/06 2018

2.1.1

2.1.1.0 https://github.com/vakata/http

HTTP Request / Response classes (extending zend/diactoros with a few methods)

  Sources   Download

MIT

The Requires

 

The Development Requires

http vakata

10/01 2018

2.1.0

2.1.0.0 https://github.com/vakata/http

HTTP Request / Response classes (extending zend/diactoros with a few methods)

  Sources   Download

MIT

The Requires

 

The Development Requires

http vakata

10/01 2018

2.0.1

2.0.1.0 https://github.com/vakata/http

HTTP Request / Response classes (extending zend/diactoros with a few methods)

  Sources   Download

MIT

The Requires

 

The Development Requires

http vakata

10/01 2018

2.0.0

2.0.0.0 https://github.com/vakata/http

HTTP Request / Response classes (extending zend/diactoros with a few methods)

  Sources   Download

MIT

The Requires

 

The Development Requires

http vakata

27/04 2017

1.3.13

1.3.13.0 https://github.com/vakata/http

HTTP Request / Response classes

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

http vakata

10/04 2017

1.3.12

1.3.12.0 https://github.com/vakata/http

HTTP Request / Response classes

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

http vakata

10/04 2017

1.3.11

1.3.11.0 https://github.com/vakata/http

HTTP Request / Response classes

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

http vakata

05/04 2017

1.3.10

1.3.10.0 https://github.com/vakata/http

HTTP Request / Response classes

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

http vakata

31/03 2017

1.3.9

1.3.9.0 https://github.com/vakata/http

HTTP Request / Response classes

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

http vakata

17/03 2017

1.3.8

1.3.8.0 https://github.com/vakata/http

HTTP Request / Response classes

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

http vakata

20/12 2016

1.3.7

1.3.7.0 https://github.com/vakata/http

HTTP Request / Response classes

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

http vakata

28/10 2016

1.3.6

1.3.6.0 https://github.com/vakata/http

HTTP Request / Response classes

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

http vakata

27/10 2016

1.3.5

1.3.5.0 https://github.com/vakata/http

HTTP Request / Response classes

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

http vakata

27/10 2016

1.3.4

1.3.4.0 https://github.com/vakata/http

HTTP Request / Response classes

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

http vakata

26/09 2016

1.3.3

1.3.3.0 https://github.com/vakata/http

HTTP Request / Response classes

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

http vakata

12/09 2016

1.3.2

1.3.2.0 https://github.com/vakata/http

HTTP Request / Response classes

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

http vakata

12/08 2016

1.3.1

1.3.1.0 https://github.com/vakata/http

HTTP Request / Response classes

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

http vakata

08/08 2016

1.3.0

1.3.0.0 https://github.com/vakata/http

HTTP Request / Response classes

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

http vakata

22/07 2016

1.2.1

1.2.1.0 https://github.com/vakata/http

HTTP Request / Response classes

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

http vakata

22/07 2016

1.2.0

1.2.0.0 https://github.com/vakata/http

HTTP Request / Response classes

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

http vakata

16/07 2016

1.1.0

1.1.0.0 https://github.com/vakata/http

HTTP Request / Response classes

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

http vakata

13/07 2016

1.0.14

1.0.14.0 https://github.com/vakata/http

HTTP Request / Response classes

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

http vakata

13/05 2016

1.0.13

1.0.13.0 https://github.com/vakata/http

HTTP Request / Response classes

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

http vakata

22/04 2016

1.0.12

1.0.12.0 https://github.com/vakata/http

HTTP Request / Response classes

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

http vakata

18/04 2016

1.0.11

1.0.11.0 https://github.com/vakata/http

HTTP Request / Response classes

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

http vakata

17/04 2016

1.0.10

1.0.10.0 https://github.com/vakata/http

HTTP Request / Response classes

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

http vakata

16/04 2016

1.0.9

1.0.9.0 https://github.com/vakata/http

HTTP Request / Response classes

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

http vakata

13/04 2016

1.0.8

1.0.8.0 https://github.com/vakata/http

HTTP Request / Response classes

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

http vakata

23/03 2016

1.0.6

1.0.6.0 https://github.com/vakata/http

HTTP Request / Response classes

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

http vakata

23/03 2016

1.0.5

1.0.5.0 https://github.com/vakata/http

HTTP Request / Response classes

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

http vakata

21/03 2016

1.0.4

1.0.4.0 https://github.com/vakata/http

HTTP Request / Response classes

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

http vakata

09/02 2016

1.0.3

1.0.3.0 https://github.com/vakata/http

HTTP Request / Response classes

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

http vakata

06/02 2016

1.0.2

1.0.2.0 https://github.com/vakata/http

HTTP Request / Response classes

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

http vakata

14/01 2016

1.0.1

1.0.1.0 https://github.com/vakata/http

HTTP Request / Response classes

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

http vakata

11/01 2016

1.0.0

1.0.0.0 https://github.com/vakata/http

HTTP Request / Response classes

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

http vakata

11/01 2016

1.0.7

1.0.7.0 https://github.com/vakata/http

HTTP Request / Response classes

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

http vakata