PHPackages                             vdhicts/nuclino-api-client - 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. vdhicts/nuclino-api-client

AbandonedArchivedLibrary[API Development](/categories/api)

vdhicts/nuclino-api-client
==========================

A client for the API of Nuclino

v4.0.0(1y ago)39MITPHPPHP &gt;=8.2

Since Jan 19Pushed 1y agoCompare

[ Source](https://github.com/vdhicts/nuclino-api-client)[ Packagist](https://packagist.org/packages/vdhicts/nuclino-api-client)[ Docs](https://github.com/vdhicts/nuclino-api-client)[ RSS](/packages/vdhicts-nuclino-api-client/feed)WikiDiscussions main Synced today

READMEChangelog (4)Dependencies (6)Versions (5)Used By (0)

Nuclino API Client
==================

[](#nuclino-api-client)

Easy to use client for the API of [Nuclino](https://www.nuclino.com/).

Requirements
------------

[](#requirements)

This package requires at least PHP 8.1.

Installation
------------

[](#installation)

This package can be used in any PHP project or with any framework.

You can install the package via composer:

`composer require vdhicts/nuclino-api-client`

Usage
-----

[](#usage)

This package is just an easy client for using the Nuclino API. Please refer to the [API documentation](https://help.nuclino.com/d3a29686-api/) for more information about the responses.

### Getting started

[](#getting-started)

```
// Initialize the API
$api = new \Vdhicts\Nuclino\Nuclino($apiKey);

// List the items
$response = $api->listItems();

if ($response->ok()) {
    $response->json('data');
}
```

### Handling errors

[](#handling-errors)

A `Response` object will always be returned. See [Error handling](https://laravel.com/docs/8.x/http-client#error-handling) of the Http Client.

```
if ($response->failed()) {
    var_dump($response->serverError());
}
```

### Laravel

[](#laravel)

This package can be easily used in any Laravel application. I would suggest adding your credentials to the `.env` file of the project:

```
NUCLINO_API_KEY=apikey

```

Next create a config file `nuclino.php` in `/config`:

```
