lionart/edifice

This package is abandoned and no longer maintained. No replacement package was suggested.

Advanced Form Builder for Laravel 4 Framework

Installs: 6

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Language:JavaScript

dev-master 2013-06-19 10:53 UTC

This package is not auto-updated.

Last update: 2023-09-02 10:15:51 UTC


README

A Laravel 4 form builder package inspired from formtastic and using Foundation CSS framework.

Edifice use Laravel Syntax with some addition. The learning curve is not painful. You use richer Laravel syntax.

Build Status

Compatibility

Edifice is compatible with Laravel 4.0.x

Version 1.0 RoadMap

  • Implement Foundation CSS 4 From components.
  • Implement input form types.
  • Implement HTML 5 inputs( color, date... )
  • Implement checkbox list and radio list.
  • Implement fieldset.
  • Implement select.
  • Add auto transltion feature.
  • Handle validation error display.
  • Implement MetroUI CSS 0.95 From components.
  • Implement Bootstrap CSS 2 From components.
  • Implement CSS Horus 1 From components.
  • Implement Responsable CSS 1 From components.
  • Implement Skeleton CSS 1 From components.

Installation

Install configuration file :

php artisan config:publish lionart/edifice

In app.php Laravel confiuration file add this line to providers :

    'Lionart\Edifice\EdificeServiceProvider'

And the line below to aliases :

    'Edifice' => 'Lionart\Edifice\Support\Facades\Edifice'

Do not forget to load Foundation CSS & JavaScript files: http://foundation.zurb.com/docs/ & http://foundation.zurb.com/docs/javascript.html

Creating an input with a label

Edifice::text('first_name',
              'John Doe',
              array('label' => array
                       (
                            // Custom Edifice properties
                           'text' => 'First Name',
                           'align' => 'left | right',
                           'inline' => 'true | false',
                           'error' => 'Error message'
                           // HTML Attributes
                           'class' = 'red...',
                           'id' => 'label_id'
                       )
                   )
              );