2017 © Pedro Peláez
 

symfony-bundle geny-bundle

Provides UIs to create, render and validate forms

image

ninsuo/geny-bundle

Provides UIs to create, render and validate forms

  • Thursday, June 15, 2017
  • by ninsuo
  • Repository
  • 3 Watchers
  • 3 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

GenyBundle

Goal of this bundle is to provide: - a user interface to create forms - a user interface to render and validate those forms, (*1)

WARNING: under development! POCs, etc...

What is it?

There are tons of ideas where admin may need to draw a form, set a template (not necessarily a view) and then final user can give the context by filling the form. This way, user's context is mixed to admin's template and, according to a website's goal, do some stuff without any programming needs., (*2)

Some websites examples: - a highly-dynamic back end: admin define sql query/linux command templates and the context form: and users can run those query/commands after filling that form. - a code generator: user define templates and forms to complete the context, and then just need to fill it as much times as he want. - ..., (*3)

Warning

From the Symfony documentation:, (*4)

A bundle should not embed third-party libraries written in JavaScript, CSS or any other language., (*5)

As this bundle contains a complex UI, it was too challenging for me to do it without jQuery and Twitter Bootstrap., (*6)

They are not included in the bundle., (*7)

Installation

Installation

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:, (*8)

$ composer require <package-name> "~1"

This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation., (*9)

Step 2: Enable the Bundle

Then, enable the bundle by adding it to the list of registered bundles in the app/AppKernel.php file of your project:, (*10)

<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...

            new <vendor>\<bundle-name>\<bundle-long-name>(),
        );

        // ...
    }

    // ...
}

See the documentation, (*11)

Usage

How does it work?

For now, only the text input really works ! Well, more or less..., (*12)

The Versions