PHPackages                             pixelwrap/laravel - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. pixelwrap/laravel

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

pixelwrap/laravel
=================

PixelWrap Laravel adapter

v1.0.14(1y ago)0375mitPHPCI passing

Since Feb 23Pushed 1y ago1 watchersCompare

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

READMEChangelogDependencies (2)Versions (17)Used By (0)

PixelWrap for Laravel
=====================

[](#pixelwrap-for-laravel)

**PixelWrap** allows you to quickly build dynamic front-end of your application using simple YAML schemas. No need to write individual HTML components—just define your UI structure in a YAML file, and let **PixelWrap** do the rest of thw work for you. It will handle creation the layouts, related components, and user interactions for you.

With built-in support for **Tailwind CSS**, **PixelWrap** streamlines the process of building user interfaces, saving developers time and effort. PixelWrap ensures that the final product is both visually appealing and highly functional, without sacrificing design integrity or user interaction quality. Perfect for developers who want to move quickly and efficiently.

### More information can be found at [PixelWrap](https://github.com/pixelwrap/pixelwrap)

[](#more-information-can-be-found-at-pixelwrap)

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

[](#installation)

Install **PixelWrap** via Composer by running the following command:

```
composer require pixelwrap/laravel
```

Publish the Assets
------------------

[](#publish-the-assets)

Once the package is installed, you need to publish the necessary assets, such as configuration files and views.

Run the following Artisan command to publish the assets:

```
php artisan vendor:publish --provider="PixelWrap\Laravel\PixelWrapServiceProvider"
```

This will publish the configuration file into your Laravel application.

Add the PixelWrap Container
---------------------------

[](#add-the-pixelwrap-container)

In your main layout Blade file (example `resources/views/layouts/app.blade.php` or a similar location), add the following code where you’d like to display the generated UI content:

```

    @yield('pixelwrap-container')

```

Configuration
-------------

[](#configuration)

Configure the behavior of PixelWrap by modifying the `config/pixelwrap.php` file. Set the blade html template file to `page-root`. For example if my template is `app.blade.php` set it to 'app' as show below.

```
return [

    /*
    |--------------------------------------------------------------------------
    | PixelWrap configuration
    |--------------------------------------------------------------------------
    |
    | PixelWrap offers different types of frontends
    | The default frontend framework is defined below.
    |
    */

    'theme' => "tailwind",
    'page-root' => 'app',
];
```

You can modify these settings based on your project’s design requirements.

Integrating Tailwind CSS
------------------------

[](#integrating-tailwind-css)

### Add PixelWrap and YAML File Paths to Tailwind Configuration

[](#add-pixelwrap-and-yaml-file-paths-to-tailwind-configuration)

To ensure live reloading when editing the `yaml` templated and avoid purging the required CSS during production builds, you need to update the content array in your `tailwind.config.js` file. This will ensure Tailwind picks up the package and YAML files correctly.

```
module.exports = {
    darkMode: 'class', // Dark mode support.
    content: [
        /* Your existing config */
        // Our config next
        './vendor/pixelwrap/laravel/resources/**/*.php',
        './resources/**/*.yaml',
        // Add any other paths where your content lives
    ],
}
```

### Tailwind dark mode and light mode support.

[](#tailwind-dark-mode-and-light-mode-support)

Where you have your javascript files include this in your imports.

```
import '../../vendor/pixelwrap/laravel/resources/js/tailwind.js'

```

Optionally, Add this inline in `head` tag to avoid FOUC

```
if (localStorage.getItem('color-theme') === 'dark' || (!('color-theme' in localStorage) && window.matchMedia('(prefers-color-scheme: dark)').matches)) {
    document.documentElement.classList.add('dark');
} else {
    document.documentElement.classList.remove('dark')
}
```

Getting Started
---------------

[](#getting-started)

Once you have installed PixelWrap, you can start creating your YAML schema to define your UI. Here’s a step-by-step guide:

### 1. Create Your First YAML Schema

[](#1-create-your-first-yaml-schema)

All schemas files should go under `resources\pixelwrap\` directory You can define your UI structure in a YAML file. Below is an example schema: Lets call is `account.yaml`

```
type: Grid
cols: 3
nodes:
    - type: Input
      id: name
      label: 'Full Name'
      fieldType: text
    - type: Input
      id: email
      label: 'Email Address'
      fieldType: email
    - type: Select
      id: role
      label: 'User Role'
      options:
          admin: 'Administrator'
          user:  'Accountant'
          customer: 'Customer'
```

This schema will generate a grid with three columns, containing an input for name, email, and a dropdown for user roles.

Now create a rew route in `web.php` and navigate your browser to your web application `/`

```
use Illuminate\Support\Facades\Route;
use PixelWrap\Laravel\Facades\PixelWrapRenderer;

Route::get('/', function (PixelWrapRenderer $res) {
    return $res->render('test');
});
```

Documentation
-------------

[](#documentation)

For a detailed guide on how to create and customize your YAML schemas, as well as more examples of UI components, visit the official [PixelWrap Documentation](https://github.com/pixelwrap/pixelwrap).

Contributing
============

[](#contributing)

To set up your development environment and contribute to the project.

1. Create a New Laravel Project
-------------------------------

[](#1-create-a-new-laravel-project)

First, you need to create a new Laravel project. If you don’t have Laravel installed globally, install it via Composer:

```
composer global require laravel/installer
```

Once Laravel is installed, create a new Laravel project by running:

```
laravel new pixelwrap-project
cd pixelwrap-project
```

Alternatively, you can use Composer to create the Laravel project:

```
composer create-project --prefer-dist laravel/laravel pixelwrap-project
cd pixelwrap-project
```

2. Setup the `packages/pixelwrap` directory
-------------------------------------------

[](#2-setup-the-packagespixelwrap-directory)

Create the directory

```
mkdir -p packages/pixelwrap
```

Clone this repository locally

```
git clone git@github.com:pixelwrap/laravel.git packages/pixelwrap/laravel
```

### 3. Add the Repository to `composer.json` of the newly created project.

[](#3-add-the-repository-to-composerjson-of-the-newly-created-project)

```
"repositories": [
    {
        "type": "path",
        "url": "packages/pixelwrap/laravel"
    }
]
```

### 4. Install the local dependency via Composer

[](#4-install-the-local-dependency-via-composer)

```
composer require pixelwrap/laravel
```

This will install the `pixelwrap/laravel` package from your local directory.

### 5. Working on your new feature

[](#5-working-on-your-new-feature)

Create a New Branch for Your Work

```
git checkout -b your-feature-branch
```

Make your changes in this branch. All changes made are done inside the `packages/pixelwrap/laravel` directory. You can use the laravel project created to test the new features you are working on.

### 6. Submit a Pull Request

[](#6-submit-a-pull-request)

Once you’re ready to submit your changes:

- Push your branch to your forked repository `git push origin your-feature-branch`
- Open a pull request to the main repository’s main branch.

Thank you for contributing! We appreciate your help in improving the PixelWrap.

If you have any questions or run into issues, feel free to ask for help in the issues section of this repository.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance48

Moderate activity, may be stable

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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 ~7 days

Recently: every ~19 days

Total

15

Last Release

394d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4579591?v=4)[Griffins Oringo](/maintainers/griffins)[@griffins](https://github.com/griffins)

---

Top Contributors

[![griffins](https://avatars.githubusercontent.com/u/4579591?v=4)](https://github.com/griffins "griffins (201 commits)")

### Embed Badge

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

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

103519.9k53](/packages/friendsoftypo3-content-blocks)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1189.8k](/packages/rcsofttech-audit-trail-bundle)[php-soap/wsdl

Deals with WSDLs

184.0M19](/packages/php-soap-wsdl)[blackfire/player

A powerful web crawler and web scraper with Blackfire support

49617.1k](/packages/blackfire-player)[altis/local-server

Local Server module for Altis

18221.6k3](/packages/altis-local-server)

PHPackages © 2026

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