PHPackages                             barbosalb96/blade - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. barbosalb96/blade

ActiveLibrary[Templating &amp; Views](/categories/templating)

barbosalb96/blade
=================

011PHP

Since Nov 25Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Barbosalb96/Generate_form_request)[ Packagist](https://packagist.org/packages/barbosalb96/blade)[ RSS](/packages/barbosalb96-blade/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

barbosalb96/blade
=================

[](#barbosalb96blade)

A Laravel package for generating Blade form templates based on a request class with validation rules.

Installation
------------

[](#installation)

You can install this package via Composer. Run the following command in your Laravel project:

```
composer require barbosalb96/blade:dev-master --prefer-stable
```

Once installed, the package will automatically register its service provider.

Usage
-----

[](#usage)

After installation, you can use the `make:form-from-request` command to generate a Blade form based on an existing request class.

### Command Syntax

[](#command-syntax)

```
php artisan make:form-from-request {request}  {type}
```

- `{request}`: The name of the request class (e.g., `UserRequest`).
- `{type}`: The form style to generate. This can be either `tailwind` or `bootstrap`.

### Example

[](#example)

To generate a Blade form from a request class `UserRequest` with Tailwind CSS styling:

```
php artisan make:form-from-request UserRequest type tailwind
```

This will generate a Blade view in `resources/views/UserRequest.blade.php` based on the validation rules defined in the `UserRequest` class.

### Form Fields

[](#form-fields)

The form fields are automatically generated based on the validation rules of the request class. The following field types are supported:

- **text**: For string-based fields.
- **number**: For integer fields.
- **checkbox**: For boolean fields.
- **date**: For date fields.
- **email**: For email fields.

### Views

[](#views)

The Blade views are generated from two templates:

- `form_template_tailwind`: For generating forms with Tailwind CSS classes.
- `form_template_bootstrap`: For generating forms with Bootstrap classes.

You can customize these templates by publishing them to your application:

```
php artisan vendor:publish --provider="barbosalb96\Blade\GenerateBladeFromRequestServiceProvider" --tag="views"
```

The views will be published to `resources/views/vendor/lucas/blade`.

Service Provider
----------------

[](#service-provider)

The package includes a service provider (`GenerateBladeFromRequestServiceProvider`) that registers the necessary commands and views.

Contributing
------------

[](#contributing)

Feel free to fork the repository and create a pull request if you have suggestions for improvements or bug fixes.

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity16

Early-stage or recently created project

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/7e7c0e50123d94f51fda8c5cc526219ed64b25f9d6ddab5fb6e59b3d9d7df3d9?d=identicon)[Barbosalb96](/maintainers/Barbosalb96)

### Embed Badge

![Health badge](/badges/barbosalb96-blade/health.svg)

```
[![Health](https://phpackages.com/badges/barbosalb96-blade/health.svg)](https://phpackages.com/packages/barbosalb96-blade)
```

###  Alternatives

[mustache/mustache

A Mustache implementation in PHP.

3.3k44.6M291](/packages/mustache-mustache)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[whitecube/nova-flexible-content

Flexible Content &amp; Repeater Fields for Laravel Nova.

8053.0M25](/packages/whitecube-nova-flexible-content)[mopa/bootstrap-bundle

Easy integration of twitters bootstrap into symfony2

7042.9M33](/packages/mopa-bootstrap-bundle)[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3871.2M](/packages/limenius-react-bundle)[nicmart/string-template

StringTemplate is a very simple string template engine for php. I've written it to have a thing like sprintf, but with named and nested substutions.

2101.7M30](/packages/nicmart-string-template)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
