Download the PHP package 2lenet/config-bundle without Composer

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

ConfigBundle

Validate .github/workflows/test.yml SymfonyInsight

Symfony bundle that gives you an easy configuration for your app. Perfect to use with the famous CRUD Crudit

Installation

The bundle is not yet on packagist make sure to add the following to your composer.json file:

Install with composer:

The bundle is flexible and built to suit your project it is shiped only with trait to use in your own config entity.

You will also get a Symfony Repository ready to use.

Create in your entity directory the class Config it has to implements the ConfigInterface if no customization is needed you can use:

Your repository file has to extend the ConfigRepository from the bundle:

In your project add the folowing to the config file: /config/packages/doctrine.yaml

In /config/routes.yaml add:

You can then create a migration

Check the migration file created and ask doctrine to execute the migration :

You are ready to go!

Customization

If you need more options or entity fields you can add them in your entity class:

You may also need more options than the ones in the Repository file, in that case create a new repository class in your project. Don't forget to update the namspace used in your entity (see previous exemple).

Usage

General overview

To use the bundle, inject in your services the config repository and use one of the available methods. The bundle will check if the configuration exist otherwise a new configuration will be created.

Supported configurations

The bundle offers support for configuration in the following formats :

Available methods

Twig integration

Initialise new configurations (Warm-up)

A command allows you to initialise new configurations. We suggest to execute it everytime your app starts.

To configure the default values, create a class that implements WarmupInterface.

Do not use set*(), because it will overwrite defined configurations.


All versions of config-bundle with dependencies

PHP Build Version
Package Version
Requires symfony/orm-pack Version *
2lenet/crudit-bundle Version *
symfony/framework-bundle Version ^6.0|^7.0
twig/twig Version ^3.4
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 2lenet/config-bundle contains the following files

Loading the files please wait ....