Download the PHP package ncrypt-site/php-sdk without Composer
On this page you can find all versions of the php package ncrypt-site/php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ncrypt-site/php-sdk
More information about ncrypt-site/php-sdk
Files in ncrypt-site/php-sdk
Package php-sdk
Short Description PHP SDK for ncrypt.site
License AGPL-3.0-or-later
Homepage https://ncrypt.site
Informations about the package php-sdk
nCrypt PHP SDK
nCrypt API documentation
This SDK allows you to use nCrypt in your application. It means you can easily create a secure note inside your application.
Swagger-CodeGen initially generated part of this SDK, and then it was modified to fit the needs, those codes will be removed in the next couple of releases as it was my idea to release the first version as soon as possible.
- SDK version:
Requirements
PHP 7.1 and later
Installation & Usage
Composer
You can easily install nCrypt SDK via composer:
Getting Started
After installing the SDK, you can use it as the sample below:
prepareSecureNoteRequest
This method accepts three arguments, just like the fields inside the website. | # | Argument | Type | Example |
---|---|---|---|---|
1 | $note | string | Ever have that feeling where you’re not sure if you’re awake or dreaming? | |
2 | $selfDestruct | int | 1 | |
3 | $destructAfterOpening | boolean | true |
$selfDestruct acceptable values:
The following numbers are acceptable values for $selfDestruct
argument, note that the values are based on hour and
will indicate how long we will store the notes on our servers.
Issues
currently, there is no known issue, but feel free to open an issue in Github so that I can fix it ASAP.
All versions of php-sdk with dependencies
ext-curl Version *
ext-json Version *
ext-mbstring Version *
guzzlehttp/guzzle Version ^6.0
ext-openssl Version *