guzzle to log into a website code example
Example: guzzle login example
$post_data = array(
'title' => 'My work',
'description' => 'This is a request created using curl',
'submit' => 'submit',
);
$response = $http_client->post('/create.php', array(), $post_data)->send();