Keep track of where you left off & more. Sign up today

Using the Darksky API with PHP

Learn how to create an interactive weather forecast website using PHP and the Darksky API. We cover everything from the initial setup to getting the forecast for any address on earth, to automatically converting formats from Fahrenheit to Celsius depending on your location. This series assumes a basic understanding of HTML, CSS, PHP, and JSON.


2h 55m

Learning Outcomes

This series will teach you the following concepts:

  • Consuming API's to get dynamic, ever changing information
  • Combining multiple API's to complete certain tasks
  • Responding to user input via PHP forms
  • Looping through data and displaying alerts when things go wrong

By the end of this series you should be prepared to create a fully interactive weather forecast web-application. Advanced students will be able to take what they learned and use weather data in creative ways that go beyond just showing a forecast. Can you automatically generate a haiku based on the forecast? We dare you.