Download the PHP package zooxsmart/los-ui without Composer

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

LosUI

Build Status Latest Stable Version Total Downloads Coverage Status Scrutinizer Code Quality SensioLabs Insight Dependency Status Dependency Status

Introduction

This module provides a shortcut to several UI resources from Bootstrap.

In the version 2.*, this library provides only method for styling your HTML with bootstrap. The previous method (providing the js and css files) had a serious performance issue, because if hooked on the end of the request (404 error) to return the required files.

Requirements

Please see composer.json

Installation

For composer documentation, please refer to getcomposer.org.

  1. Enter your project directory
  2. Run php composer.phar require los/losui

Usage

This module provides two main View Helpers: LosHeadLink and LosHeadScript.

Jquery

The first argument indicates the use of minified version (default) or not, while the second indicates a specific version of a CDN file.

Just add the following to your layout.phtml file:

It will generate the following html:

You can have just the link, for example to pass it to other ViewHelper like HeadLink (from zendframework)

It will generate only the link:

Font Awesome

The first argument indicates the use of minified version (default) or not, while the second indicates a specific version.

Include the stylesheet with:

It will generate the following html:

To use their icon is simple, just use the LosIcon View Helper:

Will generate:

You can pass a second parameter to add any style:

Will generate:

If you need to add a class, pass it along with the icon:

Will generate:

Bootstrap

The first argument indicates the use of minified version (default) or not, while the second indicates a specific version.

Include the stylesheet with (can use append or prepend)

The first call will generate the following html:

For each section bellow, please refer to the bootstrap documentation for the classes specifications.

Forms

This module provides a Form View Helper that automatically adds bootstrap style to forms. Just use the default form but with the new view helper:

To make the form horizontal, just pass true in the second argument, and the number of columns the label will use (default is 2):

In the horizontal form, buttons and checkboxes will be aligned with the other fields, not using the label column. To better style checkboxes and radios, add the following to your stylesheet:

There is a LosFormRow view helper that prints just a row. It will add all necessary classes, including alerts for form errors.

If you need to change the order of the form elements, you can do (example for horizontal form with 4 columns for labels):

You can add bootstrap addons to form inputs. Just add the keys "addon-append" or "addon-prepend" to the input options and can combine them with icons (both glyphicon and fontawesome):

The same for annotations:

Alert

The default alert uses the warning style without the close icon (X). But you can use any alert:

If you want the dismissible alert just call:

Badge

Button

Icons

To use their icon is simple, just use the LosIcon View Helper:

Will generate:

You can pass a second parameter to add any style:

Will generate:

If you need to add a class, pass it along with the icon:

Will generate:

Image

As default, the image receives a img-responsive class. To remove it, call:

Label

The first call, will use the "default" style.

Navigation

For now, there is two Navigation View Helpers: Breadcrumbs and Menu.

The menu helper will use the "navbar" style form bootstrap, using the first level as navbar links and submenus as dropdown as in Bootstrap Navbar.

There is a new Page type that enable you to add a divider to the menu helper:

The breadcrumbs helper will follow Breadcrumbs.

If you define a page of type URI with just a '#' href, the breadcrumbs will print just it's label and not a link. Very useful if you have a category not linked to a route.

Paginator

You can use the Paginator View Helper to style as Default Paginator or Pager.

The default helper will use the 'Sliding' scroll system, and the 'default paginator' from bootstrap. To change this behavior, just use the second argument to the scroll system, null as the third (will use this lib view file).

The following options are available in the fourth parameter:

Well


All versions of los-ui with dependencies

PHP Build Version
Package Version
Requires php Version ~8.0.0 || ~8.1.0 || ~8.2.0
laminas/laminas-view Version ^2.31
laminas/laminas-form Version ^3.13
laminas/laminas-servicemanager Version ^3.22
laminas/laminas-stdlib Version ^3.18
laminas/laminas-paginator Version ^2.17
laminas/laminas-navigation Version ^2.18
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 zooxsmart/los-ui contains the following files

Loading the files please wait ....