Download the PHP package smichaelsen/settings without Composer

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

settings - TYPO3 Extension

Build Status

Because you haven't enough places in TYPO3 to configure stuff, right?

What it does

settings offers a new backend module in which extensions can offer configuration options. Why? Ever since I was missing a spot where editors (non-admins) can do global configuration.

How to use

Define fields:

Define your fields in TCA syntax and add it to the table tx_settings_form.

Example (in Configuration/TCA/Overrides/tx_settings_form.php):

<?php
if (!defined('TYPO3_MODE')) {
    die ('Access denied.');
}

$GLOBALS['TCA']['tx_settings_form']['columns'] = array_merge(
    $GLOBALS['TCA']['tx_settings_form']['columns'],
    [
        'tx_myext_myfield' => [
            'label' => 'My field',
            'config' => [
                'type' => 'input',
            ],
        ],
    ]
);

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes(
    'tx_settings_form',
    'tx_myext_myfield'
);

Read configuration

1. TypoScript

All configured values are available as TypoScript constants in plugin.tx_settings.

2. Fluid ViewHelper

{namespace s=Smichaelsen\Settings\ViewHelpers}
{s:getValue(name:'tx_myext_myfield')} or <s:getValue name="tx_myext_myfield"/>

and to load FAL resources:

<s:loadFalResources field="tx_myext_logo" as="logos">
  <f:image image="{logos.0}"/>
</s:loadFalResources>

3. PHP

You can also access the values via PHP:

$configurationService = GeneralUtility::makeInstance(\Smichaelsen\Settings\Service\ConfigurationService::class);
$allConfiguration = $configurationService->getAllConfiguration($GLOBALS['TSFE']->rootLine[0]['uid']);

Known issues

Inline fields do not work yet, that includes FAL file upload fields.


All versions of settings with dependencies

PHP Build Version
Package Version
Requires typo3/cms Version ^7.6 || ^8.6
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 smichaelsen/settings contains the following files

Sorry, there are no file data to show!