PHPackages                             thelogicstudio/qbxml - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. thelogicstudio/qbxml

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

thelogicstudio/qbxml
====================

A PHP library to help with parsing and generating QBXML for Quickbooks Desktop

v1.0.3(2y ago)127EPL-1.0PHPPHP 7.\*|8.\*

Since Oct 3Pushed 2y ago1 watchersCompare

[ Source](https://github.com/thelogicstudio/QBXML)[ Packagist](https://packagist.org/packages/thelogicstudio/qbxml)[ RSS](/packages/thelogicstudio-qbxml/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)DependenciesVersions (5)Used By (0)

Quickbooks QBXML Helper
=======================

[](#quickbooks-qbxml-helper)

This is a simple set of classes to assist in parsing and creating QBXML for communicating with Quickbooks Desktop (probably through the Quickbooks Web Connector). A lot of this is based on [Keith Palmer's prior work](https://github.com/consolibyte/quickbooks-php). My take on it lets you integrate your own application logic - this library just deals with the QBXML parsing. This also adds namespacing, method chaining, and fixes a number of bugs and inconsistencies in Keith's work.

Usage
-----

[](#usage)

### Parsing

[](#parsing)

Reading a QBXML response might look something like this:

```
$doc = (new \TheLogicStudio\QBXML\XML\Parser($response))->parse($errnum, $errmsg);
$root = $doc->getRoot();
$out = [];
foreach($root->getChildAt('QBXML QBXMLMsgsRs')->children() as $child) {
    if(str_ends_with($child->name(), 'QueryRs')) {
        /** @var Models\GenericObject $class */
        $class = '\\TheLogicStudio\\QBXML\\Models\\'.substr($child->name(), 0, -7);
        foreach($child->children() as $node) {
            $out[] = $class::fromXML($node);
        }
    }
}

```

### Creating

[](#creating)

And creating a request to send to Quickbooks might look like this:

```
$qbxml = (new \TheLogicStudio\QBXML\Models\Account())
    ->setName('My Account')
    ->setAccountNumber(99)
    ->asQBXML('AccountAddRq');

```

Contributing
------------

[](#contributing)

This code is far from perfect - if you'd like to help make it better, feel free to send a pull request on through. You can find me on 𝕏 as [@IanTLS](https://twitter.com/IanTLS) if you've got questions I guess.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~47 days

Total

4

Last Release

809d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9007b0f2f7887c64b049210bf0c954e7db514d82779652671642326eb3fb530a?d=identicon)[IanSimpson](/maintainers/IanSimpson)

---

Top Contributors

[![IanSimpson](https://avatars.githubusercontent.com/u/782493?v=4)](https://github.com/IanSimpson "IanSimpson (1 commits)")[![tls-tw](https://avatars.githubusercontent.com/u/95054689?v=4)](https://github.com/tls-tw "tls-tw (1 commits)")

### Embed Badge

![Health badge](/badges/thelogicstudio-qbxml/health.svg)

```
[![Health](https://phpackages.com/badges/thelogicstudio-qbxml/health.svg)](https://phpackages.com/packages/thelogicstudio-qbxml)
```

###  Alternatives

[mtdowling/jmespath.php

Declaratively specify how to extract elements from a JSON document

2.0k472.8M135](/packages/mtdowling-jmespathphp)[opis/closure

A library that can be used to serialize closures (anonymous functions) and arbitrary data.

2.6k230.0M284](/packages/opis-closure)[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M229](/packages/masterminds-html5)[sabberworm/php-css-parser

Parser for CSS Files written in PHP

1.8k191.2M65](/packages/sabberworm-php-css-parser)[michelf/php-markdown

PHP Markdown

3.5k52.4M345](/packages/michelf-php-markdown)[jms/metadata

Class/method/property metadata management in PHP

1.8k152.8M88](/packages/jms-metadata)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
