2017 © Pedro Peláez
 

library form-types-bundle

Shopsys Framework custom Symfony form types

image

shopsys/form-types-bundle

Shopsys Framework custom Symfony form types

  • Monday, July 16, 2018
  • by PetrHeinz
  • Repository
  • 7 Watchers
  • 1 Stars
  • 5,114 Installations
  • PHP
  • 6 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 12 Versions
  • 36 % Grown

The README.md

Shopsys Form Types Bundle

Build Status Downloads, (*1)

Symfony bundle adding form types for usage in Shopsys Framework, its components and plugins., (*2)

This repository is maintained by shopsys/shopsys monorepo, information about changes is in monorepo CHANGELOG.md., (*3)

Installation

The plugin is a Symfony bundle and is installed in the same way:, (*4)

Download

First, you download the package using Composer:, (*5)

composer require shopsys/form-types

Register

For the bundle to be loaded in your application you need to register it in the app/AppKernel.php file of your project:, (*6)

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = [
            // ...
            new Shopsys\FormTypesBundle\ShopsysFormTypesBundle(),
            // ...
        ];

        // ...

        return $bundles;
    }

    // ...
}

How to use a custom form type

The form types in this package are regular Symfony form types. See Symfony Forms Documentation for detailed explanation., (*7)

Contents

MultidomainType

Compound type that renders one form of given type for each domain., (*8)

It can be configured via the following options: * entry_type - The type of the inner form. Defaults to TextType::class. * entry_options - The options of the inner forms. Defaults to []. * options_by_domain_id - The options of the inner forms based on the domain ID. Provide arrays indexed by the domain ID, values are merged with the entry_options. Defaults to []., (*9)

The data of the inner forms are returned as an array indexed by the domain ID., (*10)

MultidomainType usage example, (*11)

YesNoType

Natural looking choice type for boolean value inputs., (*12)

It has no notable options., (*13)

A boolean value is accepted/returned as data. A null value can be accepted/returned when no radio button is checked., (*14)

YesNoType usage example, (*15)

Contributing

Thank you for your contributions to Shopsys Form Types Bundle package. Together we are making Shopsys Framework better., (*16)

This repository is READ-ONLY. If you want to report issues and/or send pull requests, please use the main Shopsys repository., (*17)

Please, check our Contribution Guide before contributing., (*18)

Support

What to do when you are in troubles or need some help? The best way is to join our Slack., (*19)

If you want to report issues, please use the main Shopsys repository., (*20)

The Versions

16/07 2018
16/07 2018

dev-ph-ms-microservice

dev-ph-ms-microservice

Shopsys Framework custom Symfony form types

  Sources   Download

MIT

The Requires

 

The Development Requires

form form type shopsys framework ssfw

03/07 2018
31/05 2018

dev-bb-upgrade-coding-standards

dev-bb-upgrade-coding-standards

Shopsys Framework custom Symfony form types

  Sources   Download

MIT

The Requires

 

The Development Requires

form form type shopsys framework ssfw

23/05 2018

v7.0.0-alpha2

7.0.0.0-alpha2

Shopsys Framework custom Symfony form types

  Sources   Download

MIT

The Requires

 

The Development Requires

form form type shopsys framework ssfw

12/04 2018

v7.0.0-alpha1

7.0.0.0-alpha1

Shopsys Framework custom Symfony form types

  Sources   Download

MIT

The Requires

 

The Development Requires

form form type shopsys framework ssfw

29/03 2018

dev-ph-travis

dev-ph-travis

Shopsys Framework custom Symfony form types

  Sources   Download

MIT

The Requires

 

The Development Requires

form form type shopsys framework ssfw

19/02 2018

v0.2.0

0.2.0.0

Shopsys Framework custom Symfony form types

  Sources   Download

MIT

The Requires

 

The Development Requires

form form type shopsys framework ssfw

15/02 2018

dev-ss-documentation-github

dev-ss-documentation-github

Shopsys Framework custom Symfony form types

  Sources   Download

MIT

The Requires

 

The Development Requires

form form type shopsys framework ssfw

13/09 2017

dev-test

dev-test

Shopsys Framework custom Symfony form types

  Sources   Download

MIT

The Requires

 

The Development Requires

form form type shopsys framework ssfw

28/08 2017

dev-rv-changelog-upgrade-md

dev-rv-changelog-upgrade-md

Shopsys Framework custom Symfony form types

  Sources   Download

MIT

The Requires

 

The Development Requires

form form type shopsys framework ssfw

17/08 2017

v0.1.0

0.1.0.0

Shopsys Framework custom Symfony form types

  Sources   Download

MIT

The Requires

 

The Development Requires

form form type shopsys framework ssfw