Download the PHP package knppy/ui without Composer

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

Knppy UI

Packagist PHP from Packagist Laravel versions GitHub Workflow Status (master) Total Downloads

Knppy UI is a robust Shadcn/ui port for Laravel applications. Components are Blade views plus small Alpine modules that are copied into your project, so you own and can edit the code.

Requirements

Installation

You can install the package via Composer:

Optionally publish the configuration file:

Usage

Then use them as anonymous Blade components:

Families use flat kebab-case names (dialog, dialog-trigger, dialog-content, ...), not dotted ones. Pass extra classes with class; they are merged with the component defaults through tailwind-merge.

Setup

ui:install asks for a base color (currently only neutral; or pass --baseColor=neutral) and writes two files:

Make sure app.css is compiled by Vite. Dark mode is class based (.dark).

Adding Components

Run ui:add without names to search the default registry and pick components interactively, or pass --all to add every component of the default registry.

To see what a registry offers, run ui:list (optionally with a registry such as @acme; the default registry is used otherwise):

Listing reads registry.json next to the items (the URL template with {name} replaced by registry, or registry.json in a local directory); a registry must publish it to be listable. The bundled registry/r/registry.json is generated by composer registry:build.

Files are written to the aliases paths in components.json (aliases.ui for registry:ui files, aliases.js for registry:js files, aliases.components otherwise). Existing files are skipped unless --overwrite is given. Registry dependencies are installed too; missing Composer and npm packages are installed automatically (composer require / npm install in the project root; npm only when a package.json exists). Pass --skip-packages to print the commands instead.

A bare name uses default_registry; @namespace/name picks a registry. Registries are configured in config/ui.php and can be extended per project in components.json:

A registry value is a URL template containing {name} or a local directory of {name}.json files. Each item is JSON with inline file content (shadcn style). If the remote @knppy registry is unavailable, the registry bundled with this package is used instead silently (pass -v to ui:add to see a notice; disable with UI_REGISTRY_FALLBACK=false); other registries never fall back.

Alpine.js components

Components that need Alpine ship a small JS module (resources/js/ui/dialog.js) and depend on the alpine item, which installs the loader resources/js/ui.js and alpinejs. Import the loader once in your app.js:

The loader uses Vite's import.meta.glob('./ui/*.js'), so every module ui:add drops into resources/js/ui/ registers itself with Alpine automatically. Delete a module and it stops being registered. The loader also adds x-data to <body> (unless it already has one) so magics like $toast work anywhere on the page. Add "js": "resources/js" to aliases in components.json if it is missing.

Livewire

When Livewire is on the page, its bundled Alpine instance is used and the loader does not start a second one. Components that expose state through x-modelable (for example dialog, select, checkbox, switch, slider, tabs) accept x-model and wire:model.

Helpers

Ui::classes('base')->add('more') builds class strings, and $attributes->twMerge('base classes') merges a component attribute bag with Tailwind-aware conflict resolution. Tune the merger (class groups, prefix, theme) under twMerge in config/ui.php.

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Thank you for considering contributing to Knppy UI! Please review our contributing guide to get started.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

Knppy UI is open-sourced software licensed under the MIT license.


All versions of ui with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
gehrisandro/tailwind-merge-php Version ^1.2
illuminate/http Version ^12.0||^13.0
illuminate/process Version ^12.0||^13.0
illuminate/support Version ^12.0||^13.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 knppy/ui contains the following files

Loading the files please wait ...