Search by

prima-assicurazioni / patch-manager

mattiabasone

A library to manage patch requests

Package info

github.com/primait/php-patch-manager

pkg:composer/prima-assicurazioni/patch-manager

Statistics

Installs: 15

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 2

1.0.0 2026-11-12 14:30 UTC

This package is not auto-updated.

Last update: 2026-11-13 09:34:10 UTC


README

PHP Version Build Status Packagist Version Packagist Downloads

A php library to manage PATCH requests in a standardized (and elegant) way

Install

Install with composer

composer require prima-assicurazioni/patch-manager

The idea for this library comes from this blog post: Please. Don't Patch Like An Idiot. by William Durand

It lets you patch resources in an expressive way

PATCH /users/1

{ "op": "data", "property": "username", "value": "new username" }

And let you patch entire collections with multiple operations

PATCH /books

[{ "op": "set_as_read" }, { "op": "return_to_library", "address": "221 B Baker St, London, England"}]

it includes also a Symfony bundle

Still interested? Head over to the wiki... for documentation

Useful commands for development

  • composer format: runs php-cs-fixer
  • composer analyse: runs phpstan for static analysis
  • composer test: runs phpunit