Download the PHP package jessicadigital/tflcycles without Composer

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

jessicadigital/tflcycles

A module to fetch Santander Cycle hire locations within a distance of specified locations. Read more on the blog.

Installation

To include this package in your project, use composer:

Fetching hire locations

To fetch locations, first create a new instance of the TflCycles class:

Now, specify your location(s) to find nearby hire stations:

You must specify one or more locations.

Next, set the search distance (in metres), e.g.

for 2km. This will find all bike hire locations within 2km of any of the specified locations. The default is 1000m.

Now, perform a search. Use the method to return an array of stations, or to save this array directly to a file.

Example

This example will fetch all cycle hire stations within 500m of Euston and Waterloo rail stations and save to a file called :

Usage

This package uses the TfL Santander Cycle API. Please abide by their Terms and Conditions.

Do not make repeated requests to the API - the data is only updated every five minutes. The recommended approach for using this package is to set up a scheduled CRON job to fetch and cache the data you need.

This project has no connection with TfL or the bike hire scheme; it was created as part of a development project and released for the community to enjoy.


All versions of tflcycles with dependencies

PHP Build Version
Package Version
No informations.
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 jessicadigital/tflcycles contains the following files

Loading the files please wait ....