Download the PHP package viewflex/listo without Composer

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

Listo

Extends the Ligero BREAD micro-framework for Laravel, adding dynamic contextual UI controls supporting complex search architectures.

Quick-Links:

Installation

Via Composer:

After installing, add the ListoServiceProvider to the list of service providers in Laravel's config/app.php file.

Overview

Architecture

This package wraps the viewflex/ligero package, enhancing the Ligero BREAD micro-framework with additional dynamic UI controls supporting complex search architectures. It also has it's own demo implementation that includes the additional UI controls provided. This documentation should be viewed as a supplement to the official Ligero Documentation.

Live Demo

The Items domain is a working demo provided in this package, implementing a very simple CRUD UI in plain HTML with Bootstrap.css, but of course the generated API data sent to the views could be presented using any front-end framework desired.

Listo provides a complete separation of presentation and application logic, and outputs results with all necessary data elements for dynamic UI components, pre-packaged in a standardized format. Use the 'Items > Display as JSON' menu command to see what the raw data looks like.

Using the Demo as a Template

See the Publishing the Package Files subsection below to learn how to quickly scaffold new domains by publishing (copying) the demo and customizing it to suit the requirements.

Demo API Endpoints

Besides the UI controller used in the demo, there is also a ready-made Context and API controller serving the API routes for the same Items domain. The package ContextApiController can be used to serve any number of domain Contexts via route parameter keyed to the configured $contexts array.

Enhancements to Ligero

Listo adds some new UI elements to what's already available in the Ligero package. Please see the Ligero documentation to understand how dynamic UI controls are configured and used.

Additional highly configurable dynamic query controls are provided by this package, including:

These are the upgraded interfaces, and the methods added to them:

Config PublisherConfigInterface

This package's Config/listo.php file provides defaults for the global settings in BasePublisherConfig, and can be published (via artisan command) to the Laravel config directory for customization (see the Customization section below). If upgrading from Ligero to Listo, note that this config file will now be used instead of the ligero.php config file.

Domain Configuration

Breadcrumbs
Query Menus
Sort Menu

Publisher PublisherInterface

Raw Data

Get data for additional dynamic UI controls.

PublisherApi PublisherApiInterface

Raw Data

Get data for additional dynamic UI controls.

Repository PublisherRepositoryInterface

Menu Building

This command supports generation of query menus for individual columns, returning a list of distinct column values in query (in context of current query) or global (fresh search) scope. Supported column types: string, number, and boolean.

Multi-Record List Actions

Additional list actions supported:

Customization

This package comes with a demo domain, 'Items', that provides examples of publishing a domain with both a UI controller and an API controller. This demo can be used without using php artisan vendor:publish to copy the files for modification, but to either play around with the demo 'Items' domain or create new domains for your application, just use the publish command with the listo tag (as described below).

Copy and rename the demo files you need and change the class names, to implement Publishers for custom domains. Copy and rename the resource files (views and lang), and customize as needed.

Publishing the Package Files

The package service provider configures artisan to publish specific file groups with tags. There are several options available in this package.

Routes

Run this command to publish the routes.php file to the project's publish/viewflex/listo directory for customization:

Config

Run this command to publish the listo.php config file to the project's config directory for customization:

Resources

Run this command to publish the blade templates for the demo UI, and lang files for package messages and UI strings:

Routes, Demo Migration and Seeder

Run this command to install the migration and seeder for the 'Items' demo domain:

After publishing the demo migration and seeder, run the migration:

Then run the seeder:

Routes, Config, Resources, Demo Migration and Seeder

Use this command to publish config, demo views, and lang files for modification. The demo migration and seeder are also copied to their proper directories:

Extending or Decorating Base Classes

Listo's architecture is based on distinct pattern of class types, each defined by an interface; since classes relate to each other as abstract types, you can easily substitute your own custom classes, provided that they implement the same interfaces. In fact, Listo follows the same strategy pattern as the Ligero package which it extends.

Namespace for Custom Classes

The Viewflex\Listo\Publish namespace, corresponding to the publish/viewflex/listo directory, is recognized by the package, and is intended for organization of your custom classes. The Items demo classes will be published (copied) to this directory for customization.

Tests

The phpunit tests can be run in the usual way, as described in the Test Documentation.

License

This software is offered for use under the MIT License.

Changelog

Release versions are tracked in the Changelog.


All versions of listo with dependencies

PHP Build Version
Package Version
Requires laravel/framework Version ~5.2
viewflex/ligero Version ^1.1.4
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 viewflex/listo contains the following files

Loading the files please wait ....