PHPackages                             trackbasenet/dev-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. trackbasenet/dev-api

ActiveLibrary[API Development](/categories/api)

trackbasenet/dev-api
====================

TrackBase API Connector Class that makes making calls to TrackBase as easy as two lines of code.

0.1.1(5y ago)29PHPPHP &gt;=7.1

Since Jan 26Pushed 5y ago1 watchersCompare

[ Source](https://github.com/trackbasenet/dev-api)[ Packagist](https://packagist.org/packages/trackbasenet/dev-api)[ Docs](https://github.com/trackbasenet/dev-api)[ RSS](/packages/trackbasenet-dev-api/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

TrackBase Developers API Library
================================

[](#trackbase-developers-api-library)

TrackBase is hosting own APIs for developers amongst its users and for clans that want to depict TrackBase data in their very own way without having to use iframes or such. Users that have registered on the [Developers Platform](https://developers.trackbase.net) could already query our several APIs in any programming language they like, or through standard cURL requests. With this package, TrackBase wants to give an easier entry into gathering information from its servers, without the need of knowing how to code. All it takes for a standard request to our API is **two lines of code**.

Please make sure that you are [registered as a developer](https://developers.trackbase.net/signup) in the first place and read through our [API docs](https://developers.trackbase.net/apis) for a better idea of how we are returning information and what parameters you need to supply. Additionally, and most importantly, check out the **How To Use** section in this document further down.

Installation
------------

[](#installation)

### Composer

[](#composer)

The recommended path to installing and using our library is to use [Composer](https://getcomposer.org).

Execute the following line of code in your terminal to install our library into your project:

```
composer require trackbasenet/dev-api
```

Alternatively you can also add our library to your project through the `composer.json` file like so:

```
{
	"require": {
		"trackbasenet/dev-api": "*"
	}
}
```

Eventually you would want to install our library through the following line executed in your terminal:

```
composer install
```

### ZIP Download

[](#zip-download)

If you are unfamiliar with or do not want to use Composer, you could also download the [latest ZIP archive](https://github.com/trackbasenet/dev-api/archive/master.zip) and include the `src/autoload.php` file. This bypasses the version system and downloads the code up to the **latest** commit.

Eventually you will need to `require_once` the autoloader like this:

```
require_once __DIR__ . '/src/autoload.php';
```

How To Use
----------

[](#how-to-use)

Instantiation
-------------

[](#instantiation)

Before running any methods, you will need to instantiate the `TrackBaseApi` class and supply the necessary credentials that are required to query our APIs.

```
