Skip to content

PatchPub: central management and application of Composer patches for PHP projects

Developers need custom fixes in third-party Composer packages without forking them. PatchPub manages the patches centrally and checks them on new releases.

LaravelAPIPerformanceLaravel LivewireGitCloudflare R2

Developers need to be able to apply their own fixes or features to third-party packages, regardless of whether these have already been merged upstream, and without forking the dependency. PatchPub is a Laravel-based platform, developed by Unique-P, that manages and applies patches for PHP Composer packages centrally: efficiently, traceably and safely across versions. With features like regex patching, git diff previews and importing GitHub pull requests, the platform closes an important gap in the Composer ecosystem.

Core features and architecture of PatchPub

Technical basis of PatchPub

  • Laravel + Laravel Livewire: PatchPub’s admin and user interfaces are built with Livewire and offer a reactive, smooth browser experience.
  • SQLite for very fast data access: Internal data queries are optimized for speed with SQLite, ideal for lightweight and mid-sized patch management workflows.
  • Cloudflare R2: All relevant patch data and file versions are stored in Cloudflare R2, for maximum reliability and independence from the app infrastructure.

Powerful patch features in PatchPub

PatchPub offers flexible editing options for any file (including composer.json):

  • Simple text search and replace
  • Regex-based replacements
  • Classic diff patch application
  • Full file replacement
  • Chaining several operations in a defined order

Automated patch management with PatchPub

  • GitHub PR import: Public GitHub pull requests can be imported directly into PatchPub as patches.
  • Preview via git diff: A complete visual diff before changes are applied ensures transparency and control.
  • Validation of changes: All operations are validated in advance to prevent faulty patch applications.
  • Asynchronous background processing (queues): Patch applications and updates, especially for new versions of dependencies, run in the background, so the user interface stays responsive at all times.

Notifications and monitoring in PatchPub

Automatic email notifications from PatchPub inform users when patches fail because of incompatible changes in new versions (for example, when source files have changed). This makes it possible to respond proactively to outdated or broken patches.

Use cases for PatchPub

  • Applying your own bug fixes or features to third-party packages
  • Temporary hotfixes without having to fork dependencies
  • Reusable patch sets for teams or organizations
  • Automatic patch updates for new versions
  • Email notifications for failed patches

Technologies in this project

Related serviceWeb application development with Laravel & TYPO3