PHPackages                             3brettb/fantasynfl - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. 3brettb/fantasynfl

ActiveLibrary[API Development](/categories/api)

3brettb/fantasynfl
==================

Laravel NFL Fantasy Football Resource

0.1(8y ago)1191[1 issues](https://github.com/3brettb/fantasynfl/issues)MITPHPPHP &gt;=7.1.0

Since Jan 23Pushed 8y agoCompare

[ Source](https://github.com/3brettb/fantasynfl)[ Packagist](https://packagist.org/packages/3brettb/fantasynfl)[ Docs](https://github.com/3brettb/fantasynfl)[ RSS](/packages/3brettb-fantasynfl/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (4)Versions (3)Used By (0)

fantasynfl
==========

[](#fantasynfl)

Laravel NFL Fantasy Football

### Installation

[](#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

[](#fantasynfl-documentation)

- [API Documentation](documentation/api/DOCUMENTATION.md)
- [Developer Documentation](documentation/dev/DOCUMENTATION.md)

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 ` 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
```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3030d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/56d42bb9227c7dc4e071f8c0a45934b84b2af7e16905d2d0f3de210068d39b6e?d=identicon)[3brettb](/maintainers/3brettb)

---

Top Contributors

[![3brettb](https://avatars.githubusercontent.com/u/22225439?v=4)](https://github.com/3brettb "3brettb (104 commits)")

---

Tags

apifantasyfootballlaravelnflphp

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/3brettb-fantasynfl/health.svg)

```
[![Health](https://phpackages.com/badges/3brettb-fantasynfl/health.svg)](https://phpackages.com/packages/3brettb-fantasynfl)
```

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[statamic/cms

The Statamic CMS Core Package

4.8k3.2M720](/packages/statamic-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[nickurt/laravel-postcodeapi

Universal PostcodeApi for Laravel 11.x/12.x/13.x

97221.2k](/packages/nickurt-laravel-postcodeapi)[mozex/anthropic-laravel

Anthropic PHP for Laravel is a supercharged PHP API client that allows you to interact with the Anthropic API

71226.4k1](/packages/mozex-anthropic-laravel)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

762.6k](/packages/scriptdevelop-whatsapp-manager)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
