承接 3brettb/fantasynfl 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

3brettb/fantasynfl

Composer 安装命令:

composer require 3brettb/fantasynfl

包简介

Laravel NFL Fantasy Football Resource

README 文档

README

Laravel NFL Fantasy Football

Installation

Create new Laravel Web App composer require laravel/laravel

Install Laravel Auth php artisan make:auth

Remove the user table migration from database/migrations

run composer require 3brettb/fantasynfl

Change App\User class to extend FantasyNFL\Fantasy\Models\User

run php artisan vendor:publish

run php artisan migrate

Add an authenticated() method to LoginController

    /**
     * Perform Fantasy NFL Login actions
     *
     * @param Request $request
     * @param $user
     */
    public function authenticated(Request $request, $user)
    {
        FantasyNFL::login($user);
    }

FantasyNFL Documentation

Get Team Roster

FantasyNFL::roster($team_id);

Get League

FantasyNFL::find($league_id);

Get League Activity

$league->activity()

Get Entities involved with Activity

$activity->involved[0]->get()

Get Link <a> tag associated with activity

$activity->links[0]->a_tag();

Get League Divisions

$league->divisions()
// -- or --
$league->division($division_id)

Get Division Teams

$division->teams()

Get Week

$league->week() // to get current week
$league->week($week_number) // to get specific week of current season
$league->week($week_number, $year) // returns week of the given season and number

Get Season

$league->season() // to get current season
$league->season($year) // to get specific season by year

统计信息

  • 总下载量: 19
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-12-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固