rugaard/statsfc

This package parses the API available through StatsFC.

1.0.0 2017-04-15 09:03 UTC

This package is auto-updated.

Last update: 2024-03-16 16:53:21 UTC


README

Build status Codecov status

📝 Introduction

This package parses the API available through StatsFC.

StatsFC is a service that exposes data about the biggest football leagues in Europe. You can i.e. get data about fixtures, squads, standings, top scorers and much more.

⚠️ Requirements

  • PHP 7.1+
  • cURL 7.19.4+ (with OpenSSL and zlib) or make sure you enable allow_url_fopen in your systems php.ini

📦 Installation

The recommended way to install this package is through Composer, by using the following command:

composer require rugaard/statsfc

Alternatively, you can add the package by editing your projects existing composer.json file:

 {
   "require": {
      "rugaard/statsfc": "~1.0"
   }
}

and then afterwards update Composers dependencies by using the following command:

composer update

Laravel

If you're using the Laravel framework, this package comes with a out-of-the-box Service Provider. After the package has been installed, simply add the following line to the config/app.php in the providers array:

'providers' => [
    Rugaard\StatsFC\Providers\LaravelServiceProvider::class,
]

After adding the LaravelServiceProvider class to the config/app.php file, run the following command in your terminal to publish the associated config file:

php artisan vendor:publish --provider="Rugaard\StatsFC\Providers\LaravelServiceProvider"

⚙️ Usage

TODO: Write instructions

🚓 License

StatsFC is open-sourced software licensed under the MIT license.