PHPackages                             svg0510/swaggerclient-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. svg0510/swaggerclient-php

ActiveLibrary[API Development](/categories/api)

svg0510/swaggerclient-php
=========================

swagger client for weather api

v1.0(1y ago)03proprietaryPHPPHP &gt;=5.5

Since Jan 29Pushed 1y agoCompare

[ Source](https://github.com/svg0510/swaggerclient-php)[ Packagist](https://packagist.org/packages/svg0510/swaggerclient-php)[ Docs](http://swagger.io)[ RSS](/packages/svg0510-swaggerclient-php/feed)WikiDiscussions v1.0 Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (3)Used By (0)

[![Ceasefire Now](https://camo.githubusercontent.com/e3375d5013ef026e3139b6a62ddc21b6d5cb146dc40e387c3d27a794ca864b6b/68747470733a2f2f62616467652e74656368666f7270616c657374696e652e6f72672f64656661756c74)](https://techforpalestine.org/learn-more)

PHP client for WeatherAPI.com
=============================

[](#php-client-for-weatherapicom)

Introduction
============

[](#introduction)

WeatherAPI.com provides access to weather and geo data via a JSON/XML restful API. It allows developers to create desktop, web and mobile applications using this data very easy.

We provide following data through our API:

- Real-time weather
- 14 day weather forecast
- Historical Weather
- Marine Weather and Tide Data
- Future Weather (Upto 365 days ahead)
- Daily and hourly intervals
- 15 min interval (Enterprise only)
- Astronomy
- Time zone
- Location data
- Sports
- Search or Autocomplete API
- Weather Alerts
- Air Quality Data
- Bulk Request

Getting Started
===============

[](#getting-started)

You need to [signup](https://www.weatherapi.com/signup.aspx) and then you can find your API key under [your account](https://www.weatherapi.com/login.aspx), and start using API right away!

Try our weather API by using interactive [API Explorer](https://www.weatherapi.com/api-explorer.aspx).

We also have SDK for popular framework/languages available on [Github](https://github.com/weatherapicom/) for quick integrations.

If you find any features missing or have any suggestions, please [contact us](https://www.weatherapi.com/contact.aspx).

Authentication
==============

[](#authentication)

API access to the data is protected by an API key. If at anytime, you find the API key has become vulnerable, please regenerate the key using Regenerate button next to the API key.

Authentication to the WeatherAPI.com API is provided by passing your API key as request parameter through an API .

key parameter
-------------

[](#key-parameter)

key=YOUR API KEY

Requirements
------------

[](#requirements)

PHP 5.5 and later

Installation &amp; Usage
------------------------

[](#installation--usage)

### Composer

[](#composer)

To install the bindings via [Composer](http://getcomposer.org/), add the following to `composer.json`:

```
{
  "repositories": [
    {
      "type": "git",
      "url": "https://github.com//.git"
    }
  ],
  "require": {
    "/": "*@dev"
  }
}

```

Then run `composer install`

### Manual Installation

[](#manual-installation)

Download the files and include `autoload.php`:

```
    require_once('/path/to/SwaggerClient-php/vendor/autoload.php');
```

Tests
-----

[](#tests)

To run the unit tests:

```
composer install
./vendor/bin/phpunit

```

Getting Started
---------------

[](#getting-started-1)

Please follow the [installation procedure](#installation--usage) and then run the following:

```
