PHPackages                             awaitcz/smartform - 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. awaitcz/smartform

ActiveLibrary

awaitcz/smartform
=================

SmartForm HTTP client for Nette

v1.0.1(2y ago)1471MITPHPPHP &gt;= 8.1

Since Sep 23Pushed 2y ago2 watchersCompare

[ Source](https://github.com/awaitcz/smartform)[ Packagist](https://packagist.org/packages/awaitcz/smartform)[ RSS](/packages/awaitcz-smartform/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (13)Versions (3)Used By (0)

SmartForm.cz Api Integration
============================

[](#smartformcz-api-integration)

SmartForm.cz API integration for Nette Framework inspirated by Contributte/GoSms

Content
-------

[](#content)

- [Requirements](#requirements)
- [Installation - register an extension](#installation)
- [Usage](#usage)

Requirements
------------

[](#requirements)

Create account on [smartform.cz](https://admin.smartform.cz/user/create) and copy clientId and password from [https://admin.smartform.cz/wsUser/wsListYear](administration).

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

[](#installation)

```
extensions:
	smartForm: Awaitcz\SmartForm\DI\SmartFormExtension

smartForm:
	clientId: R3sZyjLPLP
	token: qLa1vcNn
	testMode: false # Optional, default false
```

Usage
-----

[](#usage)

We now have three clients ready for you: `AddressClient`, `CompanyClient` and `EmailClient`.

All methods throw ClientException with error message and code as response status when response status is not 200;

### AddressClient

[](#addressclient)

- `whisper()` - [Whisper address](https://www.smartform.cz/dokumentace/smartform-api/validace-adres/zakladni-informace/)
- `validate()` - [Validate address](https://www.smartform.cz/dokumentace/smartform-api/naseptavani-adres/zakladni-informace/)

### CompanyClient

[](#companyclient)

- `whisper()` - [Whisper company](https://www.smartform.cz/dokumentace/smartform-api/naseptavani-firem/zakladni-informace/)
- `validate()` - [Validate company](https://www.smartform.cz/dokumentace/smartform-api/validace-firem/zakladni-informace/)

### EmailClient

[](#emailclient)

- `validate()` - [Validate email](https://www.smartform.cz/dokumentace/smartform-api/validace-e-mailu/zakladni-informace/)

```
