somephp / request
Parse request parameters to object.
Installs: 18
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- php: ^5.3 || ^7.0
This package is not auto-updated.
Last update: 2025-03-30 04:43:21 UTC
README
This is a simple PHP class which parses request parameters. It handles JSON, bracket array notation, and standard values.
License
MIT - MIT License File: LICENSE
Examples
<?php // Example request: https://example.com/?json={"test": 4} // Parse the 'json' parameter from the request. $req = new Request(array('json')); echo "<pre>req->json: ". print_r($req->json, true) ."</pre>";
Installation
Composer
composer require somephp/request
Contents
Resource | Description |
---|---|
Contributions
Liberal contribution friendly; Create merge request, describe why you want to MR. MR is peer reviewed.