PHPackages                             sisnerd/openair-xml-php - 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. [API Development](/categories/api)
4. /
5. sisnerd/openair-xml-php

ActiveLibrary[API Development](/categories/api)

sisnerd/openair-xml-php
=======================

Openair XML API library for PHP

1.0.5.4(4y ago)016MITPHP

Since Dec 4Pushed 4y ago1 watchersCompare

[ Source](https://github.com/sisnerd/openair-xml-php)[ Packagist](https://packagist.org/packages/sisnerd/openair-xml-php)[ RSS](/packages/sisnerd-openair-xml-php/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (2)Dependencies (1)Versions (12)Used By (0)

Synopsis
--------

[](#synopsis)

This project is designed to interact cleanly with NetSuite's OpenAir Application using XML and PHP.

Motivation
----------

[](#motivation)

A project I'm building for my company and wanted to write a comprehensive service to interact with the API

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

[](#installation)

Using the code is fairly simple. Curently there's no installation method, just clone the code, and start editing the example file.

The included `composer.json` file defines a PSR-4 compatible solution for autoloading the library classes. Run the following command to generate the autoload files via composer:

```
composer dump-autoload

```

This will create a file `vendor/autoload.php` that should be `required` to use classes in the OpenAir namespace.

Code Example
------------

[](#code-example)

There are a few examples in the directory `examples`

To run them, you must copy the file `examples/env.php.dist` to `examples/env.php`, then edit that file to include the correct credentials for your sandbox or production instance of openair.

The `env.php` file looks like this:

```
