PHPackages                             mach3builders/ui - 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. [Framework](/categories/framework)
4. /
5. mach3builders/ui

ActiveLibrary[Framework](/categories/framework)

mach3builders/ui
================

Laravel package to use with Mach3Builders' User Interface

v2.3(2y ago)11.3k2[1 PRs](https://github.com/mach3builders/ui-package/pulls)1BladePHP ^8.0

Since Dec 19Pushed 6mo ago11 watchersCompare

[ Source](https://github.com/mach3builders/ui-package)[ Packagist](https://packagist.org/packages/mach3builders/ui)[ RSS](/packages/mach3builders-ui/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (36)Used By (1)

Mach3Builders UI helpers
========================

[](#mach3builders-ui-helpers)

This package contains helper functions to assist our user interface package. see [ui.mach3builders.nl](http://ui.mach3builders.nl/) for more information on how to get started with it.

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

[](#installation)

```
composer require mach3builders/ui

```

```
php artisan vendor:publish --tag=public --force

```

```
php artisan vendor:publish --tag=config --force

```

Next install the [@mach3builders/ui](http://ui.mach3builders.nl/) package and include the CSS and JS needed.

Usage
-----

[](#usage)

### alert

[](#alert)

To show and alert (or notification) you can use the alert helper. After being redirected the alert will show on screen.

```
public function store()
{
    alert('message', 'succes');

    redirect('/home');
}
```

Or you could use the helper like this

```
alert('message')->type('succes');
alert('message')->dissmissable();
alert('message')->icon('user');

redirect()->alert('message', 'succes');

```

### notify

[](#notify)

Works the same as alert, with a few different methods

```
notify('message')->type('succes');
notify('message')->icon('user');

redirect()->notify('message', 'succes');

```

Next you need to add the components to your blade layout

```
@include('ui::components.alert')
@include('ui::components.notify')
```

### Delete modal

[](#delete-modal)

Creates a delete button with a modal to confirm deletion. When the confirm button is pressed a DELETE request is made the the given action.

```
@component('ui::actions.delete', ['action' => "/user/{$user->id}"])
    Are you sure you want to delete {{ $user->name }}
@endcomponent
```

You can also use the following slots:

- **action**: The url where to send a DELETE request to upon confirmation
- **icon**: An font awesome icon class
- **title**: Modal title
- **main**: Modal body
- **tooltip**: Tooltip text

```
@component('ui::actions.delete', ['action' => "/model/{$id}"])
    {!! trans('taxes.delete-body') !!}
@endcomponent
```

### Mail layout

[](#mail-layout)

Extend this for the basic mail layout (old version)

```
@extends('ui::mail.layout')
```

You have the following sections

- **style**: This will be set in the header. use &lt;style&gt;&lt;/style&gt;
- **logo**: Place a image tag on the top of the mail, this is outside the mail wrapper
- **content**: Main body of the email
- **footer**: Footer at the bottom of the email, inside the wrapper
- **unsubscribe**: Unsubscribe text at the end of the email

Extend this for the basic mail layout (new version)

```
@extends('ui::notifications.mail')
```

You can use the recommended mail formatting of Laravel

```
return (new MailMessage)
        ->greeting('Hello!')
        ->line('One of your invoices has been paid!')
        ->action('View Invoice', $url)
        ->line('Thank you for using our application!');
```

### Invoices: subscription

[](#invoices-subscription)

```
return view('ui::invoices.subscription', [
	'customer_company_name' => 'PKHold BV',
	'customer_name' => 'Paul Kruijt',
	'customer_street' => 'Piet Mondriaansingel 30',
	'customer_zipcode' => '3059 PD',
	'customer_city' => 'Rotterdam',
  	'customer_country' => 'Nederland',
  	'invoice_number' => 'M3B-000001',
  	'invoice_date' => '01-01-2021',
  	'payment_id' => 'tr_qwerty',
  	'platform_name' => 'Mach3Platform',
  	'plan_name' => 'Professional',
  	'plan_info' => 'Betaald voor Mach3Builders',
  	'plan_period' => '01-01-2021 tot 01-01-2022',
  	'plan_price' => '€ 19,95',
  	'invoice_tax' => '€ 4,19',
  	'invoice_total' => '€ 24,14',
  	'payment_method' => 'iDEAL',
]);
```

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance47

Moderate activity, may be stable

Popularity21

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity77

Established project with proven stability

 Bus Factor1

Top contributor holds 65.4% 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 ~58 days

Recently: every ~123 days

Total

34

Last Release

773d ago

Major Versions

v1.4.2 → v2.02020-12-07

PHP version history (4 changes)v1.1.0PHP ^7.0

v1.4PHP ^7.2.5

v2.1PHP ^7.3|^8.0

v2.2.2PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/1c933de3316dff6b15b9b876af2f0a9719f27df19223b1f4aa801fcd0f30eb09?d=identicon)[Mach3Builders](/maintainers/Mach3Builders)

---

Top Contributors

[![PaulKruijt](https://avatars.githubusercontent.com/u/3799040?v=4)](https://github.com/PaulKruijt "PaulKruijt (102 commits)")[![robbinbenard](https://avatars.githubusercontent.com/u/7994939?v=4)](https://github.com/robbinbenard "robbinbenard (41 commits)")[![ao-jhelmich](https://avatars.githubusercontent.com/u/17061364?v=4)](https://github.com/ao-jhelmich "ao-jhelmich (13 commits)")

### Embed Badge

![Health badge](/badges/mach3builders-ui/health.svg)

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

###  Alternatives

[laravel/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k96.9M674](/packages/laravel-socialite)[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.1k84.2M225](/packages/laravel-horizon)[laravel/ui

Laravel UI utilities and presets.

2.7k134.9M601](/packages/laravel-ui)[laravel/jetstream

Tailwind scaffolding for the Laravel framework.

4.1k19.8M136](/packages/laravel-jetstream)[stancl/tenancy

Automatic multi-tenancy for your Laravel application.

4.3k6.6M40](/packages/stancl-tenancy)[internachi/modular

Modularize your Laravel apps

1.1k662.4k8](/packages/internachi-modular)

PHPackages © 2026

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