PHPackages                             agrobens/sdk-php-autentique - 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. agrobens/sdk-php-autentique

ActiveLibrary[API Development](/categories/api)

agrobens/sdk-php-autentique
===========================

Api Autentique V2

v1.0.2(1y ago)032MITPHPPHP &gt;=7.3

Since Jun 23Pushed 1y agoCompare

[ Source](https://github.com/agrobens/sdk-php-autentique)[ Packagist](https://packagist.org/packages/agrobens/sdk-php-autentique)[ Docs](https://github.com/vinicinbgs/autentique-v2)[ RSS](/packages/agrobens-sdk-php-autentique/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (3)Used By (0)

#### AUTENTIQUE Api v2

[](#autentique-api-v2)

[![Latest Stable Version](https://camo.githubusercontent.com/5b68dab42f53c13c05882851dbb094a2ef6575003775259b14a8455000dd9ebe/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f76696e6963696e6267732f617574656e74697175652d7632)](https://packagist.org/packages/vinicinbgs/autentique-v2)[![Total Downloads](https://camo.githubusercontent.com/3fb615e7043dd3b189ed73f9678cb0cac2cbd2f7496e50ff29309e1beb6cea4a/68747470733a2f2f706f7365722e707567782e6f72672f76696e6963696e6267732f617574656e74697175652d76322f646f776e6c6f616473)](https://packagist.org/packages/vinicinbgs/autentique-v2)[![Build Status](https://camo.githubusercontent.com/26cf03d860b3fc95d569507c676ddbbdca5f09bc9b0e85ba19736f583efef695/68747470733a2f2f7472617669732d63692e6f72672f76696e6963696e6267732f617574656e74697175652d76322e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/vinicinbgs/autentique-v2)[![codecov](https://camo.githubusercontent.com/56f57c1e48fe45352b43bc2e143681906034cd9033f391b566853c177938cc88/68747470733a2f2f636f6465636f762e696f2f67682f76696e6963696e6267732f617574656e74697175652d76322f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/vinicinbgs/autentique-v2)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/611fe0de3df9cee53b419c437d8174244986dc29913bfef0b83a2cc550687ef0/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f76696e6963696e6267732f617574656e74697175652d76322f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/vinicinbgs/autentique-v2/?branch=master)[![Code Intelligence Status](https://camo.githubusercontent.com/8be3c099be3d0ec42cc7fa3abd5f62c6c1cb11d0ef23326e8092ff936c0c06ca/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f76696e6963696e6267732f617574656e74697175652d76322f6261646765732f636f64652d696e74656c6c6967656e63652e7376673f623d6d6173746572)](https://scrutinizer-ci.com/code-intelligence)[![License](https://camo.githubusercontent.com/29758009fd2eea3e91cddbfca6813cdbe6432de06784e90bf3b81e4dcdc2fbb8/68747470733a2f2f706f7365722e707567782e6f72672f76696e6963696e6267732f617574656e74697175652d76322f6c6963656e7365)](https://packagist.org/packages/vinicinbgs/autentique-v2)

🚀 Usage
=======

[](#-usage)

This package is so simple to use that it will save your time.
-------------------------------------------------------------

[](#this-package-is-so-simple-to-use-that-it-will-save-your-time)

```
composer require vinicinbgs/autentique-v2
```

⚠️ IMPORTANT
------------

[](#️-important)

This library depends on **vlucas/phpdotenv** to get environments variables **(.env)**
If you use a framework like **Laravel**, you don't need to download this library.

Fork do projeto principal para segurança de atualizações, utilize a lib princpal

```
composer require vlucas/phpdotenv
```

**Set in file .env**

```
AUTENTIQUE_URL=https://api.autentique.com.br/v2/graphql
AUTENTIQUE_TOKEN="YOUR_TOKEN"
AUTENTIQUE_DEV_MODE="true" || "false"
# if TRUE, document will be created in mode sandbox
```

Summary
-------

[](#summary)

1. [Instance](#instance)
2. [Documents](#documents)
3. [Folders](#folders)
4. [Contributing 🤠](#contributing)

1. Instance
-----------

[](#1-instance)

**Import library**

```
use vinicinbgs\Autentique\Documents;

$AUTENTIQUE_TOKEN="xxxxxxxx" (set or will be take in .env)

$documents = new Documents($AUTENTIQUE_TOKEN);

$folders = new Folders($AUTENTIQUE_TOKEN);
```

Why documents/folders receive token?

- Easily to manage Documents in multiples accounts (token)

📝 2. Documents
--------------

[](#-2-documents)

#### 1 - List all documents with pagination

[](#1---list-all-documents-with-pagination)

```
$documentsPaginated = documents->listAll($page); // if not isset $page is equal 1
```

#### 2 - List the document by id

[](#2---list-the-document-by-id)

```
$document = $documents->listById($documentId);
```

#### 3 - Create a document

[](#3---create-a-document)

```
$attributes = [
         'document' => [
             'name' => 'NOME DO DOCUMENTO',
         ],
         'signers' => [
             [
                 'email' => 'email@email.com',
                 'action' => 'SIGN',
                 'positions' => [
                     [
                         'x' => '50', // Posição do Eixo X da ASSINATURA (0 a 100)
                         'y' => '80', // Posição do Eixo Y da ASSINATURA (0 a 100)
                         'z' => '1', // Página da ASSINATURA
                     ],
                     [
                         'x' => '50', // Posição do Eixo X da ASSINATURA (0 a 100)
                         'y' => '50', // Posição do Eixo Y da ASSINATURA (0 a 100)
                         'z' => '2', // Página da ASSINATURA
                     ],
                 ],
             ],
             [
                 'email' => 'email@email.com',
                 'action' => 'SIGN',
                 'positions' => [
                     [
                         'x' => '50', // Posição do Eixo X da ASSINATURA (0 a 100)
                         'y' => '80', // Posição do Eixo Y da ASSINATURA (0 a 100)
                         'z' => '1', // Página da ASSINATURA
                     ],
                     [
                         'x' => '50', // Posição do Eixo X da ASSINATURA (0 a 100)
                         'y' => '50', // Posição do Eixo Y da ASSINATURA (0 a 100)
                         'z' => '2', // Página da ASSINATURA
                     ],
                 ],
             ],
         ],
         'file' => './dummy.pdf',
     ];

 $documentCreated = $documents->create($attributes);
```

### 4 - Sign the document by id

[](#4---sign-the-document-by-id)

```
$documentSign = $documents->signById($documentId);
```

#### 5 - Delete the document by id

[](#5---delete-the-document-by-id)

```
$documentDeleted = $documents->deleteById($documentId);
```

#### 6 - Move the document to a folder

[](#6---move-the-document-to-a-folder)

```
$attributes = [
    "folder" => [
                "name" => "folder name",
            ],
];

$folder = $folders->create($attributes);
$documentDeleted = $documents->moveToFolder($documentId, $folder["data"]["createFolder"]["id"]);
```

#### 7 - Move the document from current folder to target folder

[](#7---move-the-document-from-current-folder-to-target-folder)

```
$documentDeleted = $documents->moveToFolderByFolder($documentId, $targetFolderId, $currentFolderId);
```

---

📁 3. Folders
------------

[](#-3-folders)

#### 1 - List all folders

[](#1---list-all-folders)

```
$foldersPaginated = $folders->listAll($page); // if not isset $page is equal 1
```

#### 2 - List the folder by id

[](#2---list-the-folder-by-id)

```
$folder = $folders->listById($folderId);
```

#### 3 - Create a folder

[](#3---create-a-folder)

```
$attributes = [
    "folder" => [
                "name" => "folder name",
            ],
];

$folder = $folders->create($attributes);
```

#### 4 - List the folder contents by id

[](#4---list-the-folder-contents-by-id)

```
$folderContents = $folders->listContentsById($folderId, $page = 1);
```

#### 5 - Delete a folder

[](#5---delete-a-folder)

```
$folderDeleted = $folders->deleteById($folderId);
```

---

🔧 Contributing
--------------

[](#-contributing)

### 💻 Setup

[](#-setup)

```
git clone git@github.com:vinicinbgs/autentique-v2.git
cd autentique-v2
composer install
npm install
```

### ⚙️ Configure

[](#️-configure)

#### Create .env with variables

[](#create-env-with-variables)

```
./contribute.sh
```

#### Configure prettier php in vscode

[](#configure-prettier-php-in-vscode)

(CTRL + P) &gt; Preferences: Open Setting (JSON)

```
 "emeraldwalk.runonsave": {
        "commands": [
            {
                "match": "\\.php$",
                "cmd": "npm run prettier -- ${relativeFile} --write",
            },
        ]
    }
```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.7% of commits — single point of failure

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

Total

2

Last Release

643d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/df4a9eb87d8f777fb1538d3f9994339877a54d5b1e2c9e3a1cf013b8b1137d86?d=identicon)[agrobens](/maintainers/agrobens)

---

Top Contributors

[![vini-md](https://avatars.githubusercontent.com/u/16025055?v=4)](https://github.com/vini-md "vini-md (118 commits)")[![ceresaconsultoria](https://avatars.githubusercontent.com/u/56128744?v=4)](https://github.com/ceresaconsultoria "ceresaconsultoria (4 commits)")[![gotzsys](https://avatars.githubusercontent.com/u/13874850?v=4)](https://github.com/gotzsys "gotzsys (2 commits)")[![luisferreirahi](https://avatars.githubusercontent.com/u/80353886?v=4)](https://github.com/luisferreirahi "luisferreirahi (1 commits)")[![viniciusmdutra](https://avatars.githubusercontent.com/u/67704552?v=4)](https://github.com/viniciusmdutra "viniciusmdutra (1 commits)")

---

Tags

apiv2autentique

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/agrobens-sdk-php-autentique/health.svg)

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

###  Alternatives

[spatie/dropbox-api

A minimal implementation of Dropbox API v2

3126.5M39](/packages/spatie-dropbox-api)[vinicinbgs/autentique-v2

Api Autentique V2

4343.5k](/packages/vinicinbgs-autentique-v2)[gorkalaucirica/hipchat-v2-api-client

Hipchat v2 API client

81228.1k6](/packages/gorkalaucirica-hipchat-v2-api-client)[srmklive/flysystem-dropbox-v2

Flysystem Adapter for Dropbox API v2

20183.0k9](/packages/srmklive-flysystem-dropbox-v2)[m165437/laravel-blueprint-docs

API Blueprint Renderer for Laravel

22879.8k](/packages/m165437-laravel-blueprint-docs)[atomita/backlog-v2

this is backlog api v2 library

183.8k](/packages/atomita-backlog-v2)

PHPackages © 2026

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