1. Go to this page and download the library: Download nexia-cloud-os/sdk-laravel library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
nexia-cloud-os / sdk-laravel example snippets
use Nexia\Identity\Contracts\Actor;
use Nexia\Identity\Contracts\PartyWritePreconditions;
app(PartyWritePreconditions::class)->register(
app(Actor::class),
$partyPublicId,
['person' => true, 'archived' => false],
);
// Save App-owned data after registration using your normal App transaction.
$value = app(\Nexia\Settings\Contracts\AppSettings::class)
->get('tenant', 'my-app.access-key');
$result = $value->use(function (#[\SensitiveParameter] $key) {
// Pass the value only to the intended integration. Return a safe business result.
});
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.