Download the PHP package reaper/ui without Composer

On this page you can find all versions of the php package reaper/ui. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package ui

Reaper UI

Custom Bootstrap-based UI components for Laravel, plus a Livewire-powered global modal system.

Requirements

Installation

This package is currently distributed as a local path repository, not from Packagist. In the consuming app's root composer.json:

Then install:

The service provider is picked up automatically via Laravel package discovery (declared in composer.json under extra.laravel.providers) — no manual registration needed in config/app.php.

Publishing assets

The package exposes two publish tags:

Tag Publishes Destination
reaper-ui-config config/global-modal.php config/global-modal.php
reaper-ui-assets resources/js/global-modal.js resources/js/vendor/reaper-ui/global-modal.js

Publish everything:

Or publish selectively:

You only need reaper-ui-config if you plan to define Opening a modal).

Or use the package's own publish command

The package also ships reaper-ui:publish, a thin wrapper around vendor:publish that's scoped to only this package's files — so it never touches publishables from other packages, unlike a bare php artisan vendor:publish.

What the package registers

On boot, ReaperUiServiceProvider (src/ReaperUiServiceProvider.php):

Button component

<x-reaper-ui::btn> renders a Bootstrap button (or an <a> if link is given and resolves to a named route).

Props

Prop Type Description
text string Button label (alternative to passing the slot)
type string Dot-separated color.size, see below
icon string Dot-separated icon-name.position, see below
action / param string Renders wire:click="{action}('{param}')"
link string A named route. If set (and it exists via Route::has()), renders an <a href="{{ route(...) }}"> instead of a <button>
disabled bool Adds the disabled attribute
stopPropagation bool Adds onclick="event.stopPropagation();"

Regular Blade attributes (class, id, ...) can be passed normally and are merged onto the root <button> element (not the <a> variant).

type — color and size

Dot-separated, color[.size]:

icon — icon

Renders a Bootstrap Icon (<i class="bi bi-...">) next to the label.

Two names are aliased for backwards compatibility with the host app's original icon set: save → bi bi-floppy, add → bi bi-plus-circle. Any other name is used as-is (bi bi-{name}).

Global Modal

A single Livewire-driven modal shell that can mount any Livewire component inside it, driven either from server-side Livewire code or from a plain DOM click/JS event — useful for opening the same modal from a Blade button, an Alpine component, or fully static HTML without wiring up Livewire on the trigger element itself.

1. Configure the modals you want available

After publishing reaper-ui-config, edit config/global-modal.php:

Each top-level key (edit-user above) is the modal name you reference when opening it. component-path is the only required field.

stable controls the Livewire wire:key used for the nested component: leave it false (default) so the child component is force-remounted every time the modal opens (fresh state per open, even with the same params); set it true if you want the same params to reuse an existing component instance instead of remounting.

2. Render the modal shell once in your layout

3. Load the JS trigger helper (optional — only for non-Livewire triggers)

Publish reaper-ui-assets, then import and initialize it once (e.g. in resources/js/app.js):

This wires up two things globally:

Opening a modal

From a plain button (no Livewire needed on the trigger):

By dispatching the CustomEvent yourself (e.g. from Alpine or vanilla JS):

From server-side Livewire code, dispatch the browser event open-global-modal directly:

In all cases, component must match a key in config/global-modal.php, and params is passed into the mounted component as its params prop/argument.

Inside the mounted component

The component referenced by component-path receives a params array (from mount(array $params) or a public $params property, depending on how you write it). Optionally listen for global-modal-component-ready to run setup logic once it's live in the DOM:

Closing

The modal closes when the user clicks the backdrop, clicks the × close button, or presses Esc. There's no manual "close" call needed from inside the child component for the common case.

Notes / known limitations


All versions of ui with dependencies

PHP Build Version
Package Version
Requires livewire/livewire Version ^3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package reaper/ui contains the following files

Loading the files please wait ...