cypresslab/patch-manager

A library to manage patch requests

1.0.1 2019-10-30 11:27 UTC

This package is auto-updated.

Last update: 2021-08-29 01:23:16 UTC


README

Scrutinizer Code Quality Build Status SensioLabsInsight

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

Be careful!!!

From version 0.3 namespace will change from PatchManager\... to Cypress\PatchManager\...

Install

Install with composer

{
    "require": {
        "cypresslab/patch-manager": "1.0.*@dev"
    }
}

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