News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

CodeSamplez.com:
PHP HTTP Request With Guzzle
June 12, 2014 @ 11:55:07

If you're making HTTP requests in your applications and you haven't looked into using Guzzle, you're missing out on one of the most powerful, flexible HTTP tools out there. In this new post to the CodeSamplez.com site they introduce you to the tool and show you how to make a few sample requests.

If you are consuming some kind of API with complex PHP HTTP requests which doesn't provide a clean wrapper library, I can feel the nightmare you might be having. Same could be happen if you are yourself writing such kind of API wrapper as well. Here, I will try to introduce you with guzzle library and getting a quick start. This article is targeted for complete beginners, so if you are already somewhat experienced, you either might skip this or review it and help me improve it to fit as a robust getting started tutorial.

He covers some of the things that can be done with Guzzle (including connecting to APIs and scraping site data) and briefly mentions some alternatives to the tool. Code is included to make a first request: a simple call to the GitHub API that fetches URL information for other resources. He also includes an example of making a POST request and using the OAuth module that comes with Guzzle, making those requests easier.

0 comments voice your opinion now!
http request guzzle introduction tutorial

Link: http://codesamplez.com/programming/php-http-request-guzzle

blog comments powered by Disqus

Similar Posts

Daniel Cousineau's Blog: Displaying N-Deep Trees (Remember Your Algorithms Course?)

Matthias Noback: Symfony2: Add a global option to console commands and generate a PID file

Federico Cargnelutti's Blog: Zend Framework DAL: DAOs and DataMappers

Oracle Technology Network: DeployPHP Series, Part 5 - Zend Core for Oracle Quick Start

PHPMaster.com: MongoDB Indexing, Part 1


Community Events





Don't see your event here?
Let us know!


introduction list bugfix laravel series threedevsandamaybe interview developer framework library language community project application code wordpress configure podcast release api

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework