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/
Find a file
2025-07-17 18:02:26 +03:00
assets . 2025-07-16 18:06:40 +03:00
includes . 2025-07-17 17:56:38 +03:00
LICENSE Update LICENSE 2025-03-04 14:04:34 +02:00
README.md Update README.md 2025-07-17 18:02:26 +03:00
wp-private-repo-manager.php . 2025-07-16 18:06:40 +03:00

WordPress Repository Manager

GitHub all releases

image

A WordPress plugin that allows you to manage and automatically update private or public Git repositories directly from your WordPress admin dashboard.

Installation

  1. Download the plugin zip file
  2. Go to WordPress admin > Plugins > Add New > Upload Plugin
  3. Upload the zip file and activate the plugin
  4. 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' );

  1. Navigate to Settings > WP Repo Manager to start managing your repositories

Usage

Adding a Repository

  1. Navigate to Settings > WP Repo Manager
  2. Click "Add New Repository"
  3. Fill in the repository details:
    • Repository URL (HTTPS format)
    • Repository Type (Plugin/Theme)
    • Branch Name
    • Personal Access Token (for private repos)
  4. Click "Add Repository"

Updating Repositories

  1. Go to the main plugin page
  2. Find the repository you want to update
  3. Click the "Pull" button next to the repository
  4. 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