2017 © Pedro Peláez
 

library vue-forms

A collection of vue.js form and input components to create pretty ajax requests.

image

ferdinandfrank/vue-forms

A collection of vue.js form and input components to create pretty ajax requests.

  • Wednesday, July 25, 2018
  • by ferdinandfrank
  • Repository
  • 3 Watchers
  • 3 Stars
  • 40 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 17 Versions
  • 18 % Grown

The README.md

Vue.js Forms

GitHub package version Packagist GitHub license, (*1)

Warning: This package is not maintained anymore!, (*2)

This package provides a collection of Vue.js form and input components to create pretty and easy ajax requests on a Laravel application., (*3)

Full documentation: https://ferdinandfrank.github.io/vue-forms/, (*4)

Example

HTML form with two input components which get cleared after the submit. Additionally a success alert message will be shown after the server processed the request., (*5)

In your HTML / Blade file:, (*6)

<ajax-form method="[METHOD]" action="[ACTION]" :clear="true">
    <form-input name="name" label="Name" :value="MyName"></form-input>
    <form-select name="gender" label="Gender" :value="m">
       <option value="m">Male</option>
       <option value="f">Female</option>
    </form-select>

    <button type="submit">Submit</button>
</ajax-form>

In your controller method:, (*7)

public function handleRequest(Request $request) {
   // Handle the request

   return response()->json([
       'alert' => [
           'title'   => 'Success',
           'message' => 'Request was successful!',
           'accept'  => 'Alright!'
       ]
   ]);
}

Requirements

Server Requirements

JS Requirements

There are a few requirements of your Laravel application for the package to work properly on the client side. You can install them by just including the according entries in your package.json file (see Installation #4)., (*8)

Mandatory

  • Vue.js >= 2.1.10: To render the Vue.js components.
  • Lodash >= 4.17.4: For using JS helper functions in the scripts which makes the code cleaner
  • MomentJS >= 2.18.1: For date formatting on JS
  • JQuery >= 3.1.1: For element selection and ajax requests

Optional

  • Bootstrap >= 3.3.7: For the design of the input components
  • Sweetalert >= 2.0.4: To show pretty alert / confirm messages
  • Tooltip.js >= 1.1.5: To show help texts on the inputs as a pretty tooltip

Optional Requirements

To show a loading icon when a form gets submitted as well as to show a help icon next to the inputs, Font Awesome will be used. Font Awesome need to be installed properly on the application to show these icons. Otherwise the components need to be configured., (*9)

The HTML content of the components is designed for the usage with Bootstrap 4. To have a nice design of the inputs out of the box, Bootstrap is required., (*10)

Installation

  1. To get started, install the package via the Composer package manager:, (*11)

    composer require ferdinandfrank/vue-forms
    
  2. In Laravel >= 5.5 this package registers automatically. For previous Laravel versions add the following entry to your providers array in config/app.php:, (*12)

    'providers' => [
       ...
       ...
       \FerdinandFrank\VueForms\Providers\VueFormsServiceProvider::class
    ]
    
  3. Publish the Vue.js components and other scripts to the resources/assets/vendor/vue-forms folder, so you can edit and include the package's files within you application's scripts:, (*13)

    php artisan vue-forms:init
    
  4. Add the following entries to the dependencies array in your package.json file, if these do not yet exist. The first four are required, the last four (sweetalert, bootstrap-sass, popper.js, tooltip.js) optional (see Optional Requirements)., (*14)

    ```json "dependencies": { "vue": "^2.1.10", "lodash": "^4.17.4", "jquery": "^3.1.1", "moment": "^2.18.1", "sweetalert": "^2.0.4", "bootstrap-sass": "^3.3.7", "popper.js": "^1.12.5", "tooltip.js": "^1.1.5" }, (*15)

    ```, (*16)

  5. Include the main JS within your application's script, e.g., from resources/assets/js/app.js copy the following statement:, (*17)

    javascript require('../vendor/vue-forms/js/vue-forms');, (*18)

  6. Include the main SCSS within your application's script, e.g., from resources/assets/sass/app.scss copy the following statement:, (*19)

    @import "../vendor/vue-forms/scss/vue-forms";
    
  7. Compile your scripts via webpack or any other compiler., (*20)

That's it! You can now use the Vue.js components of this package., (*21)

Documentation

Click here for the full documentation, (*22)

License

MIT, (*23)

The Versions

25/07 2018

dev-master

9999999-dev

A collection of vue.js form and input components to create pretty ajax requests.

  Sources   Download

MIT

The Requires

 

by Ferdinand Frank

laravel language bootstrap ajax forms localization requests vue i18 inputs

24/06 2018

v1.3.1

1.3.1.0

A collection of vue.js form and input components to create pretty ajax requests.

  Sources   Download

MIT

The Requires

 

by Ferdinand Frank

laravel language bootstrap ajax forms localization requests vue i18 inputs

24/06 2018

v1.4.1

1.4.1.0

A collection of vue.js form and input components to create pretty ajax requests.

  Sources   Download

MIT

The Requires

 

by Ferdinand Frank

laravel language bootstrap ajax forms localization requests vue i18 inputs

07/04 2018

1.4

1.4.0.0

A collection of vue.js form and input components to create pretty ajax requests.

  Sources   Download

MIT

The Requires

 

by Ferdinand Frank

laravel language bootstrap ajax forms localization requests vue i18 inputs

31/12 2017

v1.3

1.3.0.0

A collection of vue.js form and input components to create pretty ajax requests.

  Sources   Download

MIT

The Requires

 

by Ferdinand Frank

laravel language bootstrap ajax forms localization requests vue i18 inputs

28/11 2017

v1.2.2

1.2.2.0

A collection of vue.js form and input components to create pretty ajax requests.

  Sources   Download

MIT

The Requires

 

by Ferdinand Frank

laravel language bootstrap ajax forms localization requests vue i18 inputs

28/11 2017

1.2.2

1.2.2.0

A collection of vue.js form and input components to create pretty ajax requests.

  Sources   Download

MIT

The Requires

 

by Ferdinand Frank

laravel language bootstrap ajax forms localization requests vue i18 inputs

22/11 2017

v1.2.1

1.2.1.0

A collection of vue.js form and input components to create pretty ajax requests.

  Sources   Download

MIT

The Requires

 

by Ferdinand Frank

laravel language bootstrap ajax forms localization requests vue i18 inputs

18/11 2017

v1.2

1.2.0.0

A collection of vue.js form and input components to create pretty ajax requests.

  Sources   Download

MIT

The Requires

 

by Ferdinand Frank

laravel language bootstrap ajax forms localization requests vue i18 inputs

01/02 2017

v1.1.6

1.1.6.0

A collection of vue.js form and input components to create pretty ajax requests.

  Sources   Download

MIT

The Requires

  • php >=5.6.4

 

by Ferdinand Frank

laravel language ajax forms localization requests vue i18 inputs

22/01 2017

v1.1.5

1.1.5.0

A collection of vue.js form and input components to create pretty ajax requests.

  Sources   Download

MIT

The Requires

  • php >=5.6.4

 

by Ferdinand Frank

laravel language ajax forms localization requests vue i18 inputs

09/01 2017

v1.1.4

1.1.4.0

A collection of vue.js form and input components to create pretty ajax requests.

  Sources   Download

MIT

The Requires

  • php >=5.6.4

 

by EpicArrow

laravel language ajax forms localization requests vue i18 inputs

08/01 2017

v1.1.3

1.1.3.0

A collection of vue.js form and input components to create pretty ajax requests.

  Sources   Download

MIT

The Requires

  • php >=5.6.4

 

by EpicArrow

laravel language ajax forms localization requests vue i18 inputs

08/01 2017

v1.1.2

1.1.2.0

A collection of vue.js form and input components to create pretty ajax requests.

  Sources   Download

MIT

The Requires

  • php >=5.6.4

 

by EpicArrow

laravel language ajax forms localization requests vue i18 inputs

08/01 2017

v1.1.1

1.1.1.0

A collection of vue.js form and input components to create pretty ajax requests.

  Sources   Download

MIT

The Requires

  • php >=5.6.4

 

by EpicArrow

laravel language ajax forms localization requests vue i18 inputs

06/01 2017

v1.01

1.01.0.0

A collection of vue.js form and input components to create pretty ajax requests.

  Sources   Download

MIT

The Requires

  • php >=5.6.4

 

by EpicArrow

laravel language ajax forms localization requests vue i18 inputs

06/01 2017

v1.0

1.0.0.0

A collection of vue.js form and input components to create pretty ajax requests.

  Sources   Download

MIT

The Requires

  • php >=5.6.4

 

by EpicArrow

laravel language ajax forms localization requests vue i18 inputs