项目作者: johnrich85
项目描述 :
Bet tracker made using ZF2
高级语言: PHP
项目地址: git://github.com/johnrich85/zf2_bet_tracker.git
zf2_bet_tracker
Bet tracker made using ZF2
Misc Task list
Match scrapingResolve casters/parsers based on page.- Events defaulting when source not found - currently no way to rectify this (Need to scrape events, also Need to record URL against matches & resolve during event scrape.)
- GosuLoLCaster to extend base MatchCaster
- When selecting a match from db, link bet to db.
- Multiple matches per bet.
Finish Odds field (need to handle delete key, shoudl reset timer)Get vue.js working.- Rewrite custom jquery plugins as vue.js models.
- remove bootstrap css & replace with bower_component counterpart
- Partials for bet/index reports.
Priority 1: Improved betting
Multiple lines per bet.
Update form so that multiple lines can be rendered.Add hydratorsOn add bet, bet line form(or model) is not populateUpdate controller so that onPost form is repopulatedUpdate service so that it handles new line data.- New BetLine component in vue - pump in bet lines and generate fieldset (need to store a global bet return based on odds of all bet lines).
- Bet line match population (see hydrator)
UI button to add new line.
Move source page generation out of index controller - separate action.
Scrape match sources, update winner. (step 1, create source page for each match)Relationship between match & SourcePage.Then create controller action to scrape all completed matches.When selecting a match (on bet add/edit form), link that match to the bet.- When a bet result is scraped, mark associated bets as winners/losers.
- Bet status extension (win/lose/pending)
- List bets by day/week/month - group w/l for period, graphs for bets for sport or weekly etc
Priority 2: Match history
- Add new section to interface - Matches (filterable by sport).
- Add new team section to interface. Show recent match history.
- Two new pages for matches section - Upcoming match (recent patches, win %, key facts) / Match results.
Priority 3: Improved team model
- Extend team model - current rating, notes, key facts, key players etc. Allow allow user input (key facts with tags: weight, plus/negative, expiry_date)
- New Player model, linked to team.# - player recent stats, current rating, injured/suspended etc.
Improved betting point 4 sub checklist
- Create new vue model for Modals.
- Create new vue model for Select (with/without optrgoups).
Create new ‘alternative-option’ vue model (adds button to ele, adds modal containing select, binds select value to input).Create new bet line vue model, create bet lines vue model. Create x amount of bet lines based on lines array.Add new button to UI that allows more lines to be added.
Next up
- Logging
Template engine.- Template engine - get layout working properly.
XSS escaping.CSRF for forms.- Users, Authentication & ACL.
Frontend modules/dependency managerMake modules self contained (add css/js etc to module, will need a ‘publish’ method to push to publci folder).
Bugs
Match date being calculated wrong, results in match being scraped multiple times.
Installation
- Clone repo.
- Install dependencies via composer (composer.phar install)
- Install frontend dependencies (bower install)
- Build schema (vendor/doctrine/doctrine-module/bin/doctrine-module orm
update
Commands
- Scrape completed matches - php public/index.php scrape matches