PHPackages                             luqra/now-php - 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. luqra/now-php

ActiveLibrary[API Development](/categories/api)

luqra/now-php
=============

PHP SDK for the Luqra Now API

v0.2.0(2mo ago)10MITPHPPHP ^8.2

Since Mar 3Pushed 2mo agoCompare

[ Source](https://github.com/luqrahq/luqra-now-php-sdk)[ Packagist](https://packagist.org/packages/luqra/now-php)[ RSS](/packages/luqra-now-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (20)Versions (7)Used By (0)

luqra-now-php
=============

[](#luqra-now-php)

Developer-friendly, idiomatic PHP SDK for the *luqra-now-php* API.

 [![](https://camo.githubusercontent.com/5cc1a75f04ceedaeb219a4a3beb1c035e7f709e09eaf327d6ab4c2e3f3e81ce9/68747470733a2f2f637573746f6d2d69636f6e2d6261646765732e64656d6f6c61622e636f6d2f62616467652f2d4275696c7425323042792532307363616c61722b737065616b656173792d3231323031353f7374796c653d666f722d7468652d6261646765266c6f676f3d7363616c6172266c6162656c436f6c6f723d323532353235)](https://www.scalar.com/?utm_source=luqra-now-php&utm_campaign=php) [ ![](https://camo.githubusercontent.com/08cef40a9105b6526ca22088bc514fbfdbc9aac1ddbf8d4e6c750e3a88a44dca/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c75652e737667) ](https://opensource.org/licenses/MIT)

Summary
-------

[](#summary)

Luqra Now API: External API for Luqra Now

Table of Contents
-----------------

[](#table-of-contents)

- [luqra/now-php](#luqranow-php)
    - [SDK Installation](#sdk-installation)
    - [SDK Example Usage](#sdk-example-usage)
    - [Authentication](#authentication)
    - [Available Resources and Operations](#available-resources-and-operations)
    - [Error Handling](#error-handling)
    - [Server Selection](#server-selection)
- [Development](#development)
    - [Maturity](#maturity)
    - [Contributions](#contributions)

SDK Installation
----------------

[](#sdk-installation)

The SDK relies on [Composer](https://getcomposer.org/) to manage its dependencies.

To install the SDK and add it as a dependency to an existing `composer.json` file:

```
composer require "luqra/now-php"
```

SDK Example Usage
-----------------

[](#sdk-example-usage)

### Example

[](#example)

```
declare(strict_types=1);

require 'vendor/autoload.php';

use Luqra\Now;

$sdk = Now\LuqraNow::builder()
    ->setSecurity(
        ''
    )
    ->build();

$response = $sdk->contacts->list(
    originatorId: '1d7999d2-66f8-428f-af77-7a969541638f'
);

if ($response->object !== null) {
    // handle response
}
```

Authentication
--------------

[](#authentication)

### Per-Client Security Schemes

[](#per-client-security-schemes)

This SDK supports the following security scheme globally:

NameTypeScheme`bearerAuth`httpHTTP BearerTo authenticate with the API the `bearerAuth` parameter must be set when initializing the SDK. For example:

```
declare(strict_types=1);

require 'vendor/autoload.php';

use Luqra\Now;

$sdk = Now\LuqraNow::builder()
    ->setSecurity(
        ''
    )
    ->build();

$response = $sdk->contacts->list(
    originatorId: '1d7999d2-66f8-428f-af77-7a969541638f'
);

if ($response->object !== null) {
    // handle response
}
```

Available Resources and Operations
----------------------------------

[](#available-resources-and-operations)

Available methods### [contacts](docs/sdks/contacts/README.md)

[](#contacts)

- [list](docs/sdks/contacts/README.md#list) - List contacts
- [create](docs/sdks/contacts/README.md#create) - Create contact
- [update](docs/sdks/contacts/README.md#update) - Update contact

### [originators](docs/sdks/originators/README.md)

[](#originators)

- [list](docs/sdks/originators/README.md#list) - List originators

### [payments](docs/sdks/payments/README.md)

[](#payments)

- [list](docs/sdks/payments/README.md#list) - List payments
- [create](docs/sdks/payments/README.md#create) - Create payment

Error Handling
--------------

[](#error-handling)

Handling errors in this SDK should largely match your expectations. All operations return a response object or throw an exception.

By default an API error will raise a `Errors\APIException` exception, which has the following properties:

PropertyTypeDescription`$message`*string*The error message`$statusCode`*int*The HTTP status code`$rawResponse`*?\\Psr\\Http\\Message\\ResponseInterface*The raw HTTP response`$body`*string*The response contentWhen custom error responses are specified for an operation, the SDK may also throw their associated exception. You can refer to respective *Errors* tables in SDK docs for more details on possible exception types for each operation. For example, the `list` method throws the following exceptions:

Error TypeStatus CodeContent TypeErrors\\ErrorResponse400, 401application/jsonErrors\\ErrorResponse500application/jsonErrors\\APIException4XX, 5XX\*/\*### Example

[](#example-1)

```
declare(strict_types=1);

require 'vendor/autoload.php';

use Luqra\Now;
use Luqra\Now\Models\Errors;

$sdk = Now\LuqraNow::builder()
    ->setSecurity(
        ''
    )
    ->build();

try {
    $response = $sdk->contacts->list(
        originatorId: '1d7999d2-66f8-428f-af77-7a969541638f'
    );

    if ($response->object !== null) {
        // handle response
    }
} catch (Errors\ErrorResponseThrowable $e) {
    // handle $e->$container data
    throw $e;
} catch (Errors\ErrorResponseThrowable $e) {
    // handle $e->$container data
    throw $e;
} catch (Errors\APIException $e) {
    // handle default exception
    throw $e;
}
```

Server Selection
----------------

[](#server-selection)

### Select Server by Index

[](#select-server-by-index)

You can override the default server globally using the `setServerIndex(int $serverIdx)` builder method when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the indexes associated with the available servers:

\#ServerDescription0`http://localhost:3005`Local1`https://staging.api.now.luqra.com`Test2`https://api.now.luqra.com`Production#### Example

[](#example-2)

```
declare(strict_types=1);

require 'vendor/autoload.php';

use Luqra\Now;

$sdk = Now\LuqraNow::builder()
    ->setServerIndex(2)
    ->setSecurity(
        ''
    )
    ->build();

$response = $sdk->contacts->list(
    originatorId: '1d7999d2-66f8-428f-af77-7a969541638f'
);

if ($response->object !== null) {
    // handle response
}
```

### Override Server URL Per-Client

[](#override-server-url-per-client)

The default server can also be overridden globally using the `setServerUrl(string $serverUrl)` builder method when initializing the SDK client instance. For example:

```
declare(strict_types=1);

require 'vendor/autoload.php';

use Luqra\Now;

$sdk = Now\LuqraNow::builder()
    ->setServerURL('https://api.now.luqra.com')
    ->setSecurity(
        ''
    )
    ->build();

$response = $sdk->contacts->list(
    originatorId: '1d7999d2-66f8-428f-af77-7a969541638f'
);

if ($response->object !== null) {
    // handle response
}
```

Contributions
-------------

[](#contributions)

While we value open-source contributions to this SDK, this library is generated programmatically. Any manual changes added to internal files will be overwritten on the next generation. We look forward to hearing your feedback. Feel free to open a PR or an issue with a proof of concept and we'll do our best to include it in a future release.

### SDK Created by [Scalar](https://www.scalar.com/?utm_source=luqra-now-php&utm_campaign=php)

[](#sdk-created-by-scalar)

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance86

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

Every ~4 days

Total

3

Last Release

66d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a3ec3459912e9703183457112db1843f7021a38a64ac9c0826524aeb23fa3709?d=identicon)[luqratech](/maintainers/luqratech)

---

Top Contributors

[![jeffodle](https://avatars.githubusercontent.com/u/5094384?v=4)](https://github.com/jeffodle "jeffodle (5 commits)")[![scalarbot](https://avatars.githubusercontent.com/u/213266873?v=4)](https://github.com/scalarbot "scalarbot (5 commits)")[![MatthiasPdx](https://avatars.githubusercontent.com/u/56409651?v=4)](https://github.com/MatthiasPdx "MatthiasPdx (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/luqra-now-php/health.svg)

```
[![Health](https://phpackages.com/badges/luqra-now-php/health.svg)](https://phpackages.com/packages/luqra-now-php)
```

###  Alternatives

[clerkinc/backend-php

2755.0k](/packages/clerkinc-backend-php)[polar-sh/sdk

4014.5k4](/packages/polar-sh-sdk)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[dnsimple/dnsimple

The DNSimple API client for PHP.

11190.9k1](/packages/dnsimple-dnsimple)[hardcastle/xrpl_php

PHP SDK / Client for the XRP Ledger

129.7k5](/packages/hardcastle-xrpl-php)

PHPackages © 2026

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