Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ClaudioVarandas/worldcup-notifications
A project to fetch FIFA World Cup matches and send event notifications
https://github.com/ClaudioVarandas/worldcup-notifications
Last synced: 3 months ago
JSON representation
A project to fetch FIFA World Cup matches and send event notifications
- Host: GitHub
- URL: https://github.com/ClaudioVarandas/worldcup-notifications
- Owner: ClaudioVarandas
- License: mit
- Created: 2018-06-16T02:37:49.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-07-06T09:39:18.000Z (over 6 years ago)
- Last Synced: 2024-04-23T07:26:18.870Z (10 months ago)
- Language: PHP
- Homepage:
- Size: 57.6 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-laravel-zero - Worldcup Notifications
README
# FIFA World Cup 2018 Slack notifications
This is a WIP project, developed in a couple of hours in the second day of the World Cup 2018, so this is not a best example of PHP Code or best practises, my goal its to have something functional and i did jut for fun :)I used the Laravel Zero project to write some commands to fetch World Cup matches data and announces some events to notifications channels (Slack).
## Instructions
- create mysql database
- cp .env.example .env
- set environment variables
- composer install
- php wc2018-notifications migrate:fresh
- php wc2018-notifications fetch:matches
- schedule wc2018-notifications in your crontab file## Notifications
- Match start / end
- Score change
- Match events (penalty, card, goal, ...)
- Today's matches with statistics## TODO
- more notification channels
- code refactor / organization## Requirements
- PHP 7.1.3+
- Composer
- Mysql 5.7 or compatible## Thanks
Laravel Zero was created by, and is maintained by [Nuno Maduro](https://github.com/nunomaduro)
World Cup API is provided by http://worldcup.sfg.io/ WORLD CUP 2018 ...IN JSON
## Warning
This project is based on a scraper, and scraping is inherently a messy and brittle procedural process.
## License
This project is an open-source software licensed under the [MIT license](https://github.com/laravel-zero/laravel-zero/blob/stable/LICENSE.md).