2017 © Pedro Peláez
 

library patch-manager

A library to manage patch requests

image

cypresslab/patch-manager

A library to manage patch requests

  • Wednesday, December 20, 2017
  • by matteosister
  • Repository
  • 5 Watchers
  • 15 Stars
  • 37,410 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 3 % Grown

The README.md

Patch Manager

PHP Version Scrutinizer Code Quality Code Coverage Build Status Packagist Version Packagist Downloads, (*1)

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

Be careful!!!

From version 0.3 namespace will change from PatchManager\... to Cypress\PatchManager\..., (*3)

Install

Install with composer, (*4)

composer require cypresslab/patch-manager

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

It lets you patch resources in an expressive way, (*6)

PATCH /users/1 ``` json { "op": "data", "property": "username", "value": "new username" }, (*7)


And let you **patch entire collections** with multiple operations **PATCH /books** ``` json [{ "op": "set_as_read" }, { "op": "return_to_library", "address": "221 B Baker St, London, England"}]

it includes also a Symfony bundle, (*8)

Still interested? Head over to the wiki... for documentation, (*9)

Useful commands for development

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

The Versions