PHPackages                             lhaamed/blade-bundler - 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. lhaamed/blade-bundler

ActiveLibrary

lhaamed/blade-bundler
=====================

A super-efficient package to bundle all similar structures for your Laravel blades. Using this package will give you incredible development speed, which is necessary at critical points. You will be able to customize it to any level you want.

v0.1.6(1y ago)214MITPHPPHP ^8.1

Since Jan 27Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/lhaamed/BladeBundler)[ Packagist](https://packagist.org/packages/lhaamed/blade-bundler)[ RSS](/packages/lhaamed-blade-bundler/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (7)Dependencies (1)Versions (8)Used By (0)

BladeBundler
============

[](#bladebundler)

a super efficient package to bundle all similar structures for your Laravel blades. Using this package will give you incredible development speed, which is necessary at critical points. You will be able to customize it to any level you want.

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

[](#installation)

Like any other packages in the Packagist you'll need to add service provider and Facade aliases into your config/app.php using the following lines:

first of all, you need to run the following command in the root directory of your app in the terminal:

```
  composer require lhaamed/blade-bundler
```

then, add this as a service provider in the "providers" array:

```
  BladeBundler\BladeBundlerServiceProvider::class,
```

then add this as an alias in the "aliases" array:

```
  'BB' => BladeBundler\BB::class
```

never forget to use the following commands in the terminal because you have changed config files.

```
  php artisan optimize
```

```
  composer du
```

what is ListBundle
------------------

[](#what-is-listbundle)

The ListBundle is a Bundle that helps you create the main structure of your lists in a better way using the package principles. you can have different lists for every model and any kind of usage. for example, for showing a list of users you can have different types of lists and in each controller, you can call any of them by just changing the function name in the listGenerator function. the advantage of this system is having both Collection base and Paginated base lists. it means you can pass the data as Collection or Paginated Object and based on the type of data the Bundler generates the desired bundle for you. In this release, there is no view for lists by default. don't forget that we are working on making things easier for you not causing troubles in the dev process. By getting dd() from the ListBundle object you'll find out how to show it in your blade file. not having certain view files for lists helps you bind the ListBundle with your theme at any level of complexity.

how to use ListBundle
---------------------

[](#how-to-use-listbundle)

this package will help you to organize generating forms and table lists in your app. so you can have full control over all existing forms and lists in any aspect. To have a list you need your $query which could be paginated or not. if you pass the paginated query you'll get the bundle paginated and if you don't it gives the bundle properly. the other parameter that is necessary to make a bundle is a map function. the bundler with pass the query through the map function to generate the list as you desire.

```
  $paginated_query = User::paginate(30)->onEachSide(2);
  $listBundle = BB::generateList($paginated_query,['this','defaultListMap']);
```

or

```
  $collected_query = User::all();
  $listBundle = BB::generateList($collected_query,['this','defaultListMap']);
```

so let's take a look at the map function structure.

```
public static function defaultListMap(listBundle $listBundle ,LengthAwarePaginator|Collection $query): listBundle
{
    $items = BB::getQueryItems($query);

    $mappedData = array_map(function ($eachRecord) use ( $query) {
        $recordModel = $query->find($eachRecord['id']);
        $action_links = [];

        return [
            $recordModel->showName(),
            $recordModel->showLastname(),
            'actions' => $action_links
        ];
    }, $items);

    $listBundle->setTitle('custom title for the list');
    $listBundle->setTableHeader([
        'name',
        'lastname',
        'actions',
    ]);
    $listBundle->setTableRecords($mappedData);

    return $listBundle;
}
```

in this function, you define what are the heads and each cell's exact value. so you have full control over your list in a better way.

what is FormBundle
------------------

[](#what-is-formbundle)

The FormBundle is a Bundle that helps you create forms in Bootstrap structure. After creating the Form via the FormGenerator you have to append a new section. In each section, you are allowed to append rows and inside the rows, you can append your cells. each cell contains input and you can see the list of supported inputs in the following:

License
-------

[](#license)

[MIT](https://choosealicense.com/licenses/mit/)

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance71

Regular maintenance activity

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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.

###  Release Activity

Cadence

Every ~78 days

Recently: every ~114 days

Total

7

Last Release

369d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cc36fe9488db4d177a9650436eb83b6ca22ad6bfae0c5fc7cfdb9d9f318dcbd9?d=identicon)[lhaamed](/maintainers/lhaamed)

---

Top Contributors

[![lhaamed](https://avatars.githubusercontent.com/u/154215070?v=4)](https://github.com/lhaamed "lhaamed (125 commits)")

### Embed Badge

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

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

###  Alternatives

[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11320.2M21](/packages/anourvalar-eloquent-serialize)[namu/wirechat

A Laravel Livewire messaging app for teams with private chats and group conversations.

54324.5k](/packages/namu-wirechat)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135192.6k5](/packages/statamic-rad-pack-runway)

PHPackages © 2026

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