Download the PHP package phara/ui-kit without Composer

On this page you can find all versions of the php package phara/ui-kit. 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-kit

Phara UI Kit

A Laravel Livewire UI component library with Heroicons integration, dark mode support, and Alpine.js-powered interactivity.

Latest Version on Packagist License

Requirements

Installation

Install the package via Composer:

The service provider is auto-discovered by Laravel — no manual registration needed.

Layout Setup

Add @uiStyles in the <head> and @uiScripts before </body> in your layout file:

@stack('scripts') is required — components like Chart, Calendar, and Toast push scripts to this stack.

Alpine.js Setup

If Alpine.js is not already installed:

Then in your resources/js/app.js:

Usage

All components are available under the ui:: namespace:


Components

Button

Prop Values Default
variant primary, secondary, danger, outline, ghost primary
size sm, md, lg md
icon Any Heroicon name
iconPosition left, right left
href URL string

Icon

All 324 Heroicons are included out of the box.

Prop Values Default
name Any Heroicon name required
variant outline, solid outline
size xs, sm, md, lg, xl md

Input

Prop Values Default
name string required
label string
type text, email, password, search, etc. text
size sm, md, lg md
variant default, filled default
icon Any Heroicon name

Smart behaviors:


Copy to Clipboard

Prop Values Default
text string
style button, icon button
variant default, primary, ghost, outline default
size sm, md, lg md
successMessage string Copied!
icon Heroicon name clipboard-document
successIcon Heroicon name check

Theme Toggle

Prop Values Default
style button, toggle button
size sm, md, lg md

Automatically detects system preference on first load and persists the user's choice in localStorage.


Dark Mode

All components support dark mode out of the box. No extra configuration needed.

Icons Reference

Browse all available icons at heroicons.com. Use the icon name directly in any icon prop:

License

MIT


All versions of ui-kit with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
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 phara/ui-kit contains the following files

Loading the files please wait ...