<commit_before># Signere SDK

[![Latest Version on Packagist](https://img.shields.io/packagist/v/sausin/signere-sdk.svg?style=flat-square)](https://packagist.org/packages/sausin/signere-sdk)
[![Build Status](https://img.shields.io/travis/sausin/signere-sdk/master.svg?style=flat-square)](https://travis-ci.org/sausin/signere-sdk)
[![Quality Score](https://img.shields.io/scrutinizer/g/sausin/signere-sdk.svg?style=flat-square)](https://scrutinizer-ci.com/g/sausin/signere-sdk)
[![StyleCI](https://styleci.io/repos/85194981/shield?branch=master)](https://styleci.io/repos/85194981)
[![Total Downloads](https://img.shields.io/packagist/dt/sausin/signere-sdk.svg?style=flat-square)](https://packagist.org/packages/sausin/signere-sdk)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?style=flat-square)](https://opensource.org/licenses/MIT)


[Signere](https://www.signere.no/) provides APIs to perform authentication and signing of documents using various identification systems.

This package uses the publicly available [API documentation](https://api.signere.no/Documentation) provided by Signere and makes it easy to work with those APIs.

While it's created to work well with Laravel, it's possible to use the functionality of the package with any setup in PHP. An implementation of `Illuminate\Contracts\Config\Repository` is required in non-laravel settings to provide the configuration inputs for the package.

Note that the controllers, service provider, routes and resources can only be used with Laravel.

# Installing

Install via composer:
```sh
composer require sausin/signere-sdk
```

When using the package with Laravel 5.5 and upwards, the service provider will automatically be registered. For Laravel 5.4, the service provider needs to be registered in the `config/app.php` file as below:

```php
Sausin\Signere\SignereServiceProvider::class<commit_msg>Updated styleci<commit_after># Signere SDK

[![Latest Version on Packagist](https://img.shields.io/packagist/v/sausin/signere-sdk.svg?style=flat-square)](https://packagist.org/packages/sausin/signere-sdk)
[![Build Status](https://img.shields.io/travis/sausin/signere-sdk/master.svg?style=flat-square)](https://travis-ci.org/sausin/signere-sdk)
[![Quality Score](https://img.shields.io/scrutinizer/g/sausin/signere-sdk.svg?style=flat-square)](https://scrutinizer-ci.com/g/sausin/signere-sdk)
[![StyleCI](https://styleci.io/repos/100803677/shield?branch=master)](https://styleci.io/repos/100803677)
[![Total Downloads](https://img.shields.io/packagist/dt/sausin/signere-sdk.svg?style=flat-square)](https://packagist.org/packages/sausin/signere-sdk)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?style=flat-square)](https://opensource.org/licenses/MIT)


[Signere](https://www.signere.no/) provides APIs to perform authentication and signing of documents using various identification systems.

This package uses the publicly available [API documentation](https://api.signere.no/Documentation) provided by Signere and makes it easy to work with those APIs.

While it's created to work well with Laravel, it's possible to use the functionality of the package with any setup in PHP. An implementation of `Illuminate\Contracts\Config\Repository` is required in non-laravel settings to provide the configuration inputs for the package.

Note that the controllers, service provider, routes and resources can only be used with Laravel.

# Installing

Install via composer:
```sh
composer require sausin/signere-sdk
```

When using the package with Laravel 5.5 and upwards, the service provider will automatically be registered. For Laravel 5.4, the service provider needs to be registered in the `config/app.php` file as below:

```php
Sausin\Signere\SignereServiceProvider::class
{'fraction_non_alphanumeric': 0.12956107879428874, 'fraction_numerical': 0.01110523532522475, 'mean_word_length': 5.636842105263158, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 28, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '271529', 'n_tokens_mistral': 1231, 'n_tokens_neox': 1160, 'n_words': 292}