Download the PHP package nusii/nusii-php without Composer

On this page you can find all versions of the php package nusii/nusii-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 nusii-php

Nusii PHP

A PHP client library for the Nusii proposal software API.

Requires PHP 8.3+ and uses Guzzle for HTTP requests.

Installation

Install via Composer:

Quick Start

Custom Base URL

For self-hosted or development environments:

Resources

Account

Clients

Proposals

Sections

Line Items

Line items belong to sections. They must be created under a section.

Templates

Templates are read-only.

Proposal Activities

Proposal activities are read-only and track events like views, accepts, and rejections.

Users

Users are read-only.

Themes

Themes are read-only. Note: this endpoint returns a plain array, not a paginated response.

Webhook Endpoints

Available webhook events:

Event Description
proposal_created A proposal was created
proposal_updated A proposal was updated
proposal_destroyed A proposal was deleted
proposal_accepted A proposal was accepted by the client
proposal_rejected A proposal was rejected by the client
proposal_sent A proposal was sent to the client
client_created A client was created
client_updated A client was updated
client_destroyed A client was deleted
proposal_activity_client_viewed A client viewed something
proposal_activity_client_viewed_proposal A client viewed a proposal

Pagination

All list endpoints return a PaginatedResponse object that is both countable and iterable:

Paginating Through All Results

Error Handling

The library throws specific exceptions for different HTTP error codes:

All exceptions extend NusiiException, so you can catch that to handle any API error.

Rate Limiting

The Nusii API allows 100 requests per 30 seconds. Rate limit information is tracked on the client instance:

Testing

Run the unit tests:

Or with Pest directly:

Integration Tests

Integration tests run against a live API server. Set the environment variables and run:

Integration tests are automatically skipped when NUSII_API_KEY is not set.

Authentication

The library uses token authentication. Include your API key when creating the client:

All requests include the header:

You can find your API key in your Nusii account settings under Integrations.

Requirements

License

MIT


All versions of nusii-php with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
guzzlehttp/guzzle Version ^7.0
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 nusii/nusii-php contains the following files

Loading the files please wait ...