PHPackages                             netsuitephp/netsuite-laravel - 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. netsuitephp/netsuite-laravel

ActiveLibrary[API Development](/categories/api)

netsuitephp/netsuite-laravel
============================

NetSuite PHP laravel provider wrapper

v1.0(5y ago)11220.8k↓16%8Apache-2.0PHPPHP ^7.2.5|^8.0

Since Apr 21Pushed 9mo ago3 watchersCompare

[ Source](https://github.com/netsuitephp/netsuite-laravel)[ Packagist](https://packagist.org/packages/netsuitephp/netsuite-laravel)[ RSS](/packages/netsuitephp-netsuite-laravel/feed)WikiDiscussions master Synced today

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

netsuite-laravel
================

[](#netsuite-laravel)

[![License](https://camo.githubusercontent.com/81dc76799bc7e606602ddc16e675434b21d37748d45be59a6030eccfbd64f80b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7279616e77696e636865737465722f6e657473756974652d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ryanwinchester/netsuite-php)

A PHP supplemental package to the `ryanwinchester/netsuite-php` package to add the NetSuite service client to the service container of a [Laravel](https://www.laravel.com) application. This package should be considered to be beta software for the time being.

- [Installation](#installation)
- [Configuration](#configuration)
- [Usage](#usage)
- [Support](#support)

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

[](#installation)

```
composer require netsuitephp/netsuite-laravel

```

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

[](#configuration)

By default, the configuration will assume you have your `$_ENV` populated with netsuite configuration keys laid out in the `netsuite-php` package. Read the included `config/netsuite.php` file as it is documented with inline comments.

Go to [the netsuite-php quickstart](https://github.com/netsuitephp/netsuite-php#quickstart)section for more details. You can jump directly to the [.env.example](https://github.com/netsuitephp/netsuite-php/blob/master/.env.example)file to save time.

#### Publishing the config file

[](#publishing-the-config-file)

If for whatever reason you don't want to use the `.env` method of configuring the NetSuite service in your application, you can also publish the provided config file into your Laravel application and modify it as desired.

```
php artisan vendor:publish --provider=NetSuite\\Providers\\NetSuiteServiceProvider

```

Usage
-----

[](#usage)

Once installed, you should be able to access the netsuite service in the usual ways that you might get an object from the service container, either by the full service class name or using the alias provided, or by using the provided Facade, if preferred.

#### Get from the service container using the long form method

[](#get-from-the-service-container-using-the-long-form-method)

```
$service = app(NetSuite\NetSuiteService::class);
$response = $service->get($request);
```

#### Get from the service container using the alias

[](#get-from-the-service-container-using-the-alias)

```
$service = app('netsuite');
$response = $service->get($request);
```

#### Get from the Facade accessor

[](#get-from-the-facade-accessor)

```
$response = NetSuite::get($request);
```

#### Dependency Injection

[](#dependency-injection)

You can also use Laravel's dependency injection. This imaginary Http controller provides a theoretical demonstration.

```
namespace App\Http\Controllers;

use NetSuite\Classes\GetRequest;
use NetSuite\Classes\RecordRef;
use NetSuite\Classes\RecordType;
use NetSuite\NetSuiteService;

class LookupController extends Controller
{
    public function lookupCustomer(NetSuiteService $service, int $internalId)
    {
        $request = new GetRequest();
        $request->baseRef = new RecordRef();
        $request->baseRef->type = RecordType::customer;
        $request->baseRef->internalId = $internalId;
        $response = $service->get($request);
    }
}
```

Support
-------

[](#support)

If you need help with this package you can use the netsuite-php project's [discussions](https://github.com/netsuitephp/netsuite-php/discussions)area to look for help or if you believe you have discovered a bug, please report it in this package's [issues area](https://github.com/netsuitephp/netsuite-php/issues).

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance40

Moderate activity, may be stable

Popularity43

Moderate usage in the ecosystem

Community15

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

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

1900d ago

### Community

Maintainers

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

---

Top Contributors

[![jrebs](https://avatars.githubusercontent.com/u/4203789?v=4)](https://github.com/jrebs "jrebs (5 commits)")[![mgriego](https://avatars.githubusercontent.com/u/186428?v=4)](https://github.com/mgriego "mgriego (1 commits)")[![SirCoolness](https://avatars.githubusercontent.com/u/7454914?v=4)](https://github.com/SirCoolness "SirCoolness (1 commits)")

---

Tags

laravel-packagenetsuite-apiphpapilaravelnetsuite

### Embed Badge

![Health badge](/badges/netsuitephp-netsuite-laravel/health.svg)

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

###  Alternatives

[joisarjignesh/bigbluebutton

BigBlueButton Server API Library for Laravel

162155.1k1](/packages/joisarjignesh-bigbluebutton)[jeroen-g/flickr

Modern PHP package to make Flickr API calls. Ships with Laravel implementation.

2563.3k2](/packages/jeroen-g-flickr)[exlo89/laravel-sevdesk-api

A helpful Sevdesk API client for Laravel.

1118.4k](/packages/exlo89-laravel-sevdesk-api)[dystcz/lunar-api

Dystore API layer for Lunar e-commerce package

411.2k3](/packages/dystcz-lunar-api)[yxx/laravel-quick

agile development

145.6k](/packages/yxx-laravel-quick)[gufy/whmcs

WHMCS API for Laravel 5

201.7k](/packages/gufy-whmcs)

PHPackages © 2026

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