Download the PHP package avolle/fotballdata without Composer

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

Fotballdata SDK for PHP

codecov GitHub PHP Version Require

A library for fetching data from Norwegian Football API service Fotballdata.

Installation:

composer install avolle/fotballdata

Gotchas

As match is a protected control structure token for PHP from version 8.0 and up, we need to alias the Match entity. Therefore all Match results use the Game entity. Only the entity name is aliased. Requests and hasMany relationships continue to use Matches.

Usage:

Anywhere in your code:

Configuration

Configuration keys. Only clubId, cid and cwd are required from you. These values are given by Fotballdata.

Key Type Default Value Description
debug boolean false Add configuration to HTTP requests to avoid SSL errors
mock boolean false Whether to mock the requests or actually invoke the API
clubId int None. Required. Your club id found in FIKS
cid int None. Required. Authentication id for Fotballdata API
cwd string None. Required. Authentication password for Fotballdata API

Supports the following requests:

Clubs

Description Method
Get a club ClubsRequests::get($id)
Get a club's matches ClubsRequests::matches($id)
Get a club's teams ClubsRequests::teams($id)
Get a club's tournaments ClubsRequests::tournaments($id)

Districts

Description Method
Get all districts DistrictsRequests::all()
Get a district DistrictsRequests::get($id)
Get a district's clubs DistrictsRequests::clubs($id)
Get a district's teams DistrictsRequests::teams($id)
Get a district's tournaments DistrictsRequests::tournaments($id)
Get a district's stadiums DistrictsRequests::stadiums($id)

Matches

Description Method
Get a match MatchesRequests::get($id)
Get a match with related people MatchesRequests::people($id)
Get a match with related people and events MatchesRequests::peopleAndEvents($id)

Seasons

Description Method
Get all seasons SeasonsRequests::all()
Get a season SeasonsRequests::get($id)

Stadiums

Description Method
Get a stadium StadiumsRequests::get($id)
Get a stadium's matches StadiumsRequests::matches($id)
Get a stadium's matches for a club StadiumsRequests::clubMatches($id, $clubId)
Get a stadium's children stadiums StadiumsRequests::children($id)

Teams

Description Method
Get a team TeamsRequests::get($id)
Get a team's matches TeamsRequests::matches($id)
Get a team's tournaments TeamsRequests::tournaments($id)
Get a team's tables TeamsRequests::tables($id)
Get a team's players TeamsRequests::players($id)

Tournaments

Description Method
Get a tournament TournamentsRequests::get($id)
Get a tournament's matches TournamentsRequests::matches($id)
Get a tournament's tables TournamentsRequests::tables($id)
Get a tournament's teams TournamentsRequests::teams($id)

All versions of fotballdata with dependencies

PHP Build Version
Package Version
Requires cakephp/http Version ^4.4
ext-json Version *
php Version ^7.4|^8.0
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 avolle/fotballdata contains the following files

Loading the files please wait ....