Download the PHP package mrgiant/form-builder without Composer

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

mrgiant/form-builder

A Laravel form-builder module extracted from the GoldenHospital application: dynamic forms, questions/fields, responses, and an approval-workflow engine, with Vue 3 builder components and Blade renderers (including PDF templates).

Requirements

Host-provided dependencies

This package was extracted from a monolith and is designed to be consumed by that same application. The controllers and the Translatable concern therefore still reference a handful of classes that the host app must provide. These are intentionally left pointing at the App\ namespace:

Referenced class Used by Purpose
App\Http\Controllers\Controller all controllers base controller (auth/validation traits)
App\Models\User WorkflowController, FormResponseWorkflowAction, Services\WorkflowRunner approver identity
App\Notifications\GeneralNotficationMailsAttachment AnswerController submit-notification email (host-env: shells out to a node PDF script + hardcoded domain)
App\Http\Services\ReportsGenerator\PdfFooter ResponsesController PDF footer
App\Http\TranslatorAction\Translator, App\Models\Translation Concerns\Translatable i18n fields

The workflow engine and its collaborators now live in the packageMrgiant\FormBuilder\Services\WorkflowRunner, Mrgiant\FormBuilder\Notifications\FormWorkflowNotification, and Mrgiant\FormBuilder\Rules\UniqueAnswerResponses — since they are form-domain logic, not host infrastructure. The remaining App\ references above are genuine host concerns (identity, generic mail/PDF/Excel tooling, i18n).

Installation (local path repository)

In the host app's composer.json:

then:

The service provider is auto-discovered. It will:

Publish what you want to customize:

Frontend

The package ships raw .vue source. Publish it and register the components on your existing global Vue app:

This registers: forms-index, forms-manage-questions, forms-questions-answers, forms-responses-index, forms-workflow-builder, approvals-inbox, approval-tracker, form-charts.

The components require golden-logic-ui, vuedraggable, and Vue 3 in the host. They also import a few host-provided Vue libraries via the @ alias (@resources/js), which the host must define in vite.config.js:

Import Provided by host at
@/services/multilingualService resources/js/services/
@/components/fields/* shared field inputs (also used by other host features)
@/components/fieldsAnswer/* shared answer-display inputs
@/components/Charts/Pie.vue shared chart components

These are intentionally not bundled so the host owns a single copy (they are shared with other host features). Re-run the publish command after updating the package to refresh the copy under resources/js/vendor/form-builder.

Configuration

config/form-builder.php:

Key Default Meaning
register_routes false Let the package own the form routes.
route_prefix admin URL prefix for the route group.
route_name_prefix admin. Route-name prefix (admin.forms.*).
middleware ['web', 'auth'] Middleware for the route group.
user_model App\Models\User Approver model.

Cutover status (GoldenHospital host)

The cutover has been performed in the GoldenHospital host — the package is the source of truth for the module's models, controllers, and Vue components:

  1. ✅ Host app/Models/{Form,Question,Answer,FormResponse,FormResponse*,FormWorkflow*}.php deleted; all references repointed to Mrgiant\FormBuilder\Models\*.
  2. ✅ Host app/Http/Controllers/Admin/{Forms,Questions,Answer,Responses,Workflow}Controller.php deleted; routes/web.php + routes/api.php now reference the package controllers. (The route definitions stay in the host so they keep the host's admin middleware/locale/gate context; register_routes remains false.)
  3. ✅ Host resources/js/components/cruds/Forms/** and FormCharts.vue deleted; app.js registers the components via registerFormBuilder(app, { lazy }) from the published resources/js/vendor/form-builder.

Remaining (optional) hardening:

License

MIT


All versions of form-builder with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^12.0|^13.0
illuminate/database Version ^12.0|^13.0
illuminate/http Version ^12.0|^13.0
illuminate/routing Version ^12.0|^13.0
maatwebsite/excel Version ^3.1
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 mrgiant/form-builder contains the following files

Loading the files please wait ...