SportStatsAPI Live Scores & League Tables
SportStatsAPI widgets for WordPress
Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/ownthegame/sportstatsapi-wp/archive/refs/heads/main.zipSportStatsAPI Live Scores & League Tables (WordPress plugin)
Gutenberg blocks and shortcodes for the SportStatsAPI embeddable widgets: league tables, live scores, fixtures, results ticker, next match, team calendar, team form.
WordPress.org: https://wordpress.org/plugins/sportstatsapi-live-scores/
Install
- In WordPress: Plugins > Add New, search "SportStatsAPI Live Scores", Install and Activate (or upload the zip from the latest release).
- Settings > SportStatsAPI > Connect (free key).
- Add a SportStatsAPI block in the editor, or use a shortcode.
See PLAN.md for the architecture and roadmap, readme.txt for the
wordpress.org description.
Development
composer install
composer lint # PHPCS, WordPress coding standards
No JS build step: the editor script is plain wp.element.
Release (no CI needed)
bin/build-zip.sh # build/sportstatsapi-live-scores.zip, plugin files only (.distignore)
No GitHub Actions workflow is used or required. .wordpress-org/ holds the
wordpress.org assets (banners, icons, screenshots); they go to SVN /assets,
never into the zip.
First submission (wordpress.org account modulout): upload the zip at
https://wordpress.org/plugins/developers/add/ (expected slug
sportstatsapi-live-scores, from the plugin name). After approval, with the SVN
credentials of that account:
svn co https://plugins.svn.wordpress.org/sportstatsapi-live-scores svn
rsync -a --delete build/sportstatsapi-live-scores/ svn/trunk/
rsync -a --delete .wordpress-org/ svn/assets/ --exclude README.txt
cd svn && svn add --force trunk assets && svn cp trunk tags/0.1.0
svn propset svn:mime-type image/png assets/*.png && svn propset svn:mime-type image/svg+xml assets/*.svg
svn ci -m "0.1.0" --username modulout
License: GPL-2.0-or-later.