Download the PHP package survos/settings-bundle without Composer

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

survos/settings-bundle

Tenant-scoped settings storage for Symfony 8.1+ applications.

This bundle is intentionally small: it stores named JSON values with an optional opaque scope string. Apps decide what scopes mean: tenant, site, user, locale group, or global. Typical values include a site logo, tagline, displayed locales, contact links, and feature toggles.

Install

The bundle uses survos/kit-bundle, so its Doctrine entity mapping is prepended automatically.

Configuration

Usage

Reads use the current scope from ScopeResolverInterface when the caller does not pass one. If the scoped row does not exist, reads fall back to the global scope when fallback_to_global is enabled.

In Twig:

Render the editor as a UX LiveComponent:

When scope is omitted, the component uses the app's ScopeResolverInterface just like normal reads and writes.

Tenant scope resolver

Provide an app service that implements ScopeResolverInterface when settings should follow the current request tenant automatically:

Then alias it in the app:

Relationship to older bundles

This bundle borrows the simple database-centric setting row from dmishh/settings-bundle and the typed, modern Symfony style from jbtronics/settings-bundle, but keeps scope as a first-class storage key for tenant-aware applications.


All versions of settings-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
doctrine/dbal Version ^4.2
doctrine/doctrine-bundle Version ^3.2
doctrine/orm Version ^3.6
survos/kit-bundle Version ^2.5
symfony/dependency-injection Version ^8.1
symfony/form Version ^8.1
symfony/http-kernel Version ^8.1
symfony/security-bundle Version ^8.1
symfony/security-csrf Version ^8.1
symfony/twig-bundle Version ^8.1
symfony/uid Version ^8.1
symfony/ux-live-component Version ^3.0
symfony/validator Version ^8.1
twig/twig Version ^3.0|^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 survos/settings-bundle contains the following files

Loading the files please wait ...