PHPackages                             codeiucom/laravel-sfb - 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. codeiucom/laravel-sfb

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

codeiucom/laravel-sfb
=====================

CodeIU Laravel Single File Blade

v1.0.0(4y ago)09WTFPLJavaScriptPHP ^8.0

Since Mar 1Pushed 4y ago1 watchersCompare

[ Source](https://github.com/codeiucom/laravel-sfb)[ Packagist](https://packagist.org/packages/codeiucom/laravel-sfb)[ RSS](/packages/codeiucom-laravel-sfb/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Laravel Single File Blade
=========================

[](#laravel-single-file-blade)

script/style section convert to js/css file.

install
-------

[](#install)

use composer

```
composer require codeiucom/laravel-sfb
```

Use normal (without laravel-mix)
--------------------------------

[](#use-normal-without-laravel-mix)

1. sample-layout.blade.php

    ```

            Document
            @stack('head-style')

            @yield('content')

            @stack('body-js')

    ```
2. sample.blade.php

    ```
    @include('sample-layout')

    @section('content')

        text

    @endsection

    @sfbScript('body-js')

        console.log("test");

    @endSfb

    @sfbStyle('head-style')

        .div {
            color: gray;
        }

    @endSfb
    ```
3. reload browser

Use with laravel-mix
--------------------

[](#use-with-laravel-mix)

install npm package

```
npm install vendor/codeiucom/laravel-sfb/node_module
```

### Use

[](#use)

1. edit laravel.mix.js

    - normal

        ```
        require("codeiucom-laravel-sfb");
        mix.sfb(`resources/views/**/*.blade.php`);
        ```
    - or with scss options

        ```
        require("codeiucom-laravel-sfb");
        mix.sfb(`resources/views/**/*.blade.php`, {
            sass: {
                pluginOptions: [],
                postCssPlugins: [require("tailwindcss")],
            },
        });
        ```
2. sample.blade.php

    ```
    @include('sample-layout')

    @section('content')

        text

    @endsection

    @sfbMixScript('body-js')

        console.log("test");

    @endSfb

    @sfbMixStyle('head-style')

        .div {
            color: gray;
        }

    @endSfb
    ```
3. run laravel mix

    ```
    npm run dev
    # or
    npm run prod
    ```

Option
------

[](#option)

### change compiled path

[](#change-compiled-path)

Default path: /public/assets/sfb
edit .env file

```
# /public/vdendor/sfb is
CODEIU_LARAVEL_SFB_FILE_DIR=vendor/sfb
```

### change laravel mix compiled path

[](#change-laravel-mix-compiled-path)

edit .env file

```
CODEIU_LARAVEL_SFB_MIX_FILE_DIR=sfb
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Unknown

Total

1

Last Release

1585d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/99959671?v=4)[CodeIU](/maintainers/codeiucom)[@codeiucom](https://github.com/codeiucom)

---

Top Contributors

[![anonymouslab](https://avatars.githubusercontent.com/u/17001756?v=4)](https://github.com/anonymouslab "anonymouslab (2 commits)")

### Embed Badge

![Health badge](/badges/codeiucom-laravel-sfb/health.svg)

```
[![Health](https://phpackages.com/badges/codeiucom-laravel-sfb/health.svg)](https://phpackages.com/packages/codeiucom-laravel-sfb)
```

###  Alternatives

[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.1k17.8k](/packages/prestashop-prestashop)[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3851.2M](/packages/limenius-react-bundle)[rmrevin/yii2-minify-view

Yii2 View component with auto minification css &amp; js in runtime

191321.1k7](/packages/rmrevin-yii2-minify-view)[nystudio107/craft-minify

A simple plugin that allows you to minify blocks of HTML, CSS, and JS inline in Craft CMS templates.

37469.2k35](/packages/nystudio107-craft-minify)[nystudio107/minify

A simple plugin that allows you to minify blocks of HTML, CSS, and JS inline in Craft CMS templates.

1062.0k](/packages/nystudio107-minify)[jelix/wikirenderer

WikiRenderer is a library to generate HTML or anything else from wiki content.

1712.3k1](/packages/jelix-wikirenderer)

PHPackages © 2026

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