Linux 软件免费装
Banner图

EG Repo Card

开发者 emanuelegori
更新时间 2026年10月11日 17:52
捐献地址: 去捐款
PHP版本: 8.0 及以上
WordPress版本: 7.1
版权: GPL-2.0-or-later
版权网址: 版权信息

标签

github repository forgejo codeberg gitea

下载

2.2.1 2.2.0

详情介绍:

EG Repo Card shows a compact card for a code repository hosted on GitHub, Codeberg or any Forgejo or Gitea instance. Add the shortcode with the repository address and the card shows: The same shortcode works with plugins from the WordPress.org directory. Their card shows the plugin name, icon and description, the plugin page, the download of the latest version, the WordPress version it is tested up to, the active installations and the average rating. Closed plugins get a "Closed" label. The card adapts to your theme: card and buttons can use a neutral preset, a transparent background, a custom color, or follow the light or dark mode of the visitor browser. Text and icons always stay readable on the chosen background. Repository data is cached. If the platform does not answer, the card keeps showing the last data it received; visitors never see an error message.

安装:

  1. Upload the eg-repo-card folder to /wp-content/plugins/, or install the plugin from the Plugins screen.
  2. Activate the plugin.
  3. Optionally, go to Settings > EG Repo Card to add API tokens and choose the appearance.

屏幕截图:

  • WordPress.org plugin cards: rating, active installations, tested WordPress version, and a closed plugin.
  • "Follow the visitor browser": the same cards in dark mode, with the optional shadow.
  • The settings page: API tokens, cache and appearance.

升级注意事项:

2.2.0 [eg-ranking-repo] no longer works: replace it with [eg-repo-card] before updating. 2.1.0 The shortcode now also accepts WordPress.org plugin addresses.

常见问题:

Which platforms are supported?

GitHub, Codeberg, any self-hosted Forgejo or Gitea instance, and the WordPress.org plugin directory. The plugin tells Forgejo and Gitea apart and shows the right logo.

Is an API token required?

No. Without a token, GitHub allows 60 requests per hour from your server. A personal access token raises the limit to 5,000. A Forgejo or Gitea token is only needed for private repositories or instances that require login.

Where does the Download button point?

For a repository: to the .zip file attached to the latest release, when the release has exactly one. Otherwise it opens the release page. Without releases the button is not shown. For a WordPress.org plugin: to the official .zip of the latest version.

How does the cache work?

Data for each repository is stored as a WordPress transient for the duration set in the settings (default 6 hours, maximum 168). The settings page has a button to flush the cache.

更新日志:

2.2.1 2.2.0 2.1.3 2.1.2 2.1.1 2.1.0 2.0.1 2.0.0