PHPackages                             mosparo/php-api-client - 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. mosparo/php-api-client

ActiveLibrary[API Development](/categories/api)

mosparo/php-api-client
======================

PHP API Client to communicate with mosparo.

v2.0.0(2w ago)521.9k—0.2%2[1 issues](https://github.com/mosparo/php-api-client/issues)7MITPHPPHP &gt;=8.1

Since Sep 18Pushed 2w ago1 watchersCompare

[ Source](https://github.com/mosparo/php-api-client)[ Packagist](https://packagist.org/packages/mosparo/php-api-client)[ RSS](/packages/mosparo-php-api-client/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (6)Dependencies (4)Versions (7)Used By (7)

 [![mosparo logo contains a bird with the name Mo and the mosparo text](https://github.com/mosparo/mosparo/raw/master/assets/images/mosparo-logo.svg?raw=true)](https://github.com/mosparo/mosparo/blob/master/assets/images/mosparo-logo.svg?raw=true)

 PHP API Client
================

[](#----php-api-client)

 This library offers the API client to communicate with mosparo to verify a submission.

---

Description
-----------

[](#description)

With this PHP library you can connect to a mosparo installation and verify the submitted data.

The API client version 2.0+ is fully compatible with mosparo 1.5+. The verification method is also compatible with older mosparo versions.

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

[](#installation)

Install this library by using composer:

```
composer require mosparo/php-api-client

```

Usage
-----

[](#usage)

1. Create a project in your mosparo installation
2. Include the mosparo script in your form

```

    var m;
    window.onload = function(){
        m = new mosparo('mosparo-box', 'https://[URL]', '[UUID]', '[PUBLIC_KEY]', {loadCssResource: true});
    };

```

3. Include the library in your project

```
composer require mosparo/php-api-client

```

4. After the form was submitted, verify the data before processing it

```
