Download the PHP package epixian/laravel-noaa without Composer

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

Laravel NOAA

Laravel NOAA is a wrapper for the NOAA's climate data API at https://ncdc.noaa.giv/cdo-web/api/v2.

Installation

From your source directory, use the following command:

Publish assets:

Configuration

Add the following to your .env file:

Register for a token at https://www.ncdc.noaa.gov/cdo-web/token.

Usage

For a full listing of API request parameters, visit: https://www.ncdc.noaa.gov/cdo-web/webservices/v2.

Required

{requestType}()

where {requestType} is one of:

Sets the type of request to be generated.

get()

Executes the request and returns a JSON-decoded result (typically an array) depending on the API response. Note: requires a request type method to be previously called and must be the last call when chaining methods.

Alternatively, you may supply a single string argument to get() representing an id belonging to that request type (valid for all request type methods except data():

Optional

from(startDate)

startDate is a string containing a valid ISO formatted date (e.g. '2010-10-02'). Note: this field is required for the data() request type.

to(endDate)

endDate is a string containing a valid ISO formatted date (e.g. '2010-10-07'). Note: this field is required for the data() request type.

orderBy(field, direction)

field is a string containing one of: id, name, mindate, maxdate, or datacoverage.

direction is an optional string containing either asc (default if omitted) or desc.

limit(number)

Defaults to 25 if omitted.

offset(number)

Defaults to 0 if omitted. Note: the API returns results with indexes starting at 1. offset(0) and offset(1) produce equivalent results.

Laravel-style helpers

A number of method aliases are provided for convenience:

Request constraints may be chained together to refine or limit the data returned:

Additional constraint methods specific to the request type are detailed below.

Datasets

Returns the available dataset(s) applicable to the given constraints (if any). The following optional constraint methods are available:

withDataType(id)

id is a string containing a single valid data type ID, or an array of strings representing multiple data type IDs.

withLocation(id)

id is a string containing a single valid location ID, or an array of strings representing multiple location IDs.

withStation(id)

id is a string containing a single valid station ID, or an array of strings representing multiple station IDs.

Data Categories

Returns the available data category(s) applicable to the given constraints (if any). The following optional constraint methods are available:

withDataset(id)

id is a string containing a single valid dataset ID, or an array of strings representing multiple dataset IDs.

withLocation(id)

id is a string containing a single valid location ID, or an array of strings representing multiple location IDs.

withStation(id)

id is a string containing a single valid station ID, or an array of strings representing multiple station IDs.

Data Types

Returns the available data type(s) applicable to the given constraints (if any). The following optional constraint methods are available:

withDataset(id)

id is a string containing a single valid dataset ID, or an array of strings representing multiple dataset IDs.

withLocation(id)

id is a string containing a single valid location ID, or an array of strings representing multiple location IDs.

withStation(id)

id is a string containing a single valid station ID, or an array of strings representing multiple station IDs.

withDataCategory(id)

id is a string containing a single valid data category ID, or an array of strings representing multiple data category IDs.


All versions of laravel-noaa with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
guzzlehttp/guzzle Version ~5.3|~6.0
illuminate/support Version >=5.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 epixian/laravel-noaa contains the following files

Loading the files please wait ....