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
=============

v1.0.0(1mo ago)143[2 PRs](https://github.com/luqrahq/luqra-now-php-sdk/pulls)MITPHPPHP ^8.2CI passing

Since Mar 3Pushed 3w 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 today

READMEChangelog (4)Dependencies (40)Versions (23)Used By (0)

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

[](#luqranow-php)

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

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)

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

[](#sdk-installation)

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

To install the SDK run the following command:

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

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

[](#sdk-example-usage)

### Example

[](#example)

```
declare(strict_types=1);

require 'vendor/autoload.php';

use Luqra\LuqraNowPhp;

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

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

);

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\LuqraNowPhp;

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

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

);

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
- [get](docs/sdks/payments/README.md#get) - Get payment

### [Statements](docs/sdks/statements/README.md)

[](#statements)

- [list](docs/sdks/statements/README.md#list) - List statements
- [getDownloadUrl](docs/sdks/statements/README.md#getdownloadurl) - Get a short-lived signed URL for downloading a statement PDF

### [Webhooks](docs/sdks/webhooks/README.md)

[](#webhooks)

- [list](docs/sdks/webhooks/README.md#list) - List webhook endpoints
- [create](docs/sdks/webhooks/README.md#create) - Create webhook endpoint
- [delete](docs/sdks/webhooks/README.md#delete) - Delete webhook endpoint
- [get](docs/sdks/webhooks/README.md#get) - Get webhook endpoint
- [update](docs/sdks/webhooks/README.md#update) - Update webhook endpoint
- [test](docs/sdks/webhooks/README.md#test) - Test webhook endpoint

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\LuqraNowPhp;
use Luqra\LuqraNowPhp\Models\Errors;

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

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

    );

    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`https://staging.api.now.luqra.com`Sandbox1`https://api.now.luqra.com`Production#### Example

[](#example-2)

```
declare(strict_types=1);

require 'vendor/autoload.php';

use Luqra\LuqraNowPhp;

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

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

);

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\LuqraNowPhp;

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

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

);

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

For information on releasing a new version of this SDK, see [RELEASING.md](RELEASING.md).

###  Health Score

45

—

FairBetter than 91% of packages

Maintenance94

Actively maintained with recent releases

Popularity10

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity56

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 ~10 days

Total

9

Last Release

38d ago

Major Versions

v0.5.1 → v1.0.02026-05-27

PHP version history (2 changes)v0.1.0PHP ^8.2

v0.3.0PHP &gt;=8.2

### 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)")[![tihonplhdev](https://avatars.githubusercontent.com/u/38108567?v=4)](https://github.com/tihonplhdev "tihonplhdev (3 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")[![dmitry-d-rocket-parts](https://avatars.githubusercontent.com/u/212673367?v=4)](https://github.com/dmitry-d-rocket-parts "dmitry-d-rocket-parts (2 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

[laravel/framework

The Laravel Framework.

34.8k543.8M20.1k](/packages/laravel-framework)[polar-sh/sdk

4527.8k9](/packages/polar-sh-sdk)[clerkinc/backend-php

3493.3k](/packages/clerkinc-backend-php)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[dnsimple/dnsimple

The DNSimple API client for PHP.

11222.7k1](/packages/dnsimple-dnsimple)

PHPackages © 2026

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