PHPackages                             hageman/netsuite-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. hageman/netsuite-php

ActiveLibrary[API Development](/categories/api)

hageman/netsuite-php
====================

PHP library to communicate with NetSuite

1.x-dev(2y ago)018MITPHPPHP ^8.2

Since Dec 14Pushed 2y ago1 watchersCompare

[ Source](https://github.com/HagemanFulfilmentBV/netsuite-php)[ Packagist](https://packagist.org/packages/hageman/netsuite-php)[ RSS](/packages/hageman-netsuite-php/feed)WikiDiscussions master Synced yesterday

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

Hageman - NetSuite - PHP library
================================

[](#hageman---netsuite---php-library)

An open source PHP library free to use and collaborate. This package contains classes to interact with the NetSuite ERP.

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

[](#installation)

Run the following in your CLI:

```
composer require hageman/netsuite-php

```

Configuration
-------------

[](#configuration)

***Note:** Some configuration values are customer- or even application specific and to be provided by Hageman.*

### For Laravel integrations

[](#for-laravel-integrations)

Run the following in your CLI:

```
php artisan vendor:publish --tag=hageman-netsuite-php

```

and adjust the config file (`config/netsuite.php`) to your needs.

### For other integrations

[](#for-other-integrations)

Set an array with your options as parameter for the config function, prior to calling other methods or functions of the library:

```
\Hageman\NetSuite::config([
    'signature-method' => 'HMAC-SHA256',
    'account' => '',
    'realm' => '',
    'consumer' => [
        'key' => '',
        'secret' => '',
    ],
    'token' => [
        'key' => '',
        'secret' => '',
    ],
    'restlet' => [
        'url' => '',
        'SalesOrder' => [
            'script' => 0,

            // It is possible to override the default data load of this class
            'defaults' => [
                'administrationCode' => 0,
                'subsidiary' => 0,
                'projectGroup' => 0,
                'webshopCode' => 0,
            ],
        ],
    ],
]);
```

Available methods
-----------------

[](#available-methods)

### create SalesOrder

[](#create-salesorder)

```
$salesOrder = new \Hageman\NetSuite\Restlet\SalesOrder([
    'administrationCode' => null,           // Customer number at Hageman
    'subsidiary' => null,                   // Subsidiary in NetSuite
    'projectGroup' => null,                 // Project group code
    'webshopCode' => null,                  // Webshop code for label provider
    'language' => null,                     // Language used on order documents
    'orderDate' => null,                    // Date of order
    'orderInformation' => null,             // Additional information
    'reference' => null,                    // Order number
    'reference2' => null,                   // Additional reference, mostly PO number
    'requestedDeliveryDate' => null,        // Optional delivery date
    'invoice' => [
        'currency' => null,                 // Currency
        'debtorCode' => null,               // Customer / User ID in webshop
        'digital' => null,                  // Should receive invoice by email (true/false)
        'language' => null,                 // Language used on invoice
        'paid' => null,                     // Order has been fully paid
        'payDate' => null,                  // Date of payment
        'address' => [
            'company' => null,              // Company name
            'contact' => null,              // Full name of contact
            'street' => null,               // Street / Primary address line
            'streetNumber' => null,         // Street number (required for NL)
            'extension' => null,            // Street number extension
            'address2' => null,             // Secondary address line
            'city' => null,                 // City
            'postalCode' => null,           // Postal code
            'subCountryCode' => null,       // Province or state code
            'countryCode' => null,          // Country code
            'faxNumber' => null,            // Fax number
            'phoneNumber' => null,          // Phone number
            'emailAddress' => null,         // Email address
            'contactPhoneNumber' => null,   // Phone number of contact
            'vatNumber' => null,            // VAT number
        ],
        'heartbeat' => [
            'reminder' => null,             // First reminder # days after invoice date
            'exhortation' => null,          // Second reminder # days after reminder
            'notice' => null,               // Final reminder # days after exhortation
        ],
        'payment' => [
            'bic' => null,                  // BIC used for payment
            'iban' => null,                 // IBAN used for payment
            'provider' => null,             // Payment provider
            'reference' => null,            // Payment reference number
            'transactionId' => null,        // Transaction ID of payment
            'url' => null,                  // URL of payment
        ],
    ],
    'shipping' => [
        'deliveryCondition' => null,        // Preferred delivery condition
        'deliveryMode' => null,             // Preferred delivery method
        'address' => [
            'company' => null,              // Company name
            'contact' => null,              // Full name of contact
            'street' => null,               // Street / Primary address line
            'streetNumber' => null,         // Street number (required for NL)
            'extension' => null,            // Street number extension
            'address2' => null,             // Secondary address line
            'city' => null,                 // City
            'postalCode' => null,           // Postal code
            'subCountryCode' => null,       // Province or state code
            'countryCode' => null,          // Country code
            'faxNumber' => null,            // Fax number
            'phoneNumber' => null,          // Phone number
            'emailAddress' => null,         // Email address
            'contactPhoneNumber' => null,   // Phone number of contact
        ],
    ],
    'item' => [                             // One or multiple
        [
            'itemDescription' => null,      // Description of item
            'itemNumber' => null,           // Item number
            'price' => null,                // Sale price per unit
            'quantity' => null,             // Quantity sold
            'type' => null,                 // Type of item: product, shipping, discount
            'unit' => null,                 // Item unit
        ]
    ],
]);
```

Source code managed via GitHub:

[![language](https://camo.githubusercontent.com/fd0e2365886a1d7d8f359e45de04dbc8ef17d53e2246844cae1752fcdbb73bd7/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f6c616e672f686167656d616e2f6e657473756974652d706870)](https://camo.githubusercontent.com/fd0e2365886a1d7d8f359e45de04dbc8ef17d53e2246844cae1752fcdbb73bd7/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f6c616e672f686167656d616e2f6e657473756974652d706870)

[![php](https://camo.githubusercontent.com/e998e259ce15109e5ffaaf456c484146ec281e229adb7f60e399f4a1f400931d/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f7068702f686167656d616e2f6e657473756974652d706870)](https://camo.githubusercontent.com/e998e259ce15109e5ffaaf456c484146ec281e229adb7f60e399f4a1f400931d/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f7068702f686167656d616e2f6e657473756974652d706870)

[![license](https://camo.githubusercontent.com/0d976c8100482ee0a36f3e4869d2ccd1e98f6db14f4f5a6e605d800758cb16e3/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f6c6963656e73652f686167656d616e2f6e657473756974652d706870)](https://camo.githubusercontent.com/0d976c8100482ee0a36f3e4869d2ccd1e98f6db14f4f5a6e605d800758cb16e3/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f6c6963656e73652f686167656d616e2f6e657473756974652d706870)

[![version](https://camo.githubusercontent.com/612849d577d1d3abc3db93dae74d163d0548ff63aea341b89d0773add80f072a/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f762f686167656d616e2f6e657473756974652d706870)](https://camo.githubusercontent.com/612849d577d1d3abc3db93dae74d163d0548ff63aea341b89d0773add80f072a/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f762f686167656d616e2f6e657473756974652d706870)

[![downloads](https://camo.githubusercontent.com/f9a4d783672127787002a27141df44af63c21ddd550d1e5b05cb61debade40e6/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f64742f686167656d616e2f6e657473756974652d706870)](https://camo.githubusercontent.com/f9a4d783672127787002a27141df44af63c21ddd550d1e5b05cb61debade40e6/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f64742f686167656d616e2f6e657473756974652d706870)

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

932d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0ab3842b4d3014706e04801fe31e32896e66cbf6317b45b25a8834508270c391?d=identicon)[KPHageman](/maintainers/KPHageman)

---

Top Contributors

[![HagemanFulfilmentBV](https://avatars.githubusercontent.com/u/132553714?v=4)](https://github.com/HagemanFulfilmentBV "HagemanFulfilmentBV (8 commits)")

### Embed Badge

![Health badge](/badges/hageman-netsuite-php/health.svg)

```
[![Health](https://phpackages.com/badges/hageman-netsuite-php/health.svg)](https://phpackages.com/packages/hageman-netsuite-php)
```

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M986](/packages/statamic-cms)[darkaonline/l5-swagger

OpenApi or Swagger integration to Laravel

3.0k37.6M134](/packages/darkaonline-l5-swagger)[knuckleswtf/scribe

Generate API documentation for humans from your Laravel codebase.✍

2.3k14.2M63](/packages/knuckleswtf-scribe)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135224.7k7](/packages/statamic-rad-pack-runway)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

783.8k](/packages/scriptdevelop-whatsapp-manager)[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

3416.7k](/packages/duncanmcclean-statamic-cargo)

PHPackages © 2026

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