Download the PHP package emlynwest/setui without Composer

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

SetUI

Latest Version

Module to provide basic user interfaces for FuelPHP's nested sets model.

Install instructions

Just run composer require emlynwest/setui.

Or

Add the following to your composer.json:

Then just run a composer update!

After that all you will need to do is enable the module in your FuelPHP application's config file.

Custom module location

If your application uses a non-standard module location then you can add the below to your composer.json to ensure the module is installed in the correct place. (Make sure you keep the {$name}.)

Usage

Menu rendering

Using the SetUI\Menu class you can render a nested set model into a list. The constructor takes an optional config array that can be used to control the behaviour of how the set is rendered. Below is the default config for each item and an explanation of what they can be used for.

To render a set just create a new instance of SetUI\Menu and call the build() method.

Note on path generation

Path names are generated using nested sets' path() method, to ensure you are getting the correct paths then make sure your nested set's tree config has the title_field setting set to the correct column name. While SetUI does not care what this is it is often best to use a URL friendly property, such as one generated with the slug observer.

JavaScript

The module also includes some basic javascript to allow a slightly nicer user interaction. To enable this you will want to symlink the files in assets to the appropriate asset folders. While you can copy the files, doing so means you will manually have to update the assets when the module is updated.

Once the JS is included in the page it will automatically collapse non-active branches and allow branches to be opened and closed.

jQuery 1.7 or higher is required.

Testing

Currently the module is not unit tested due to the complications of testing FuelPHP v1 modules outside of an application.

Acknowledgements

Triangle icon by Elegant Themes from www.flaticon.com is licensed by CC BY 3.0


All versions of setui with dependencies

PHP Build Version
Package Version
No informations.
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 emlynwest/setui contains the following files

Loading the files please wait ....