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 yesterday

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 26% 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

863d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/782493?v=4)[Ian](/maintainers/IanSimpson)[@IanSimpson](https://github.com/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

[mck89/peast

Peast is PHP library that generates AST for JavaScript code

19139.2M47](/packages/mck89-peast)[sauladam/shipment-tracker

Parses tracking information for several carriers, like UPS, USPS, DHL and GLS by simply scraping the data. No need for any kind of API access.

9843.5k](/packages/sauladam-shipment-tracker)[jstewmc/rtf

Read and write Rich Text Format (RTF) documents with PHP

45153.1k6](/packages/jstewmc-rtf)[tcds-io/php-jackson

A lightweight, flexible object serializer for PHP, inspired by FasterXML/jackson

113.2k10](/packages/tcds-io-php-jackson)

PHPackages © 2026

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