Download the PHP package ddrcha/easyfield without Composer

On this page you can find all versions of the php package ddrcha/easyfield. 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 easyfield

Laravel - Easyfield

My little input builder for Laravel 6 and more

Installation

First install the package via composer

Then set reference to the package in adding two lines in your config/app.php file :

Easyfield integrates by default templates for Bootstrap 5 and Materialize.

You must publish one of them to use the package :

All templates (one by input type) become so available in your "[project]/resources/views/vendor/easyfield" folder. You are free to modify it and add others views (that you can set with "template" option).

Icons

By default Easyfield use Font Awesome icons. If you want to use materialize icons, you must publish config file and modify the "icons" variable :

(A file named "easyfield.php" will be added into your "[project]/config" folder).

Usage

Don't forget to include libraries you want to use (Bootstrap 5, Materialize, Datepicker, Select2, Font Awesome, etc...) in your view before using Easyfield.

The syntax

To display a field use this syntax :

All available options in the detail :

Option Required Description
type X String. 'type=' of the field. Possible values : 'text', 'password', 'textarea', 'select', 'file', 'radio', 'checkbox', 'submit' (button), 'switch'
name X String. 'name=' of the field
label String. Text displayed before the input
required String. Display * before label if 'true', 'false' by default
icon String. Add icon before field. The used library can be setted in config file
class String. Additional classes spent to the input field
width Integer. Size of the field (in 12 grid columns layout). '12' by default
data X (only for 'select' type) Eloquent collection
note String. Display a small information after field
value String. If you want to set a particular value by default
additional Associative Array (key => value). Add all additional attributes you need !
template String. Use a custom template file (ex : "text2" will use "resources\views\vendor\easyfield\text2.blade.php")

Simple examples

Nota : For a best rendering insert all your fields into tags (if you use Bootstrap 4).

Text

Password

File

Select

Advanced examples

Wysiwyg (via ckeditor 5)

Date Picker (via jquery DatePicker)

Multi select (via select2)


All versions of easyfield with dependencies

PHP Build Version
Package Version
Requires laravel/framework Version >=6.0
php Version >=7.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 ddrcha/easyfield contains the following files

Loading the files please wait ....