Download the PHP package idealogica/lavanda without Composer

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

Lavanda - administrator control panel

Lavanda is an administrator control panel for Laravel application. It can be used for quick building or prototyping administrative interface of your site or service. The main idea of Lavanda is to enhance Eloquent models to provide all required information about your application entities and relationships in one place in unified way. So Lavanda model (which is based on Eloquent model) is used to incorporate your app bussiness logic and usually describes how to input, display, save and proccess your data.

Lavanda features:

It uses laravel-form-builder for forms management.

Installation

Lavanda requires the following packages: Laravel 5, kris/laravel-form-builder, mistic100/randomcolor, idealogica/color and PHP >= 5.5.9.

Installation steps:

  1. Add Lavanda to your composer.json file:

  2. Add Lavanda service provider to config/app.php:

  3. Publish Lavanda assets:

  4. If neccesary config, translation and views can also be published:

Quick start

Starting point of any Lavanda application is Idealogica\Lavanda\Model class. Any Lavanda model must be its child. It inherits form Laravel Illuminate\Database\Eloquent\Model class and can be used in a similar way so you can use it in both front-end and administrative parts of your application.

Any Lavanda model must override two methods listed below to provide basic information about describing object.

Model::buildListDescriptor

Used for items list descriptor adjustment. There you should add columns to display in table on items list page.

PresentationDescriptor::add method is used to describe how to display your data in columns:

Also you may add some constraints to Eloquent query builder using method PresentationDescriptor::addQueryBuilder:

Where $queryBuilder is a closure with a \Illuminate\Database\Eloquent\Builder $queryBuilder as argument.

For now these types of presentaions can be used in PresentationDescriptor::add method:

Model::buildItemDescriptor

Similar to the Model::buildListDescriptor. Used for item info descriptor adjustment. There you should add rows to display in table on item info page.




At this point if you have implelemented mehods described above you will meet all requirements for you Lavanda model. So for now it can be used for displaying list of items and item itself. Now you can follow http://yourdomain/admin adddress and test it.
Perhaps you may want to continue model tweaking and override other methods to provide ability of searching, sorting, adding and editing items.

Model::buildActionsDescriptor

If overridden can be used for allowing some of controller actions. By default index (items list) and show (item info) actions of Lavanda EntityConstroller are allowed. If you want to extend your model functionality, you can grant permissions to acces other actions such as create, edit and destroy.

Model::buildStorageDescriptor

If overridden can be used for describing your external (non-database) storages. For example if you want to use image data type you should describe how to store it on your hard disk.

StorageDescriptor::add method is used to describe how to store your external files:

For now these types of storages can be used in StorageDescriptor::add method:

Model::buildSearchDescriptor

If overridden can be used for describing fields to search by.

Model::buildSortDescriptor

If overridden can be used for describing fields to sort by.

SortDescriptor::add method is used to describe which fields to show in 'sort by' select:

Model::buildDeleteDescriptor

If overridden can be used to enumerate relations that will be used to delete related records.

Model::buildFormQuery

If overridden can be used for form data adjustment. There you may add some constraints to Eloquent query builder to get proper value to fill form on item edit page.

Model::buildForm

It's a main method of Lavanda model. If you plan to implement create and edit functions you should override this method. If overridden it can be used for adjustment of user input form.

Lavanda creates \Kris\LaravelFormBuilder\Form object and pases it as argument to Model::buildForm method. Laravel-form-builder package offers various types of input controls that can be used in Lavanda. Detailed information how to use laravel-form-builder you can find on its manual page.

In addition to laravel-form-builder default controls Lavanda offers its own types:



Additionally you may want to override these methods of Lavanda model to change some of your model attributes.

Model::getName

Returns model name to display in UI.

Model::getPluralName

Returns model plural name to display in UI. For English language it's not neccessary to overrirde this method.

Model::hasController

Determines if model has a custom controller. Simply return true if you have your own custom controller to use with this model.

Model::getItemsPerPage

Returns number of list items per page.

Examples

There are some examples of Lavanda models shipped inside test environment:

License

Lavanda is licensed under a MIT License.


All versions of lavanda with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.9
laravel/framework Version ~5.1
kris/laravel-form-builder Version ~1.6
mistic100/randomcolor Version ~1.0
idealogica/color Version ~1.0.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 idealogica/lavanda contains the following files

Loading the files please wait ....