Download the PHP package mukadi/settings-bundle without Composer

On this page you can find all versions of the php package mukadi/settings-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 settings-bundle

MukadiSettingsBundle

this bundle provide a global app settings form fully customisable.

You can render the settings form in admin page for example. The form building is centralized under the bundle configuration.

Features:

Installation

if you want to use symfony flex run the following command in your project:

Install the bundle via composer by running the command:

If you're not using Symfony Flex, you must follow next instructions to configure the bundle yourself.

Configuration

Enable the bundle in the kernel:

Create the Param class

First, create your Param class by extending the base Param class (the class to use depends of your storage)

Add packages configuration file

Configure the bundle for using this class, and optionnaly specifying the current Object Manager used by the application, if 'manager' key is missing the default Doctrine entity manager will be used:

Now that the bundle is configured, the last thing you need to do is update your database schema because you have added a new entity. For ORM run the following command.

Build the form

Below is a minimal example of the necessary configuration for build a settings form:

The currently supported types are:

Usage

Now that you have properly create your settings form. You can render it a custom SonataAdminBundle action page, or in any view in your application: In the controller use the mukadi_settings.setting service for getting the form (Or use the Mukadi\SettingsBundle\Model\Setting class if you're using the autowiring)

And in your view, render the form like any other form:

When the form is submitted, in your controller you must handle that request if you want to store the updated settings in your database.

And finally you can retrieve the stored data via the mukadi_settings.setting service like this:


All versions of settings-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5
symfony/framework-bundle Version ^3.4||^4.0
doctrine/doctrine-bundle Version ^1.0
doctrine/orm Version ^2.2
symfony/form Version ~3.4|~4.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 mukadi/settings-bundle contains the following files

Loading the files please wait ....