Requests
Class for the requests are included inside the includes folder as data_handling.php.
use
use App\DataHandling;to include the requests class.
$data = new DataHandling();Env data
Section titled “Env data”Use the below method to load the .env file data.
$data = new DataHandling();
echo $data->env->APP_NAME;All requests
Section titled “All requests”Using this method all the data inside the $_REQUEST php array can be fetched.
echo $data->request->username;echo $data->request->password;Get request
Section titled “Get request”Using this method all the data inside the $_GET php array can be fetched.
echo $data->get->username;echo $data->get->password;Post request
Section titled “Post request”Using this method all the data inside the $_POST php array can be fetched.
echo $data->post->username;echo $data->post->password;File request
Section titled “File request”Using this method all the data inside the $_POST php array can be fetched.
echo $data->post->username;echo $data->post->password;Session request
Section titled “Session request”Using this method all the data inside the $_SESSION php array can be fetched.
echo $data->session->username;echo $data->session->password;Cookie request
Section titled “Cookie request”Using this method all the data inside the $_COOKIE php array can be fetched.
echo $data->cookie->username;echo $data->cookie->password;