Download the PHP package creativestyle/admin-list-bundle without Composer

On this page you can find all versions of the php package creativestyle/admin-list-bundle. 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 admin-list-bundle

Admin List Budle

Setup

You might need to add to your config/packages/framework.yaml:

Templates

The templates are css-framework agnostic, you should override them (via symfony mechanism or by changing their config), extend the markup and style it.

Quickstart

In your controller

Get the FilterManager instance. This is a non-shared service, so you get new instance every time.

Similarly to form builder it exposes a fluent interface, so you can register new filters:

You can also register a paginator:

When you're done with configuration create a QueryBuilder and apply the filters, then fetch the results:

You will need both the results and FilterManager in your template:

In your template

You can render each filter by id:

You can also render the pagination controls like this:

For rendering the results themselves use something like this:

And that's it! You've got a full-featured list UI with pagination, sorting and searching.

Filter reference

Beside the built-in filters you can add your own by extending the base filters or the base ones like AbstractFilter. Please look at the code - it's really simple.

AbstractFilter

Base for other filters, not for direct usage.

Options

callback

Callable. If provided then it's used to apply the filter on the QueryBuilder. If not provided then the internal filtering mechanism is used.

default_value

Default value of the filter.

label

Label, by default created by humanizing the filter id.

parameters

Parameters which will be directly passed into the template

joins

The joins to add to query if this filter is applied.

Accepts an array of joins where each join is an array of this form:

template

The template used for rendering.

DateFilter

Extends AbstractFilter

Presents a datepicker field.

Options

empty_label

Label to use when nothing is selected.

empty_value

Value when nothing is selected.

strategy

By default EQUAL strategy is used.

One of:

field

The entity field that the filter will be applied to.

StringFilter

Extends AbstractFilter

Present a text input. Allows searching multiple fields, using LIKE and more.

Options

concat

If true then the fields are concatenated before being searched.

wildcard

If true then a wildcard * is allowed (will be substitued with % in the query).

fields

One filed as string or a list of fields to search.

exact

If true, then an exact match is needed (LIKE is not used). If concat or wildcard is enabled then this is set to false by default. Otherwise the default is true.

Choice filter

Extends AbstractFilter

Presents a dropdown list or tabs.

Options

empty_label

Label to use when nothing is selected.

empty_value

Value when nothing is selected.

choices

Array of choices of the form [value => label].

callback

The callback is mandatory for this filter.

Use it like this:

disabled

Disable the filter?

tabbed

If true then tabs are used instead of dropdown list.

Paginator reference

AbstractPaginator

Base paginator, not for direct usage.

TBD

SimplePaginator

Presents user with a sliding paginator which may be slow with a lot of items because it has to do COUNT queries.

options TBD

OffsetPaginator

Paginator for very big lists. It only allows next and previous navigation without giving user the information of how many elements/pages are on the list.

options TBD


All versions of admin-list-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5
doctrine/orm Version ~2.3
symfony/templating Version ^4
symfony/twig-bridge Version ^4
symfony/options-resolver Version ^4
creativestyle/utilities Version ~2.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 creativestyle/admin-list-bundle contains the following files

Loading the files please wait ....