{"id":19664584,"url":"https://github.com/sourcebroker/configs","last_synced_at":"2026-04-08T13:31:21.035Z","repository":{"id":65145545,"uuid":"562555863","full_name":"sourcebroker/configs","owner":"sourcebroker","description":"This extension include PHP files based on TYPO3_CONTEXT value. This allows you to make fine tuning of TYPO3 settings based on different context: instance, feature activation, system verbosity etc.","archived":false,"fork":false,"pushed_at":"2026-04-07T18:10:26.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-07T20:13:21.874Z","etag":null,"topics":["sbconfigs"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sourcebroker.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-11-06T18:00:15.000Z","updated_at":"2026-04-07T18:10:30.000Z","dependencies_parsed_at":"2025-04-28T21:38:47.674Z","dependency_job_id":"c6be77ff-a7c3-4914-8e3a-8bf775428b48","html_url":"https://github.com/sourcebroker/configs","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/sourcebroker/configs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcebroker%2Fconfigs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcebroker%2Fconfigs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcebroker%2Fconfigs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcebroker%2Fconfigs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sourcebroker","download_url":"https://codeload.github.com/sourcebroker/configs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcebroker%2Fconfigs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31558380,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T10:21:54.569Z","status":"ssl_error","status_checked_at":"2026-04-08T10:21:38.171Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["sbconfigs"],"created_at":"2024-11-11T16:18:17.116Z","updated_at":"2026-04-08T13:31:21.012Z","avatar_url":"https://github.com/sourcebroker.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"TYPO3 Extension configs\n=======================\n\n.. contents:: :local:\n\nWhat does it do?\n----------------\n\nThis extension include PHP files based on TYPO3_CONTEXT value. This allows you to make fine tuning of\nTYPO3 settings based on different context: instance, feature activation, system verbosity etc.\n\n\nInstallation\n------------\n\n1. Install using composer:\n\n   ::\n\n    composer require sourcebroker/configs\n\n2. Add following code in ``typo3conf/AdditionalConfiguration.php``\n\n   ::\n\n    \u003c?php\n\n    defined('TYPO3') or die();\n\n    \\SourceBroker\\ConfigTypo3\\Config::initialize()\n        -\u003eappendContextToSiteName()\n        -\u003eincludeContextDependentConfigurationFiles();\n\n3. Create folder ``context`` in folder ``config``.\n\n4. In folder ``context`` create folders that starts with 1\\_*, 2\\_*, 3\\_*, 4\\_*., example ``1_verbosity``, ``2_mode``,\n   ``3_instance``\n\n5. Inside those folders create php files with the names you will use in TYPO3_CONTEXT.\n\nExample\n-------\n\n1. Copy example configs from ``Resources/Private/Examples/Example1/context`` to folder ``config/context``\n\n2. You can change the folder names ``1_verbosity``, ``2_mode``, ``3_instance`` to whatever you want but\n   do not change the ``number_underscore`` pair. Numbers decide about what part of configs to read from the\n   folders based on TYPO3_CONTEXT parts. Part after number and underscore play no role.\n\n3. If TYPO3_CONTEXT will be set to ``Development/Staging/Beta`` then file ``Development.php`` will be included from folder\n   ``1_verbosity``, file ``Staging.php`` will be included from folder ``2_mode`` and file ``Beta.php`` will be included\n   from folder ``3_instance``.\n\nYou can have as many folders with numbers as you like. You can also read more files from one folder when you separate string with comma.\nFor example you can set TYPO3_CONTEXT to ``Production//Live/Feature1,Feature2`` then file ``Production.php`` will be included from folder\n``1_verbosity``, file ``Live.php`` will be included from folder ``3_mode`` and file ``Feature1.php``, ``Feature2.php`` will be included\nfrom folder ``4_whatever``.\n\nIf you install package ``helhum/dotenv-connector`` then you additionally have possibility to modify\n``$GLOBALS['TYPO3_CONF_VARS']`` array by adding entries in ``.env`` file with following convention:\n``TYPO3__[first_level_array]__[second_level_array]__[third_level_array] = \"value\"``\n\nThis allows you to provide database values per instance by putting following lines to .env files of each instance.\nThe ``.env`` file should be out of git.\n\nExample:\n\n ::\n\n    TYPO3__DB__Connections__Default__dbname=\"..\"\n    TYPO3__DB__Connections__Default__host=\"..\"\n    TYPO3__DB__Connections__Default__port=\"..\"\n    TYPO3__DB__Connections__Default__user=\"..\"\n    TYPO3__DB__Connections__Default__password=\"..\"\n\n    TYPO3__GFX__processor_path=\"..\"\n    TYPO3__GFX__processor_path_lzw=\"..\"\n    TYPO3__GFX__processor_colorspace=\"..\"\n\n\nIt is up to you to decide what values to put inside ``.env`` (which is out of git) and which\nto ``config/context/3_instance/Live.php``, ``config/context/3_instance/Beta.php`` etc which are inside git.\n\nLot of values stored in ``.env`` file means that it is harder to recreate the same TYPO3 state on local development system.\nIf those settings are in git then you can just switch TYPO3_CONTEXT from local ``TYPO3_CONTEXT=Development/Staging/Local``\nto beta ``TYPO3_CONTEXT=Production/Staging/Beta`` on local development system.\n\nDatabase access data are good candidate to be put inside .env.\n\nUncache exceptions\n------------------\n\nYou can use following code to disable uncaching on development for some cache configurations:\n\n``$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['configs']['caching']['cacheConfigurations']['my_cache']['uncache'] = false``\n\nInspiration\n-----------\n\n* Extension https://github.com/b13/typo3-config\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsourcebroker%2Fconfigs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsourcebroker%2Fconfigs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsourcebroker%2Fconfigs/lists"}