Download the PHP package wallacemaxters/bless-ui without Composer

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

Bless UI

The Bless UI package is a set of headless Blade components whose styles can be modified via a configuration file. This allows you to create styles for components previously defined by Bless UI, without worrying about their behavior.

Bless UI works perfectly with Tailwindcss, but it is also possible to define style classes from other css frameworks.

Install

To install Bless UI in your Laravel application, you need to use composer, as follows:

After installation, you can make the components available for use in your Blade Views through the bless-ui:list-components command.

Components Avaliable

Components
ui::avatar
ui::button
ui::card
ui::checkbox
ui::container
ui::h1
ui::h2
ui::h3
ui::h4
ui::h5
ui::h6
ui::input
ui::label
ui::radio
ui::section
ui::select
ui::textarea

Usage

To start using Bless UI, you need to generate a configuration file. This can be done using two commands:

php artisan vendor:publish --tag=bless-ui-config or

php artisan bless-ui:make-config

Note: We recommend using vendor:publish, as it already provides the configuration file with pre-defined styles. The bless-ui:make-config command should be used if you want to start styling from scratch.

Both commands above will generate a config/bless-ui.php file.

If you are using Tailwindcss, add the config/bless-ui.php value to the content property in your tailwind.config.js configuration script.

How it works?

This configuration file is used to define the styling classes for each Bless UI component. For example, if you want to modify the classes of the ui::button component, you must modify the "button" key defined in config/bless-ui.php

Following this example, the "base" key inside "button" modifies the main style of ui::button. However, if you want to define optional styles, you must define them within the "variants" key. When you define something in "variants", you can apply these styles through the variant property when using ui::button.

Example:

Using the CSS

If you don't want to use config/bless-ui.php file to define the styles of Bless UI components, you can generate the CSS File.

Using the php artisan bless-ui:make-tailwindcss command, you will generate a css file with the default definitions of the Bless UI components, which you can also change as you wish.

In Bless UI, we use Tailwindcss to generate the css file.

For example:

The command above will generate the resources/css/bless-ui.css, or resources/css/custom-bless-ui.css in second case.

Now, you can add this generated file to your Blade layout.

And your vite.config.js file:

Generate Custom Components

If you want to use the same structure of Bless UI to make your custom components, you can use the bless-ui:make-component command.

For example:

The file resources/views/vendor/bless-ui/components/hero.blade.php will be generated.

You should be insert the 'hero' in 'components' section of config/bless-ui.php file to define styles for your generated component.


All versions of bless-ui with dependencies

PHP Build Version
Package Version
Requires symfony/var-exporter Version ^6.3
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 wallacemaxters/bless-ui contains the following files

Loading the files please wait ...