Download the PHP package ernestdefoe/roster without Composer

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

Roster

Every team, roster and player, for Flarum 2.

Browse by conference or division, open a club, and see who is on it.

A club's roster, grouped the way the sport groups it:

Which leagues

League Source What you get
College football ESPN Rosters with class years
NFL, NBA, MLB, NHL, MLS, Premier League, WNBA ESPN The current roster, with position, number, size and hometown

Every competition is a tick box in Admin → Roster, and they cost nothing: ESPN needs no API key.

roster:sync runs hourly on Flarum's scheduler and needs nothing else.

Player pages

Every name on a roster is a link to that player's own page:

Every section only appears when there's something in it. ESPN pads a quiet player's news with whatever college football is talking about that day, so stories that never name him are left out; a walk-on gets his bio and nothing invented.

What ESPN and Wikipedia return is cached for six hours per player (a week for Wikipedia), so a busy roster doesn't turn into a stream of outside requests. The first visit to a player's page gathers it as a queued job: on a forum with a queue worker the page opens straight away and fills in a few seconds later. With Waymark installed, the roster pages carry its breadcrumb trail: Home › Roster › Texas › Arch Manning.

Things worth knowing

🚨 The position groups are the provider's own. Offense, defense and specialists is a fact about gridiron; ESPN answers Pitchers and Catchers, Centers and Wingers. Mapping a shortstop through a list of football positions returns "other" for every player on the team, so the group is stored as it was given and only gridiron's units (offense, defense, specialists) are translated.

🚨 A professional club has no class column. There is no such thing as a sophomore in the NBA, and an empty column under a heading that means nothing in the sport reads as missing data rather than as a concept the sport lacks.

🚨 A roster is one call per club on ESPN, so the sync is capped at a dozen rosters a run and works oldest-first. A club whose roster is a day old is invisible; a queue worker killed by its own traffic is not.

🚨 A club with an empty roster is still stamped as fetched. ESPN assembles that endpoint from its own upstream calls, and one athlete with a missing record takes a whole club's roster down with a 404 — seen live on one NFL club while the other thirty-one answered. Without the stamp that club is retried first on every run for ever, and no other club is ever reached.

For developers

The data is served as JSON:API resources: GET /api/roster-teams?filter[league]=nfl, GET /api/roster-teams/{slug}?include=players and GET /api/roster-players/{slug}?include=team.

Requires

Support

Licence

MIT.


All versions of roster with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
flarum/core Version ^2.0
guzzlehttp/guzzle Version ^7.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 ernestdefoe/roster contains the following files

Loading the files please wait ...