Embed Gitlab

A quick plugin to embed details about a gitlab repository in a wordpress page or post.

w

wmt-embed-gitlab

wemakethingsltd-group/wmt-embed-gitlab

Embed a gitlab repo into a wordpress page or post.

⭐ 0 Stars
🍴 0 Forks
🌿 1 Branches
🏷️ 0 Tags

README

=== We Make Things: Embed GitLab ===
Contributors: wemakethings
Tags: gitlab, embed, repository, oembed
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Embed GitLab repository details in your WordPress posts and pages simply by pasting the URL.

== Description ==

WMT GitLab Embed allows you to showcase GitLab repositories with a clean, modern design. Just paste a public GitLab URL (e.g., `https://gitlab.com/namespace/project`) on its own line in your block or classic editor, and it will automatically transform into an informative card showing:

* Project name and description
* Stars and Forks count
* Branch and Tag counts
* Integrated scrollable README preview

The plugin uses WordPress Transients to cache API responses locally for 12 hours, ensuring fast load times and minimal external requests.

== Installation ==

1. Upload the `wmt-embed-gitlab` folder to the `/wp-content/plugins/` directory, or install the .zip file via the WordPress admin.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Paste a GitLab repository URL on its own line into any post or page.

== Frequently Asked Questions ==

= Does this support private GitLab repositories? =
Currently, only public GitLab.com repositories are supported without requiring authentication tokens.

= How often is repository data updated? =
Repository statistics and README content are cached in WordPress transients for 12 hours to optimize page loading performance.

== Screenshots ==

1. An embedded GitLab repository card displayed within a WordPress post.

== Changelog ==

= 1.0.0 =
* Initial public release.
* Added responsive embed card and transient caching.