Download the PHP package maxalmonte14/nfl-scores without Composer
On this page you can find all versions of the php package maxalmonte14/nfl-scores. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package nfl-scores
About NFL-Scores
NFL-Scores is a CLI program that allows you to see the scores of live NFL games, as well as the list of games of the day and the current weekly schedule.
Requirements
Installation
How to use
Getting all live games
That will show you something like this.
You can see the teams that are playing, at which stadium, the current quarter, the clock, the possession team, the current down, and the yards to go. Pretty good, ah?
Getting your favorite team live game
You can get one specific live game just passing a parameter with your team abbreviation to the live
command.
And now you have the Cleveland Browns game live on your terminal!
Getting a list of today's games
If you want to see what teams are going to play today you can use the today
command.
That will show an output as the following.
Getting today's finished games
The live
command won't show you the finished games, so, if want to know the final results of a game you should use the finished
command.
The output will be like the following:
You can also get one specific game passing a parameter to the finished
command.
The output will be like the following:
Getting the games for this week
The week
command will show the games for the current week.
Note: Remember, a week in the NFL is composed by a Thursday, a Sunday and the Monday of next week.
The output will be similar to the following.
What this program cannot do
This program has its limitations, the NFL hasn't an open API to get precise data at any time you want, so I'm using an NFL Game Center JSON file which is updated every certain time to get the data that the CLI show.
For that reason this program cannot do the following things:
- Show information about games played before the current NFL week.
- Show player stats, because they're not contained in the JSON file.
What this program doesn't do but could do!
There is a lot of things that I would love to add in future versions of this program, these are some of them:
- Show the output in a prettier way. Everybody loves nice things!
- Update the data in real time. For the moment anytime you run the live command the program will show you the score at that time, you need to run the command over and over again every time you want to see the updated data.
- Show notifications every time a team scores or the game is finished.
- Store passed games in a database.
What this program can improve
There is a lot of things that can be done to improve this program, there are a few of them:
- Refactor! Everything turns better when you refactor it.
- Add some Feature tests. Of course this program has a test suite, but I focused on the Unit tests, so adding some features test is a must-do task.
- Speed up. Everybody loves fast things.
Contributing
Do you like this little app? Do you follow the PSR standards? It sounds good to me! Send me a PR, and don't forget to add some tests.
All versions of nfl-scores with dependencies
laravel-zero/framework Version 5.7.*
maxalmonte14/phpcollections Version ^0.7.0
zendframework/zend-text Version ^2.7