mirror of
https://github.com/zaporojanmihai/WP-Repo-Manager.git
synced 2025-08-17 21:11:24 +08:00
A WordPress plugin that allows you to manage and automatically update private or public Git repositories directly from your WordPress admin dashboard.
https://zaporojanmihai.com/
assets | ||
includes | ||
LICENSE | ||
README.md | ||
wp-private-repo-manager.php |
WordPress Repository Manager
A WordPress plugin that allows you to manage and automatically update private or public Git repositories directly from your WordPress admin dashboard.
Installation
- Download the plugin zip file
- Go to WordPress admin > Plugins > Add New > Upload Plugin
- Upload the zip file and activate the plugin
- What you still need to do once, in go to wp-config.php and add the following line to secure your token in DB (use https://api.wordpress.org/secret-key/1.1/salt/ to generate a random string)
define( 'WPRM_TOKEN_KEY', 'your-very-long-random-secret-string-here' );
- Navigate to Settings > WP Repo Manager to start managing your repositories
Usage
Adding a Repository
- Navigate to Settings > WP Repo Manager
- Click "Add New Repository"
- Fill in the repository details:
- Repository URL (HTTPS format)
- Repository Type (Plugin/Theme)
- Branch Name
- Personal Access Token (for private repos)
- Click "Add Repository"
Updating Repositories
- Go to the main plugin page
- Find the repository you want to update
- Click the "Pull" button next to the repository
- View the pull status and history below the repository list
Managing Repositories
- Edit: Click the edit icon to modify repository details
- Delete: Click the delete icon to remove a repository
- Pull History: View the complete history of all repository pulls with status indicators
Requirements
- WordPress 5.0 or higher
- PHP 7.4 or higher
- Git installed on the server
- Write permissions on the wp-content/plugins and wp-content/themes directories
Security
- All admin actions are protected with nonces
- Repository operations are restricted to administrators only
Development
Key features include:
- Clean separation of concerns (admin interface, repository handling, AJAX operations)
- WordPress coding standards compliance
- Secure credential handling
- User-friendly error handling and status feedback
- Comprehensive pull history tracking
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the GPL v2 or later.
Author
@author Mihai Zaporojan
Changelog
1.0.8
- Initial release
- Repository management functionality
- Pull history tracking
- Secure credential storage
- WordPress admin interface