Download the PHP package eleven59/backpack-settings-extended without Composer

On this page you can find all versions of the php package eleven59/backpack-settings-extended. 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 backpack-settings-extended

Backpack Settings Extended

Latest Version on Packagist Total Downloads

Extension for backpack/settings

This package extends the Backpack for Laravel backpack/settings package:

Installation

Dependencies

This package requires

Installation

Via Composer

You will now find the config file at config/eleven59/backpack-settings-extended.php

Usage

Multiple settings pages

This packages adds a type column to the settings table. Using this column, you can create multiple backend settings pages to categorize settings. You can configure the routes in the config file as follows:

If you've added an entry to the database that has "type-column-value" in the type column, that settings entry will now automatically show up on the following pages if you have the above array in your config file:

Default options for field types

You can use the config/eleven59/backpack-settings-extended.php file to add custom default definitions for field types, so you don't have to enter complex stuff in the database, that sometimes does not even work (e.g. for ckeditor fields like in the example below).

Note: the defaults are overwritten if the main key (i.e., 'crop' or 'withFiles' below) exists in the field definition in the database. The defaults are only used if the entire key is missing from the field definition in the database.

Widgets

You can define widgets for both the list and update operations (since these are the only two available anyway). This will allow you to load custom scripts and css for example, which may help with some of the more convoluted custom default column defaults.

Custom sort order

This package adds a position column to the settings table. By default, the list pages are ordered by this column in ascending order. You can change this behavior in the config/eleven59/backpack-settings-extended.php file:

Custom entity string names

This package allows you to change the default entity names of "setting" for singular and "settings" for plural. By default, the backpack/settings strings are used. You can change their values in the config/eleven59/backpack-settings-extended.php file:

Translatable

If you want to use translatable settings, you can do so by enabling the custom Settings model included for that:

Once you enable this, it "just works" and will automatically enable all languages you have enabled in the config/backpack/crud.php settings file.

Unfortunately, the way spatie/translatable works, this setting can't be enabled on a per-entity basis (since it requires setting a static property on the model itself). So it's either all settings are translatable or none of them are.

Change log

Breaking changes will be listed here. For other changes see commit log.

V2.1

The default model has been changed to the model that does not include the HasTranslations trait. This is better for those upgrading from backpack/settings after having already implemented it, because spatie/translatable changes the way the data is stored in and read from the database. Enabling by default would mean data loss, since all settings fields in the admin would be empty (because no translations could be found).

However, since v2.0 of this package, the default model did include translations. If you're updating from v2.0, please make sure to use the translatable model, as described above under the translatable heading.

V2.0

Credits

License

This project was released under the MIT license, so you can install it on top of any Backpack & Laravel project. Please see the license file for more information.

However, please note that you do need Backpack installed, so you need to also abide by its YUMMY License. That means in production you'll need a Backpack license code. You can get a free one for non-commercial use (or a paid one for commercial use) on backpackforlaravel.com.


All versions of backpack-settings-extended with dependencies

PHP Build Version
Package Version
Requires backpack/crud Version ^6.0
backpack/settings Version ^3.0
spatie/laravel-translatable Version ^6.0
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 eleven59/backpack-settings-extended contains the following files

Loading the files please wait ....