PHPackages                             beequeue/tweaky - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. beequeue/tweaky

ActiveLibrary

beequeue/tweaky
===============

A library for transforming JSON data

010PHP

Since Mar 31Pushed 9y agoCompare

[ Source](https://github.com/beequeue/tweaky)[ Packagist](https://packagist.org/packages/beequeue/tweaky)[ RSS](/packages/beequeue-tweaky/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Tweaky
======

[](#tweaky)

[![Build Status](https://camo.githubusercontent.com/014756087e3a6da17e7056590bd2d10140bfcf9dca9b5d7f01504ae91ececba0/68747470733a2f2f7472617669732d63692e6f72672f62656571756575652f747765616b792e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/beequeue/tweaky) [![Coverage Status](https://camo.githubusercontent.com/be5633b69d4eaf765931af884b4c253b88332f92443f81f2aca54c357d082558/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f62656571756575652f747765616b792f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/beequeue/tweaky?branch=master)

Tweaky is a library and domain-specific language in JSON notation allowing for the custom transformation of JSON payloads. It is more concerned with altering values than altering form. Primary use-case is for specifying modifications to API responses in a mocking proxy.

Usage
-----

[](#usage)

Include via composer:

```
composer require beequeue/tweaky

```

Example usage:

```
use Beequeue\Tweaky\Spec;
use Beequeue\Tweaky\Tweaky;

$inputJson =
