PHPackages                             quibble/transformer - 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. [Database &amp; ORM](/categories/database)
4. /
5. quibble/transformer

ActiveLibrary[Database &amp; ORM](/categories/database)

quibble/transformer
===================

Transformers for query result( set)s

0.3.2(6y ago)0224[2 PRs](https://github.com/quibble-dbal/transformer/pulls)1MITPHPPHP &gt;=7.3

Since Oct 2Pushed 2y ago1 watchersCompare

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

READMEChangelogDependencies (3)Versions (15)Used By (1)

Quibble/Transformer
===================

[](#quibbletransformer)

Transformers for query result( sets)

Easily cast and transform a single result set or a collection of results from a database query.

Installation
------------

[](#installation)

```
$ cd /path/to/your/project
$ composer require quibble/transformer
```

Usage
-----

[](#usage)

Instantiate a transformer and either call the `collection` or `resource` method. The first parameter is the query result, the second a callable used to determine how to transform the result(s):

```
