Download the PHP package litepie/form without Composer

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

Litepie Form Builder

Package: litepie/form | Type: Laravel Form Builder | Laravel: 11+ & 12+ | PHP: 8.2+
AI Context: See .ai-context.md for structured package information for AI assistants

A comprehensive, production-ready Laravel form builder package inspired by the original Litepie/Form but completely rewritten for Laravel 12 with modern design patterns and advanced features.

๐Ÿ“‹ Table of Contents

โœจ Features

๐Ÿ“ฆ Installation

Publish the configuration and assets:

Include the CSS and JavaScript assets in your layout:

๐Ÿš€ Quick Start

Creating Fields

The package provides multiple ways to create fields:

Method 1: Using Field::make() (Recommended)

Method 2: Using Form Builder add() method

Method 3: Using Specific Field Classes

Basic Contact Form

Registration Form with File Upload

Helper Functions

Field Visibility & Permissions

Control field visibility based on user permissions and roles:

See VISIBILITY.md for complete visibility control documentation.

Performance: Caching Form Output

Enable caching for forms that don't change frequently:

Use caching for:

Grid Layout & Column Width

Control field widths for responsive grid layouts (works with Bootstrap, Tailwind, or any frontend):

Frontend Implementation:

Hierarchical Form Organization (Groups, Sections, Rows)

Organize complex forms with a hierarchical structure: Form โ†’ Groups โ†’ Sections โ†’ Rows โ†’ Fields

Key Features:

Alternative Syntax (without fluent methods):

Output Structure (toArray/toJson):

Frontend Rendering:

Divider Types:

๐Ÿ“ Field Types

'required' => true

]);

// Form container $container = form_container('my-container');

// Quick container creation $quickContainer = form_container_quick([ 'form1' => [ 'fields' => ['name' => 'text', 'email' => 'email'], 'containerOptions' => ['title' => 'Contact Info'] ] ], ['name' => 'Multi-Form Container', 'tabbed' => true]); blade @extends('layouts.app')

@section('content')

Contact Us

@if(session('success'))
{{ session('success') }}
@endif {!! $form->render() !!}

@endsection

@push('styles') {!! form_include_assets(true, false) !!} @endpush

@push('scripts') {!! form_include_assets(false, true) !!} @endpush vue

blade

getAttributesString() !!}> @if($field->hasErrors())
{{ $field->getFirstError() }}
@endif @if($field->getHelp())
{{ $field->getHelp() }}
@endif

javascript document.addEventListener('form:validation:success', function(event) { console.log('Form validated successfully', event.detail); });

document.addEventListener('form:validation:error', function(event) { console.log('Validation errors', event.detail.errors); }); bash

Run all tests

composer test

Run specific test suite

composer test -- --filter=FormBuilderTest

Run with coverage

composer test -- --coverage-html coverage bash git clone https://github.com/litepie/form.git cd form composer install composer test bash composer format # Fix code style composer format:check # Check code style composer analyse # Static analysis composer ci # Run all checks



## ๐Ÿ“„ License

The MIT License (MIT). Please see [LICENSE](LICENSE) for more information.

## โšก Performance & Caching

### Caching Support

Form containers support comprehensive caching to improve performance:

### Cache Configuration

Add to your `config/form.php`:

### Cache Benefits

- **50-90% faster rendering** for complex forms
- **Reduced server load** with cached HTML output
- **Automatic invalidation** when forms are modified
- **Tagged cache** for efficient bulk clearing
- **Multiple drivers** (file, redis, memcached)

For detailed caching documentation, see [doc/caching.md](doc/caching.md).

## ๏ฟฝ Documentation

- **[Examples](doc/examples.md)** - Comprehensive examples for all field types and features
- **[Container Examples](doc/container-examples.md)** - Multi-form container usage and patterns
- **[Client-Side Examples](doc/client-side-examples.md)** - JavaScript integration and API usage
- **[Caching Guide](doc/caching.md)** - Performance optimization with caching

## ๏ฟฝ๐Ÿ”’ Security

If you discover security vulnerabilities, please send an email to [email protected] instead of using the issue tracker.

## ๐Ÿ“ž Support

- ๐Ÿ“– [Documentation](https://litepie.com/docs/form)
- ๐Ÿ› [Issue Tracker](https://github.com/Litepie/Form/issues)
- ๐Ÿ’ฌ [Discussions](https://github.com/Litepie/Form/discussions)
- ๐Ÿ“ง [Email Support](mailto:[email protected])

---

## ๐Ÿข About

This package is part of the **Litepie** ecosystem, developed by **Renfos Technologies**. 

### Organization Structure
- **Vendor:** Litepie
- **Framework:** Lavalite
- **Company:** Renfos Technologies

### Links & Resources
- ๐ŸŒ **Website:** [https://lavalite.org](https://lavalite.org)
- ๐Ÿ“š **Documentation:** [https://docs.lavalite.org](https://docs.lavalite.org)
- ๐Ÿ’ผ **Company:** [https://renfos.com](https://renfos.com)
- ๐Ÿ“ง **Support:** [[email protected]](mailto:[email protected])

---

## ๐Ÿค– For AI Assistants

<!-- AI-METADATA-START -->
**Quick Context File**: [.ai-context.md](.ai-context.md) - Comprehensive package structure and patterns  
**Architecture Pattern**: Fluent Builder + Factory + Service Provider  
**Key Classes**: `FormBuilder`, `Field`, `FormRenderer`, `FormValidator`  
**Main Features**: Visibility Control, Caching, Hierarchical Organization, Grid Layout  
**Output Formats**: HTML (`render()`), Array (`toArray()`), JSON (`toJson()`)  
**Integration**: Laravel 11+/12+, Bootstrap/Tailwind, Vue/React/Angular  

**Common User Requests**:
- "Create form" โ†’ `Form::create()->add()->render()`
- "Hide field from users" โ†’ `->can('permission')` or `->roles(['admin'])`
- "Improve performance" โ†’ `->cache(ttl)`
- "Responsive layout" โ†’ `->row([Field::text()->col(6), ...])`
- "Complex sections" โ†’ `->group()->section()->row()`
- "JSON for frontend" โ†’ `->toArray()` or `->toJson()`
<!-- AI-METADATA-END -->

---

<div align="center">
  <p><strong>Built with โค๏ธ by Renfos Technologies</strong></p>
  <p><em>Empowering developers with robust Laravel solutions</em></p>
</div>

All versions of form with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2|^8.3
laravel/framework Version ^11.0|^12.0
illuminate/support Version ^11.0|^12.0
illuminate/validation Version ^11.0|^12.0
illuminate/view Version ^11.0|^12.0
illuminate/cache Version ^11.0|^12.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 litepie/form contains the following files

Loading the files please wait ...