PHPackages                             bjos19/anax-weathermodule - 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. [Framework](/categories/framework)
4. /
5. bjos19/anax-weathermodule

ActiveLibrary[Framework](/categories/framework)

bjos19/anax-weathermodule
=========================

Anax weather module

V1.0.4(5y ago)072MITPHPPHP &gt;=7.4

Since Dec 1Pushed 5y ago1 watchersCompare

[ Source](https://github.com/bjorn-87/anax-weathermodule)[ Packagist](https://packagist.org/packages/bjos19/anax-weathermodule)[ Docs](https://github.com/bjorn-87/anax-weathermodule)[ RSS](/packages/bjos19-anax-weathermodule/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (6)Used By (0)

Anax weather module (bjos19/anax-weathermodule)
===============================================

[](#anax-weather-module-bjos19anax-weathermodule)

Badges
======

[](#badges)

Travis-CI
[![Build Status](https://camo.githubusercontent.com/43efd860e17b49ed933371b9f09ee5538959d76ff60bc765dba4b129a0885860/68747470733a2f2f7472617669732d63692e636f6d2f626a6f726e2d38372f616e61782d776561746865726d6f64756c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/bjorn-87/anax-weathermodule)
CircleCI
[![](https://camo.githubusercontent.com/387bbd2f05002b1e47cc25f27d1fa0c08055f3925c192b58fb9c9451729a8048/68747470733a2f2f636972636c6563692e636f6d2f67682f626a6f726e2d38372f616e61782d776561746865726d6f64756c652e7376673f7374796c653d737667)](https://app.circleci.com/pipelines/github/bjorn-87/anax-weathermodule)
Scrutinzer
[![Scrutinizer Code Quality](https://camo.githubusercontent.com/63237f46369308556522af2b83ed473d64c1036419fb0e0ab7647d059790be5d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f626a6f726e2d38372f616e61782d776561746865726d6f64756c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/bjorn-87/anax-weathermodule/?branch=master)
[![Code Coverage](https://camo.githubusercontent.com/e9954086eb9524e48ea45d2cad7095ceb6b33f1e82ce82f8ea438923e599ffac/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f626a6f726e2d38372f616e61782d776561746865726d6f64756c652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/bjorn-87/anax-weathermodule/?branch=master)
[![Build Status](https://camo.githubusercontent.com/4ff3d98fb75071208786dcfb0c386599c9ad0517d53d94cc0591fc269d1d3946/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f626a6f726e2d38372f616e61782d776561746865726d6f64756c652f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/bjorn-87/anax-weathermodule/build-status/master)
[![Code Intelligence Status](https://camo.githubusercontent.com/e7e4e9741665ce63cb415ef5c4096901775774a9272eefadba6f389c6b7a0341/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f626a6f726e2d38372f616e61782d776561746865726d6f64756c652f6261646765732f636f64652d696e74656c6c6967656e63652e7376673f623d6d6173746572)](https://scrutinizer-ci.com/code-intelligence)
Codeclimate
[![Maintainability](https://camo.githubusercontent.com/5b59d8ba3ad08b9cc22f24d08a18f2799115b91ad9d4c48352d051df2a9d941d/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f38376430343231663236313434613965626166382f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/bjorn-87/anax-weathermodule/maintainability)
SymfonyInsight
[![SymfonyInsight](https://camo.githubusercontent.com/a2b4596cacc76256c790bbfc39c40b919f180f4baac3409ca71183f53f91d83f/68747470733a2f2f696e73696768742e73796d666f6e792e636f6d2f70726f6a656374732f36666639366339622d393161662d343739612d623165632d3663623831383134333038352f6d696e692e737667)](https://insight.symfony.com/projects/6ff96c9b-91af-479a-b1ec-6cb818143085)

Installing
==========

[](#installing)

This module is available on [packagist](https://packagist.org/packages/bjos19/anax-weathermodule)

Step 1 install the module
-------------------------

[](#step-1-install-the-module)

### install using composer

[](#install-using-composer)

`composer require bjos19/anax-weathermodule`

Step 2 Copy the configuration files and other necessary folders.
----------------------------------------------------------------

[](#step-2-copy-the-configuration-files-and-other-necessary-folders)

You can copy all the files separately from `vendor/bjos19/anax-weathermodule` or stand in the root of your Anax repo and copy all files with the following commands:

```
rsync -av vendor/bjos19/anax-weathermodule/config ./
rsync -av vendor/bjos19/anax-weathermodule/src ./
rsync -av vendor/bjos19/anax-weathermodule/view ./
rsync -av vendor/bjos19/anax-weathermodule/test ./

```

Step 3 Add namespace
--------------------

[](#step-3-add-namespace)

Add namespace `Bjos` to `composer.json` and run command `composer dump-autoload`.

```
"autoload": {
    "psr-4": {
        "Anax\\": "src/",
        "Bjos\\": "src/"
    }
},

```

Test
====

[](#test)

Run command `make test` to check that the code validates.

To be able to use the module properly you have to add 2 api-keys
================================================================

[](#to-be-able-to-use-the-module-properly-you-have-to-add-2-api-keys)

Add api key from [ipstack](https://ipstack.com/)
------------------------------------------------

[](#add-api-key-from-ipstack)

Create file `/config/api_ipstack.php` and copy the code below or rename the file `/config/api_ipstack_sample.php`.

```
