daedalus-web/requests

This package is abandoned and no longer maintained. No replacement package was suggested.

Module that handles application requests

v1.0.0 2017-10-27 16:40 UTC

This package is not auto-updated.

Last update: 2021-10-04 19:29:03 UTC


README

Build Status Scrutinizer Code Quality Packagist version Code Coverage

Request handling module for the Daedalus web application framework.

Installation

This is a request handler library, and should probably not be installed directly. To install the Daedalus framework into a new project:

composer create-project daedalus-web/daedalus your-project-name 0.*

If you know what you're doing and want to use this handler library directly, you can add it to your composer.json file:

{
  "require": {
    "daedalus-web/requests": "^1.0"
  }
}

Usage

## Set the namespace up to be used directly
use Daedalus\Requests\Request as Request;

## Fetch any GET, POST, or SERVER information
Request::get('your_field');
Request::post('your_field');
Request::server('your_field');

## Fetch all request information and access it via associated arrays
$allRequests = Request::all();
print_r($allRequests['post']);

This module exposes two HTTP methods (POST and GET) as well as the standard PHP $_SERVER method.

About

Requirements

Daedalus Requests is fully tested to work with:

  • PHP 7.0
  • PHP 7.1
  • PHP 7.2

Strictly speaking, this module can be modified to support PHP 5.5+, however we use strict variable typing that is not available in PHP versions before 7.0. Because PHP 5.6 is no longer receiving active support (and will only be receiving security updates for another year), we strongly recommend starting any new project with PHP 7 or later.

Submitting bugs and feature requests

Bugs and feature request are tracked on GitHub

Author

Josh Grancell - josh@joshgrancell.com - https://github.com/jgrancell

License

Daedalus Requests is licensed under the MIT License - see the LICENSE file for details