Installation

This library can be easily installed via composer. If you are unfamiliar with composer, view composer's download instructions to get started.

From the command-line, simply enter the following:

composer require jasonroman/nba-api:^1.0

Alternatively, you can also add the library to your composer.json file directly:

{
    "require": {
        "jasonroman/nba-api": "^1.0"
    }
}
and then call composer install from the command-line.

Class Loading

Composer handles the autoloading of classes in this library. If you are using a framework like Symfony or Laravel (highly encouraged!), you can skip this step. For standalone files or projects, you will need to include the composer autoload file in your project like so:

<?php require_once "vendor/autoload.php";

This site has no official affiliation with the National Basketball Association or any other 3rd-party entities listed on this site.
© 2024 Jason Roman