Download the PHP package metalogico/laravel-formello without Composer

On this page you can find all versions of the php package metalogico/laravel-formello. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-formello

image

Formello

A Laravel package for generating Bootstrap 5 and Tailwind CSS 4 forms based on models. Laravel 11+

Formello is a comprehensive form generation and handling tool for Laravel applications, inspired by Django forms.

SCR-20250730-kida

🎉 Motivation

The Laravel ecosystem offers powerful tools for building applications, from full-featured admin panels like Nova and Filament to complex form-handling libraries. However, I felt there was a need for a tool that sits in the "sweet spot" between these solutions.

Formello was created for developers who need to generate forms quickly without the overhead of a complete admin panel, but who also want a simpler, more intuitive API than more complex form libraries. It's designed to automate the repetitive aspects of form creation while giving you full control over the final output.

Currently, Formello ships with built-in support for Bootstrap 5 and Tailwind CSS 4.

If you use this project, please consider giving it a ⭐.

✨ Features

⚠️ Upgrading to v2.x

Versions 2.0 and 2.1 introduce breaking changes from the 1.x series.

Breaking changes in v2.0

New in v2.1

Migration from v1.x

After upgrading, republish the assets:

🛠️ Installation

  1. Install the package via Composer:

  2. Publish the assets:

  3. (Optional) Auto-publish assets on update

To ensure that Formello's assets are automatically updated every time you run composer update, you can add a command to the post-update-cmd script in your project's composer.json file.

😎 How to use

Creating a Form

Create a new form class that extends Metalogico\Formello\Formello. Fields are defined using the fluent FormelloField builder.

Remember to add these fields to your model's $fillable array otherwise Formello will not render them.

Using the artisan command

You can generate a basic formello file using this command:

The script will generate a skeleton file that contains a basic field definition for each fillable field found in your model.

Rendering the Form

In your controller for an empty form (create action):

or, for an edit form:

Then in your blade template:

If you want to render only the fields (without the <form> tag) you can use:

Conditional Logic

You can use isCreating() and isEditing() methods in your form class to dynamically change fields based on the form's mode:

CSS Framework Override

By default, Formello uses the framework set in config/formello.php. You can override it per form:

⚡ Reactive System

The reactive system enables field interdependencies without writing custom JavaScript from scratch. Add ->reactive() to any field to declare callbacks.

Client-side (instant)

Server-side (async PHP)

For operations that need database access (e.g., dependent selects):

Note: Server-side reactive requires a <meta name="csrf-token" content="{{ csrf_token() }}"> tag in your layout.

For full documentation see docs/reactive.md.

Creating Custom Widgets

Formello is designed to be extensible. To create a custom widget:

1. Publish the config file

Add your widget alias to the custom_widgets array:

2. Create the Widget Class

Create a class extending Metalogico\Formello\Widgets\BaseWidget:

3. Create the Blade Template

Create resources/views/widgets/star-rating.blade.php:

4. Use it in your form

Custom widgets get the reactive system for free — just add ->reactive() to the field config.

🎨 Asset Management

Formello uses a modular system for loading JS and CSS assets, avoiding conflicts with themes that already include the same libraries.

Blade Directives

Add these directives to your layout:

Disabling Libraries

If your theme already includes a library, disable it in config/formello.php:

Supported Libraries

Widget Library Assets
TomSelect Tom Select tom-select.complete.js, tom-select.default.min.css
Date, DateTime Flatpickr flatpickr.min.js, l10n/it.js, flatpickr.min.css
Mask IMask imask.min.js
Color, ColorSwatch Pickr pickr.min.js, nano.min.css
Wysiwyg Jodit jodit.min.js, jodit.min.css

📚 Documentation

⚖️ License

Laravel Formello is open-sourced software licensed under the MIT license.

🍺 Donations

If you really like this project and you want to help me please consider buying me a beer 🍺.


All versions of laravel-formello with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
laravel/framework Version ^9.0|^10.0|^11.0|^12.0|^13.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package metalogico/laravel-formello contains the following files

Loading the files please wait ...