PHPackages                             knoxguru/nsbundle - 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. knoxguru/nsbundle

ActiveSymfony-bundle[API Development](/categories/api)

knoxguru/nsbundle
=================

Access the NS PHPToolkit API inside your Symfony application

2201[1 PRs](https://github.com/knoxguru/NSBundle/pulls)PHP

Since Apr 18Pushed 12y ago1 watchersCompare

[ Source](https://github.com/knoxguru/NSBundle)[ Packagist](https://packagist.org/packages/knoxguru/nsbundle)[ RSS](/packages/knoxguru-nsbundle/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Netsuite PHP Toolkit bundle for Symfony2 Applications. The orginal source and samples can be found here:

The original work and it's license is in the src/KnoxGuru/bundle/NSBundle/NS folder.

\#Installation

using composer add the line below to your require section:

```
"knoxguru/nsbundle": "dev-master"

```

then

```
composer.phar update

```

Add the bundle to your AppKernel.php file

```
new KnoxGuru\Bundle\NSBundle\KnoxGuruNSBundle(),

```

Next you will copy and paste these parameters to your app/config/config.yml and edit them appropriately:

```
parameters:
    /*...*/
    knoxguru.nsendpoint: "2013_2"
    knoxguru.nshost:     "https://webservices.netsuite.com"
    knoxguru.nsemail:    "jDoe@yourdomain.com"
    knoxguru.nspassword:  "mySecretPwd"
    knoxguru.nsrole:      "3"
    knoxguru.nsaccount:  "MYACCT1"

```

I have not tested with the 2014\_1 version but from what I've seen so far I don't expect too much. I'll refocus on 2014\_1 when I can.

\#Usage Inside your controller simply initialize using this command

```
$this->container->get('knoxguru.nsservice');

```

After you have initialized you can use the classes anywhere by adding it to your uses:

```
use KnoxGuru\Bundle\NSbundle\NetSuiteService;
use KnoxGuru\Bundle\NSbundle\GetRequest;
use KnoxGuru\Bundle\NSbundle\RecordRef;

class MyController extends Controller {

	public function indexAction() {

		$this->container->get('knoxguru.nsservice');

		$service = new NetSuiteService();

		$request = new GetRequest();
		$request->baseRef = new RecordRef();
		$request->baseRef->internalId = "21";
		$request->baseRef->type = "customer";
		$getResponse = $service->get($request);

		if (!$getResponse->readResponse->status->isSuccess) {
		    echo "GET ERROR";
		} else {
		    $customer = $getResponse->readResponse->record;
		    echo "GET SUCCESS, customer:";
		    echo "\nCompany name: ". $customer->companyName;
		    echo "\nInternal Id: ". $customer->internalId;
		    echo "\nEmail: ". $customer->email;
		}
	}
}

```

Further reading
===============

[](#further-reading)

You can find the toolkit documentation here:

\#License My work is MIT; however, the code in the src/KnoxGuru/Bundle/NSBundle/NS folder has its own license file attached and you should review it before using this bundle. Everything inside the NS directory is not my original work. It's a modified version of the NS PHP Toolkit to work with this bundle and Symfony.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/7b60179dd1408e00108ae718ee29e0235e1c4e54a65d90604c85750e6a0e31f0?d=identicon)[knoxguru](/maintainers/knoxguru)

---

Top Contributors

[![knoxguru](https://avatars.githubusercontent.com/u/5192149?v=4)](https://github.com/knoxguru "knoxguru (21 commits)")

### Embed Badge

![Health badge](/badges/knoxguru-nsbundle/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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