PHPackages                             morphql/morphql - 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. [PDF &amp; Document Generation](/categories/documents)
4. /
5. morphql/morphql

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

morphql/morphql
===============

PHP wrapper for MorphQL — transform data with declarative queries

v0.1.45(1mo ago)1241MITPHPPHP &gt;=5.6

Since Feb 12Pushed 1mo agoCompare

[ Source](https://github.com/Hyperwindmill/morphql-php)[ Packagist](https://packagist.org/packages/morphql/morphql)[ Docs](https://github.com/Hyperwindmill/morphql-php)[ RSS](/packages/morphql-morphql/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (5)Versions (25)Used By (1)

MorphQL PHP
===========

[](#morphql-php)

[![Packagist Version](https://camo.githubusercontent.com/d4785d023988749f0d04ea18266949be6f1a027638fabd51570f6c92b8d6b918/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6f727068716c2f6d6f727068716c)](https://packagist.org/packages/morphql/morphql)[![PHP](https://camo.githubusercontent.com/17e11c6d3391f9c0f2a0b190d0886dcbb1bf22a30faec01cc3a901337fa95867/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6d6f727068716c2f6d6f727068716c)](https://packagist.org/packages/morphql/morphql)[![License: MIT](https://camo.githubusercontent.com/08cef40a9105b6526ca22088bc514fbfdbc9aac1ddbf8d4e6c750e3a88a44dca/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c75652e737667)](./LICENSE)

A minimalist PHP wrapper for [MorphQL](https://github.com/Hyperwindmill/morphql) — transform data with declarative queries.

**PHP 5.6+ compatible · Bundled engine · Composer-ready**

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

[](#installation)

```
composer require morphql/morphql
```

### Prerequisites

[](#prerequisites)

The package ships with the **MorphQL engine pre-bundled**. You have two options for execution:

1. **Node.js** (Default): Requires Node.js v18+ installed on the system.
2. **QuickJS** (Embedded): Self-contained, **zero external dependencies**. Binaries are automatically downloaded upon installation.

Quick Start
-----------

[](#quick-start)

```
