Download the PHP package bthpan/weather without Composer

On this page you can find all versions of the php package bthpan/weather. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package weather

Build Status CircleCI

Scrutinizer Code Quality Code Coverage Build Status Codacy Badge

Weather module implements a weather service

Install as an Anax module

There are two steps in the installation procedure, 1) first install the module using composer and then 2) integrate it into you Anax base installation.

Step 1, install using composer

Install the module using composer.

Step 2, integrate into your Anax base

You can review the module files in the directory vendor/bthpan/weather/. It consists of the following parts.

File Description
src/Controller/weatherController.php This is a controller class,"weather" service to show 5 days history and 7 days forecast.
src/Controller/weatherApiController.php This is a controller class,"weatherApi" return the same data like the above but with json format.
src/IpGeo/IpGeoweather.php This is a module class, return data from api.ipstack.com with json format.
src/OpenWeather/OpenWeather.php This is a module class, return data from api.openweathermap.org with json format.
src/OpenWeather/NameToGeo.php This is a module class, return data from nominatim.openstreetmap.org with json format.
router/450_weather-controller.php The routes supported for the weather service. The route is implemented by the weatherController class.
router/451_weather-api-controller.php The routes supported for the weather API. The route is implemented by the weatherApiController class.
weather/README.md Short explanation on how to add new datasets.

You may copy all the module files with the following command.

The weather service is now active on the route weather2/. The weather API is now active on the route weather2Api.

Dependency

This is a Anax modulen and its usage is primarly intended to be together with the Anax framework.

You can install an instance on anax/anax and run this module inside it, to try it out for test and development.


All versions of weather with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
anax/commons Version ^2.0.14
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package bthpan/weather contains the following files

Loading the files please wait ...