Download the PHP package tjsteinhaus/netsuite-php without Composer
On this page you can find all versions of the php package tjsteinhaus/netsuite-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tjsteinhaus/netsuite-php
More information about tjsteinhaus/netsuite-php
Files in tjsteinhaus/netsuite-php
Package netsuite-php
Short Description NetSuite PHP API wrapper orginally built by Ryan Winchester.
License Apache-2.0
Informations about the package netsuite-php
NetSuite PHP API Client
A PHP API client package for NetSuite, pried from the NetSuite PHP Toolkit.
Adding it to your project:
Require with composer:
V2 in Alpha
NOTE: package name change
Changes in v2:
- Changed namespaces
- Significantly simplified NetSuiteClient
- Added a convenience method for creating an instance using environment variables for configuration
- Improved logging, still logs even if exception is thrown in soap call.
Quickstart:
Instantiating the NetSuiteService class:
The rest of the examples assume that you have done this.
Retreiving a customer record:
Searching for customers who emails start with "j":
Adding a new customer:
Logging
You can set logging on or off on the fly, or override the configuration setting passed in. Please note that if you don't specify a logging directory in the config or afterwards, then you won't get logs no matter what you do.
Set a logging path
Turn logging on
Turn logging off
Token-Based Authentication
Instead of instantiating NetSuiteService
with the standard credentials method, you can pass a set of credentials of the form consumerKey
/consumerSecret
/token
/tokenSecret
.
Status
- [x] Extract the ~1500 classes from their single file...
- [x] Composer package with autoloading
- [x] Pass config through constructor
- [x] Optional environment variable config
- [x] Namespacing
- [x] Logging
License
Original work is Copyright © 2010-2015 NetSuite Inc. and provided "as is." Refer to the NetSuite Toolkit License Agreement file.
All additional work is licensed under the Apache 2.0 open source software license according to the included LICENSE file.
All versions of netsuite-php with dependencies
ext-soap Version *
ext-simplexml Version *
ext-openssl Version *
paragonie/random_compat Version ^2.0