Download the PHP package iam-deep/form-tool without Composer

On this page you can find all versions of the php package iam-deep/form-tool. 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 form-tool

Form Tool Package for Laravel 10+

StyleCI GitHub

A lightweight Laravel form tool to create your web app or admin panel easily!

Create complex CRUDs easily and save time. Create bug-free and deliver confidently.

I love examples, let's get into it directly:

Let me explain

Let's assume we have a database with a product table named products and with columns productId, productName, categoryId, price, image, description. And we have category table named categories with columns categoryId, categoryName

First, we have created a $model = new DataModel(); and on the 2nd line we have passed the table name and primary id of the product table. This is the simple way we tell the form tool that this is our CRUD table.

Then we create a CRUD by calling Doc::create() and the parameters are:

  1. The Laravel's controller class as $this
  2. Passing the $model we created above
  3. And the last parameter is the Closure which will provide us with a BluePrint as parameter.


Now let's understand our fields inside the Closure. For that let me tell you one thing for the most methods inside closure have 1st parameter as the database column name and 2nd as an optional label of that field. So here are the input fields:

  1. We have created a text field with the column productName and labelled as Product Name and applied the required validation.
  2. Then a dropdown with the column categoryId and labelled as Category instructing form tool to get the options from another table categories and then categoryId & categoryName separated by dots(.) to show as value and text of the <option> tag respectively i.e. <option value="categoryId">categoryName</option>. Finally, we have added the required validation.
  3. Then we have a price field with automatic digit validation as we have specified that it's a number field and then applied the required.
  4. Then we have created an image field which will automatically apply validation for the image file and upload the image under the sub-directory public/storage/. More on the file uploading later.
  5. And at last, we have created an editor by default CKEditor for our description column.

Full Code:

`


This will give us:

  1. Products listing page with Bulk Action (Duplicate, Delete), Search, Pagination, Sorting by Columns, Actions (Edit, Delete)

Screenshot of list page

  1. Product create page with all the fields mentioned above

Screenshot of create page

  1. Product edit page with all the fields mentioned above

Screenshot of edit page

  1. Products trash page: This page will contain deleted items. You can now delete them from trash permanently.

Screenshot of CRUD trash

  1. FormTool Activities: Will store all the activities like what item was created, updated, duplicated, deleted, restored and destroyed permanently.

Screenshot of activites

Screenshot of sctivities updated field

If you have understood this much then you are good to go to start with the package and come back to get help from the below documentation (I prefer this way of learning new things :wink:). If you prefer to read the documentation first then read it below.

We have many cool features like this. This is just a start. If you like this package please show it by giving it a star in github.


This package is still under active development.

You can boost start the setup with this skeleton package: form-tool-skeleton

Thanks


All versions of form-tool with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
intervention/image Version ^2.7.2
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 iam-deep/form-tool contains the following files

Loading the files please wait ....