PHPackages                             wutif/crittora-sdk-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. wutif/crittora-sdk-php

ArchivedLibrary[Utility &amp; Helpers](/categories/utility)

wutif/crittora-sdk-php
======================

Crittora SDK for PHP

v1.0.11(1y ago)024MITPHPPHP &gt;=7.4

Since Dec 20Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/Crittora/qripton-sdk-php)[ Packagist](https://packagist.org/packages/wutif/crittora-sdk-php)[ RSS](/packages/wutif-crittora-sdk-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (4)Versions (14)Used By (0)

Crittora SDK for PHP
====================

[](#crittora-sdk-for-php)

The Crittora SDK for PHP provides a simple interface for authentication, encryption, and decryption of data using the Crittora API. This document will guide you through the setup and usage of the SDK, as well as running the demo application.

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

[](#table-of-contents)

- [Crittora SDK for PHP](#crittora-sdk-for-php)
    - [Table of Contents](#table-of-contents)
    - [Installation](#installation)
    - [Demo Application](#demo-application)
        - [Features](#features)
            - [Requirements](#requirements)
    - [Usage](#usage)
        - [Initialize SDK](#initialize-sdk)
        - [Authentication](#authentication)
        - [Encryption](#encryption)
        - [Decryption](#decryption)
    - [Testing](#testing)
    - [Contributing](#contributing)
    - [License](#license)

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

[](#installation)

To install the Crittora SDK, you need to have Composer installed. Run the following command to install the dependencies:

```
composer require wutif/crittora-sdk-php
```

Demo Application
----------------

[](#demo-application)

The simplest way to get started with Crittora is to view a demo. The demo application provides a simple interface to test the authentication, encryption, and decryption functionalities of the SDK.

#### Features

[](#features)

- User authentication using environment variables.
- Data encryption and decryption.
- User-friendly web interface built with Bootstrap.

##### Requirements

[](#requirements)

- PHP 7.2 or higher
- Composer
- Access to the Crittora SDK

Usage
-----

[](#usage)

### Initialize SDK

[](#initialize-sdk)

Initialize the SDK by passing in your accessKey and secretKey. This will return the `IdToken` which you will need to use when calling the encrypt and decrypt methods

```
use Crittora\CrittoraSDK;

$sdk = new CrittoraSDK($accessKey, $secretKey);
```

***Example***

```
try {
    $sdk = new CrittoraSDK($accessKey, $secretKey);
    $authResponse = $sdk->authenticate($username, $password);
    echo json_encode(['success' => true, 'IdToken' => $authResponse['IdToken']]);
} catch (Exception $e) {
    http_response_code(401);
    echo json_encode(['success' => false, 'error' => $e->getMessage()]);
}
```

### Authentication

[](#authentication)

To authenticate a user, use the `authenticate` method of the `CrittoraSDK` class. This method requires a username and password and returns an array containing tokens.

```
$authResponse = $sdk->authenticate('username', 'password');
```

### Encryption

[](#encryption)

To encrypt data, use the `encrypt` method. This method requires an ID token, the data to encrypt, and an optional array of permissions.

```
$encryptedData = $sdk->encrypt($idToken, 'data to encrypt', ['read', 'write']);
```

### Decryption

[](#decryption)

To decrypt data, use the `decrypt` method. This method requires an ID token, the encrypted data, and an optional array of permissions.

```
$decryptedData = $sdk->decrypt($idToken, $encryptedData, ['read']);
```

Testing
-------

[](#testing)

To run the tests, use PHPUnit. Ensure you have PHPUnit installed and configured. Run the following command in the root directory:

```
  vendor/bin/phpunit
```

Contributing
------------

[](#contributing)

Contributions are welcome! Please fork the repository and submit a pull request for any improvements or bug fixes.

License
-------

[](#license)

This project is licensed under the MIT License. See the LICENSE file for details.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance67

Regular maintenance activity

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

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

Total

12

Last Release

503d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/32b95a42bcd41a5c8590835d31ff2f14c82deb203573f01fde68385402b8e061?d=identicon)[gerardoiornelas](/maintainers/gerardoiornelas)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/wutif-crittora-sdk-php/health.svg)

```
[![Health](https://phpackages.com/badges/wutif-crittora-sdk-php/health.svg)](https://phpackages.com/packages/wutif-crittora-sdk-php)
```

###  Alternatives

[blair2004/nexopos

The Free Modern Point Of Sale System build with Laravel, TailwindCSS and Vue.js.

1.2k2.3k](/packages/blair2004-nexopos)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[jasara/php-amzn-selling-partner-api

A fluent interface for Amazon's Selling Partner API in PHP

1344.8k1](/packages/jasara-php-amzn-selling-partner-api)

PHPackages © 2026

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