Download the PHP package davidwofford/phpdarksky without Composer

On this page you can find all versions of the php package davidwofford/phpdarksky. 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 phpdarksky

PHP Dark Sky

A simple wrapper for connecting to and pulling information from the Dark Sky api

Features

Notes

Requirements

Installation

Composer

To install through composer add the following line to your composer.json file:

or run this command

Copy

If you do not wish to use composer, copy the PhpDarkSky directory to your library / vendor folder and add:

Usage

Get the forecast

To get all of the forecast data for a location

Get the current forecast only

This will return data that would be in the currently array from getForecast

There is a similar function for all of the other arrays that appear in getForecast as well.

Get the time machine data

To get the time machine data for a location

As with the forecast items above there is a method to get filtered down arrays for each of the array items that appear from this call as well.

Configuration

If you are having issues with your ssl cert being denied locally you can add this define in your project to bypass the ssl cert check.

define('PHP_DARK_SKY_BYPASS_SSL', true);

DO NOT TURN THIS ON IN PRODUCTION

Resources


All versions of phpdarksky with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
ext-json Version *
guzzlehttp/guzzle Version ^6.3
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 davidwofford/phpdarksky contains the following files

Loading the files please wait ....