承接 ernestdefoe/espn-cfb-ticker 相关项目开发

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

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

ernestdefoe/espn-cfb-ticker

Composer 安装命令:

composer require ernestdefoe/espn-cfb-ticker

包简介

A FBS college football scores ticker powered by the ESPN API for Flarum 2.

README 文档

README

Floxum Version Downloads Review License

License: MIT Flarum

A live FBS college football scores ticker for Flarum 2 forums, powered by the free public ESPN API. Scores scroll automatically across a sticky banner at the top (or bottom) of your forum, updating on a configurable interval.

Features

  • 🏈 FBS-only — filters ESPN's API to Group 80 (NCAA Division I FBS)
  • 📡 Live scores with a pulsing green dot for in-progress games
  • 🏆 AP/Coaches rankings — shows #N next to ranked teams (Top 25)
  • 🖼️ Team logos pulled directly from ESPN's CDN
  • ⚙️ Admin settings — toggle on/off, top/bottom position, refresh interval, scroll speed
  • 📱 Responsive — logos hidden on narrow screens to keep ticker readable
  • 🔁 Seamless loop — CSS-only marquee with no layout jank
  • ♻️ Auto-refresh — polls ESPN API on a configurable interval (default 60s)

Requirements

  • Flarum ^2.0
  • PHP ^8.3
  • No external PHP dependencies

Installation

composer require ernestdefoe/espn-cfb-ticker

Then enable the extension in your Flarum admin panel under Extensions.

Building JavaScript

If you're contributing or modifying the extension:

cd js
npm install
npm run build   # production build
npm run dev     # watch mode

Admin Settings

Setting Default Description
Enable Ticker true Show/hide the ticker sitewide
Position top Sticky top or fixed bottom
Refresh Interval 60 seconds How often to poll ESPN API (min 15s)
Scroll Speed 40 Per-game animation multiplier (lower = faster)

How It Works

  1. On page load the extension mounts a Mithril component outside Flarum's main app node.
  2. The component fetch()es https://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard?groups=80&limit=50 — the public ESPN API, no key required.
  3. Games are rendered in a CSS @keyframes scroll animation. The track is duplicated so the loop is seamless.
  4. A setInterval re-fetches on the configured interval, causing a Mithril redraw.

ESPN API Notes

The ESPN public scoreboard API (site.api.espn.com) is unofficial and undocumented but has been widely used by developers for years. It requires no API key and returns JSON. The groups=80 parameter restricts results to FBS schools.

Support

Questions, bug reports, and feature requests:

License

MIT © 2026 ernestdefoe

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-05-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固