mirror of
https://hk.gh-proxy.com/https://github.com/Code045NL/wp-git-plugins.git
synced 2025-08-18 08:31:08 +08:00
Install and Update Wordpress Plugins directly from a Git repository.
Deleted .DS_Store files from assets and templates directories and added assets/.DS_Store to .gitignore to prevent future commits of these files. |
||
---|---|---|
assets | ||
includes | ||
templates | ||
.gitattributes | ||
.gitignore | ||
LICENSE | ||
README.md | ||
wp-git-plugins.php |
WP Git Plugins
A WordPress plugin to manage other plugins directly from Git repositories with auto-update capabilities.
Features
- Git Repository Management: Add, remove, and update plugins directly from Git repositories
- Version Control: Always know which version of each plugin is installed
- Repo Plugins Overview: A clean list of your installed repo plugins.
- Debug Log Overview: Clear logging of plugin actions in the dashboard.
- Private Repoitories: Compatible with Wordpress plugins in private repos.
Installation
- Download the plugin as a ZIP file
- Go to WordPress admin > Plugins > Add New > Upload Plugin
- Upload the ZIP file and activate the plugin
- Navigate to Plugins > Git Plugins to start adding repositories
GitHub Authentication
For private repositories or to avoid GitHub API rate limits, you'll need to set up a GitHub Personal Access Token:
- Go to GitHub Settings > Developer settings > Personal access tokens
- Click "Generate new token"
- Give it a descriptive name (e.g., "WP Git Plugins")
- Select the
repo
scope (full control of private repositories) - Generate the token and copy it
- In WordPress, go to Plugins > Git Plugins > Settings
- Paste your token in the "GitHub Access Token" field and save
- Save your Github Username to connect to your private repositories
Usage
Managing Repositories
-
Adding a Repository
- Go to Plugins > Git Plugins
- Enter the GitHub repository URL (e.g.,
https://github.com/username/repository
orgit@github.com:username/repository.git
) - Click "Add Repository"
-
Updating a Plugin
- Find the repository in the list
- Click the "Update" button to pull the latest changes
-
Removing a Repository
- Find the repository in the list
- Click the "Remove" button to remove it from the list
- Note: This does not uninstall the plugin, it only removes it from the Git Plugins management
Requirements
- WordPress 5.0 or higher
- PHP 7.4 or higher
- Git (for command-line operations)
- PHP ZIP extension (for handling ZIP files)
Security
- Only users with
manage_options
capability can access the plugin settings - All form submissions are secured with nonces
- Inputs are properly sanitized and validated
Data Storage
- Settings will be stored in the database under the wpgp_settings table
- Repositories added to the list are stored under the wpgp_repos table
License
GPL v2 or later
Support
For support, please open an issue on the GitHub repository.