Download the PHP package digipolisgent/setting-bundle without Composer

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

Digipolis Symfony Setting Bundle

Introduction

This library allows you to add extra values for instances of predefined entity types. These extra values and their characteristics are dynamicly defined in other bundles with the usage of data providers. Based on these providers your form will automatically build and do the necessary validations. After saving, these values (strings, integers, array collections, ...) are easily accessible with the services we provide in this bundle so they can be used throughout the project.

Compatibility

This bundle is compatible with all Symfony ^5.0 releases.

Installation

You can use composer to install the bundle in an existing symfony project.

For more information on how to install symfony bundles, please see the Symfony documentation about bundles

There are no routes to register or other mandatory configuration options.

Before reading this documentation

If you are not familiar with symfony we suggest reading the Symfony 5 documentation.

Entity types

Entity types are the the entities we want to assign extra values to. We define these by using the SettingImplementationTrait. This requires the method to be implemented too. We use this name to access the entity types.

The trait will

Field types

These are the services that will define how an extra configured field behaves in a form and how the data is presented when we want to use it throughout the application.

A service needs to extend from the . As an example we use one of the predefined field types.

The important thing here is the name we give to the service. We will use this name later to add extra config to the entities that are an instance of the entity types we used before.

Once the field type is in its place we define the service and tag it as a

Data types

Data types are the representation of the extra settings you want to add for every entity type. You can define these by adding a . These datatype providers must be registered as a tagged service using the tag and implement the .

All keys are checked

Loading data types and entity types

For the changes to take effect the database needs to be updated. The following command will fill the database.

Form building

You can add these extra settings to your form by adding an event subscriber to your form builder. This subscriber will make sure the form is built and processed as defined in the field types. If the data set to the form is not an entity type nothing will happen. This way you can also use the subscriber in generic forms.

Data value service

To access these values in other scripts we can use the .

For example. If you want the the value with key from an instance of the class that you previously saved using the form you do the following.

If after some data manipulation you want to update this value and make it visibile in the form you can also store the value.

Advanced field type usage

You can also use the field type to store and manipulate entities since you can inject other services here. This is an example where we make a checkbox list of entities.

Using as a field type in your data type provider will :

Advantages


All versions of setting-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
symfony/config Version ^5.0
symfony/dependency-injection Version ^5.0
symfony/doctrine-bridge Version ^5.3
symfony/http-kernel Version ^5.0
symfony/event-dispatcher Version ^5.0
symfony/form Version ^5.0
symfony/uid Version ^5.3
symfony/validator Version ^5.0
symfony/yaml Version ^5.0
doctrine/orm Version ^2.5
doctrine/doctrine-fixtures-bundle Version ^3.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 digipolisgent/setting-bundle contains the following files

Loading the files please wait ....