Download the PHP package asimlqt/netsuite-rest-api-php without Composer

On this page you can find all versions of the php package asimlqt/netsuite-rest-api-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package netsuite-rest-api-php

netsuite-rest-api-php

Requirements

Installation

Usage

The first step is to create a factory instance passing in the netsuite API settings. All the params are required.

After that call the create method which will return an instance of the REST API client.

You can now call any endpoint you want on the client e.g.

Error Handling

Make sure to wrap all API calls in a try/catch. There is only one exception that will be thrown when an API call fails NetsuiteRestApi\Client\ApiException

To get the actual response object simply call the getResponse() method of the exception instance. This will return a Psr\Http\Message\ResponseInterface.

API methods available

Every endpoint has the following 6 methods:

Note: not all of these are available for every endpoint in Netsuite. For the time being this client does not prevent you from calling unavailable methods, however, you will receive an error from Netsuite.

Pagination

The only endpoint that supports pagination is list. This will return a cursor that implements Iterator so you can iterate over it as you would normally.

The cursor will iterate over individual entities. When all entities have been iterated over it will automatically fetch the next page if available.

Note: Even if you supply a limit query parameter, the cursor will still iterate over all available entities in Netsuite.

The limit query parameter only provides the ability to set how many entities to fetch on each API call.

If you want to only iterate over a set number of entities even though there is more available then wrap the cursor in a LimitIterator.


All versions of netsuite-rest-api-php with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
php-http/discovery Version ^1.17
psr/http-client-implementation Version *
psr/http-factory-implementation Version *
guzzlehttp/psr7 Version ^2.6
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package asimlqt/netsuite-rest-api-php contains the following files

Loading the files please wait ....