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

ActiveSymfony-bundle[API Development](/categories/api)

dobryprogramator/smartform-bundle
=================================

Bundle to connect Symfony with www.smartform.cz

v2.0.2(4y ago)02.5kMITPHPPHP ^7.4

Since Mar 31Pushed 4y ago1 watchersCompare

[ Source](https://github.com/DobryProgramator/SmartformBundle)[ Packagist](https://packagist.org/packages/dobryprogramator/smartform-bundle)[ RSS](/packages/dobryprogramator-smartform-bundle/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (10)Dependencies (9)Versions (26)Used By (0)

Installation
============

[](#installation)

Make sure Composer is installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

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

[](#requirements)

- PHP 7.4
- Symfony 5
- Twig 3

Applications that use Symfony Flex
----------------------------------

[](#applications-that-use-symfony-flex)

Open a command console, enter your project directory and execute:

```
$ composer require dobryprogramator/smartform-bundle
```

Now proceed to chapter `Configuration`.

Applications that don't use Symfony Flex
----------------------------------------

[](#applications-that-dont-use-symfony-flex)

### Step 1: Download the Bundle

[](#step-1-download-the-bundle)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

```
$ composer require dobryprogramator/smartform-bundle
```

### Step 2: Enable the Bundle

[](#step-2-enable-the-bundle)

Then, enable the bundle by adding it to the list of registered bundles in the `config/bundles.php` file of your project:

```
// config/bundles.php

return [
    // ...
    DobryProgramator\SmartformBundle\DobryProgramatorSmartformBundle::class => ['all' => true],
];
```

Now proceed to chapter `Configuration`.

Configuration
=============

[](#configuration)

Add following to the `.env` a replace the `FILL_IN` with your `client_id`.

```
SMARTFORM_CLIENT_ID=FILL_IN

```

Create file `config/packages/dobry_programator_smartform.yaml` with following content:

```
dobry_programator_smartform:
    client_id: '%env(SMARTFORM_CLIENT_ID)%'

```

Usage
=====

[](#usage)

For more detailed look into the bundle visit the [demo repository](https://github.com/DobryProgramator/SmartformBundleDemo).

**This bundle supports only using forms with DTO as explained [here](https://blog.martinhujer.cz/symfony-forms-with-request-objects/).**

Entity
------

[](#entity)

```
