All Projects → formers → Former

formers / Former

A powerful form builder, for Laravel and other frameworks (stand-alone too)

Projects that are alternatives of or similar to Former

formoj
Form generator package for Laravel
Stars: ✭ 28 (-97.85%)
Mutual labels:  laravel-package, form-builder
smart-schema
A Laravel package to enable auto generation of forms
Stars: ✭ 18 (-98.62%)
Mutual labels:  laravel-package, form-builder
Semantic Form
[READ ONLY] Semantic-UI form helper
Stars: ✭ 51 (-96.09%)
Mutual labels:  laravel-package, form-builder
Fast Excel
🦉 Fast Excel import/export for Laravel
Stars: ✭ 1,183 (-9.35%)
Mutual labels:  laravel-package
Laraupdater
Enable Laravel App Self-Update. Allow your Laravel Application to auto-update itself.
Stars: ✭ 75 (-94.25%)
Mutual labels:  laravel-package
Vue Rails Form Builder
A custom Rails form builder for Vue.js
Stars: ✭ 81 (-93.79%)
Mutual labels:  form-builder
Laravel Sync Migration
Developer tool helps to sync migrations without refreshing the database
Stars: ✭ 89 (-93.18%)
Mutual labels:  laravel-package
Laravel Botscout
Block malicious scripts using botscout.com protection for your laravel app
Stars: ✭ 69 (-94.71%)
Mutual labels:  laravel-package
Larabug
Laravel error reporting tool
Stars: ✭ 84 (-93.56%)
Mutual labels:  laravel-package
Laravel Console Logger
Logging and Notifications for Laravel Console Commands.
Stars: ✭ 79 (-93.95%)
Mutual labels:  laravel-package
Eloquent Approval
Approval process for Laravel Eloquent models
Stars: ✭ 79 (-93.95%)
Mutual labels:  laravel-package
Laravel Impersonate
Laravel Impersonate is a plugin that allows you to authenticate as your users.
Stars: ✭ 1,201 (-7.97%)
Mutual labels:  laravel-package
Rsformview
A Cocoapods library designed to easily create forms with multiple data entry fields
Stars: ✭ 84 (-93.56%)
Mutual labels:  form-builder
Candy Hub
The backend system for your GetCandy API
Stars: ✭ 73 (-94.41%)
Mutual labels:  laravel-package
Surveyjs react quickstart
React QuickStart Boilerplate - SurveyJS: Survey Library and Survey Creator
Stars: ✭ 88 (-93.26%)
Mutual labels:  form-builder
Dark Sky Api
PHP Library for the Dark Sky API.
Stars: ✭ 70 (-94.64%)
Mutual labels:  laravel-package
Bigbluebutton
Package that provides easily communicate between bigbluebutton server and laravel framework
Stars: ✭ 85 (-93.49%)
Mutual labels:  laravel-package
Laravel Pdf
A Simple package for easily generating PDF documents from HTML. This package is specially for laravel but you can use this without laravel.
Stars: ✭ 79 (-93.95%)
Mutual labels:  laravel-package
Formium
The headless form builder for the modern web.
Stars: ✭ 78 (-94.02%)
Mutual labels:  form-builder
Laravel Url Shortener
Powerful URL shortening tools in Laravel
Stars: ✭ 80 (-93.87%)
Mutual labels:  laravel-package

Former

A Laravelish way to create and format forms

Build Status Latest Stable Version Total Downloads

Former outputs form elements in HTML compatible with your favorite CSS framework (Bootstrap and Foundation are currently supported). Former also handles repopulation after validation errors, including automatically rendering error text with affected fields.

Introduction

Former provides a fluent method of form creation, allowing you to do:

Former::framework('TwitterBootstrap3');

Former::horizontal_open()
  ->id('MyForm')
  ->rules(['name' => 'required'])
  ->method('GET');

  Former::xlarge_text('name') # Bootstrap sizing
    ->class('myclass') # arbitrary attribute support
    ->label('Full name')
    ->value('Joseph')
    ->required() # HTML5 validation
    ->help('Please enter your full name');

  Former::textarea('comments')
    ->rows(10)
    ->columns(20)
    ->autofocus();

  Former::actions()
    ->large_primary_submit('Submit') # Combine Bootstrap directives like "lg and btn-primary"
    ->large_inverse_reset('Reset');

Former::close();

Every time you call a method that doesn't actually exist, Former assumes you're trying to set an attribute and creates it magically. That's why you can do in the above example ->rows(10) ; in case you want to set attributes that contain dashes, just replace them by underscores : ->data_foo('bar') equals data-foo="bar". Now of course in case you want to set an attribute that actually contains an underscore you can always use the fallback method setAttribute('data_foo', 'bar'). You're welcome.

This is the core of it, but Former offers a lot more. I invite you to consult the wiki to see the extent of what Former does.


Installation

Require Former package using Composer:

composer require anahkiasen/former

Publish config files with artisan:

php artisan vendor:publish --provider="Former\FormerServiceProvider"

App.php config for Laravel 5.4 and below

For Laravel 5.4 and below, you must modify your config/app.php.

In the providers array add :

Former\FormerServiceProvider::class

Add then alias Former's main class by adding its facade to the aliases array in the same file :

'Former' => 'Former\Facades\Former',

Table of contents

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].