From 75b4bbf2bbf9beee8bdae85a4c7212c50bb61dc6 Mon Sep 17 00:00:00 2001 From: Stephan Gieb Date: Wed, 19 Mar 2025 13:47:06 +0100 Subject: [PATCH] ~ aus Bundle Creator --- .editorconfig | 25 + .gitattributes | 7 + .github/workflows/ci.yml | 76 + .gitignore | 9 + composer.json | 41 + config/listener.yaml | 3 + config/parameters.yaml | 3 + config/services.yaml | 15 + contao/config/config.php | 25 + contao/dca/tl_arch_projects.php | 149 ++ contao/dca/tl_module.php | 20 + contao/languages/en/default.php | 23 + contao/languages/en/modules.php | 28 + contao/languages/en/tl_arch_projects.php | 53 + contao/templates/mod_arch_list.html5 | 8 + docs/logo.png | Bin 0 -> 8218 bytes public/css/styles.css | 1 + public/js/script.js | 1 + src/ContaoManager/Plugin.php | 49 + .../FrontendModule/ArchListController.php | 123 ++ src/Controller/MyCustomController.php | 57 + src/DataContainer/ArchProjects.php | 45 + src/DependencyInjection/Configuration.php | 44 + ...ignContaoArchitectureProjectsExtension.php | 54 + src/Model/ArchProjectsModel.php | 22 + ...designContaoArchitectureProjectsBundle.php | 40 + templates/MyCustom/my_custom.html.twig | 15 + tests/ContaoManager/PluginTest.php | 52 + tools/phpunit/composer.json | 6 + tools/phpunit/composer.lock | 1807 +++++++++++++++++ 30 files changed, 2801 insertions(+) create mode 100644 .editorconfig create mode 100644 .gitattributes create mode 100644 .github/workflows/ci.yml create mode 100644 .gitignore create mode 100644 composer.json create mode 100644 config/listener.yaml create mode 100644 config/parameters.yaml create mode 100644 config/services.yaml create mode 100644 contao/config/config.php create mode 100644 contao/dca/tl_arch_projects.php create mode 100644 contao/dca/tl_module.php create mode 100644 contao/languages/en/default.php create mode 100644 contao/languages/en/modules.php create mode 100644 contao/languages/en/tl_arch_projects.php create mode 100644 contao/templates/mod_arch_list.html5 create mode 100644 docs/logo.png create mode 100644 public/css/styles.css create mode 100644 public/js/script.js create mode 100644 src/ContaoManager/Plugin.php create mode 100644 src/Controller/FrontendModule/ArchListController.php create mode 100644 src/Controller/MyCustomController.php create mode 100644 src/DataContainer/ArchProjects.php create mode 100644 src/DependencyInjection/Configuration.php create mode 100644 src/DependencyInjection/YupdesignContaoArchitectureProjectsExtension.php create mode 100644 src/Model/ArchProjectsModel.php create mode 100644 src/YupdesignContaoArchitectureProjectsBundle.php create mode 100644 templates/MyCustom/my_custom.html.twig create mode 100644 tests/ContaoManager/PluginTest.php create mode 100644 tools/phpunit/composer.json create mode 100644 tools/phpunit/composer.lock diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..07dfc06 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,25 @@ + +# EditorConfig is awesome: http://EditorConfig.org + +# top-most EditorConfig file +root = true + +# Unix-style newlines with a newline ending every file +[*] +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true + +[*.{php,twig,yml,yaml}] +indent_style = space +indent_size = 4 + +[*.{html5,svg,min.css,min.js}] +insert_final_newline = false + +[*/contao/**.{css,js,php},*/public/**.{css,js}] +indent_style = tab + +[*/contao/**.html5] +indent_style = space +indent_size = 2 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fb89f4c --- /dev/null +++ b/.gitattributes @@ -0,0 +1,7 @@ +/.ecs +/.github export-ignore +/tests export-ignore +/.gitattributes export-ignore +/.gitignore export-ignore +/phpunit.xml.dist export-ignore +/.travis.yml export-ignore diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..7973632 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,76 @@ +name: CI + +on: + pull_request: ~ + push: + branches: + - '*' + tags: + - '*' + +jobs: + cs: + name: Coding Style + runs-on: ubuntu-latest + steps: + - name: Setup PHP + uses: shivammathur/setup-php@v2 + + - name: Checkout + uses: actions/checkout@v2 + + - name: Install ecs + run: cd tools/ecs && composer update --no-interaction --no-suggest + + - name: Run the CS fixer + run: composer cs-fixer + + tests: + name: PHP ${{ matrix.php }} + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + php: [ 8.1, 8.2 ] + steps: + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + + - name: Checkout + uses: actions/checkout@v2 + + - name: Install phpunit + run: cd tools/phpunit && composer update --no-interaction --no-suggest + + - name: Install the dependencies + run: composer update --no-interaction --no-suggest + + - name: Run the unit tests + run: composer unit-tests + + prefer-lowest-tests: + name: PHP ${{ matrix.php }} --prefer-lowest + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + php: [ 8.1, 8.2 ] + steps: + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + + - name: Checkout + uses: actions/checkout@v2 + + - name: Install phpunit + run: cd tools/phpunit && composer update --no-interaction --no-suggest + + - name: Install the dependencies + run: composer update --prefer-lowest --prefer-stable --no-interaction --no-suggest + + - name: Run the unit tests + run: composer unit-tests diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..31392b1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +# Jetbrains +/.idea/* + +# tools +/vendor/ +/tools/*/vendor +/composer.lock +/.php-cs-fixer.cache +/tools/phpunit/.phpunit.result.cache diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..90a6256 --- /dev/null +++ b/composer.json @@ -0,0 +1,41 @@ +{ + "name": "yupdesign/contao-architecture-projects-bundle", + "description": "Verwalten von Projekten für Architekten", + "type": "contao-bundle", + "license": "GPL-3.0-or-later", + "authors": [ + { + "name": "Stephan Gieb", + "email": "stephan.gieb@yupdesign.de", + "homepage": "https://www.yupdesign.de", + "role": "Developer" + } + ], + "require": { + "php": "^8.1", + "contao/core-bundle": "^4.13 || ^5.0" + }, + "require-dev": { + "contao/manager-plugin": "^2.12" + }, + "autoload": { + "psr-4": { + "Yupdesign\\ContaoArchitectureProjectsBundle\\": "src/" + } + }, + "config": { + "allow-plugins": { + "contao-components/installer": false, + "contao/manager-plugin": false, + "contao-community-alliance/composer-plugin": true + } + }, + "extra": { + "contao-manager-plugin": "Yupdesign\\ContaoArchitectureProjectsBundle\\ContaoManager\\Plugin" + }, + "scripts": { + "cs-fixer": "@php tools/ecs/vendor/bin/ecs check config/ contao/ src/ templates/ tests/ --config tools/ecs/config.php --fix --ansi", + "unit-tests": "@php tools/phpunit/vendor/bin/phpunit -c tools/phpunit/phpunit.xml.dist" + }, + "version": "0.0.1" +} \ No newline at end of file diff --git a/config/listener.yaml b/config/listener.yaml new file mode 100644 index 0000000..e3edf7e --- /dev/null +++ b/config/listener.yaml @@ -0,0 +1,3 @@ +#config/listener.yaml +services: + diff --git a/config/parameters.yaml b/config/parameters.yaml new file mode 100644 index 0000000..8791625 --- /dev/null +++ b/config/parameters.yaml @@ -0,0 +1,3 @@ +#config/parameters.yaml +parameters: + diff --git a/config/services.yaml b/config/services.yaml new file mode 100644 index 0000000..89f569d --- /dev/null +++ b/config/services.yaml @@ -0,0 +1,15 @@ +# config/services.yaml +services: + _defaults: + autowire: true # Automatically injects dependencies in your services. + autoconfigure: true # Automatically registers your services as commands, event subscribers, etc. + public: false # Allows optimizing the container by removing unused services; this also means + # fetching services directly from the container via $container->get() won't work. + # The best practice is to be explicit about your dependencies anyway. + bind: + #$projectDir: '%kernel.project_dir%' + + Yupdesign\ContaoArchitectureProjectsBundle\: + resource: ../src/ + exclude: ../src/{DependencyInjection,Model,Session} + diff --git a/contao/config/config.php b/contao/config/config.php new file mode 100644 index 0000000..aa99dcf --- /dev/null +++ b/contao/config/config.php @@ -0,0 +1,25 @@ + + * @license GPL-3.0-or-later + * For the full copyright and license information, + * please view the LICENSE file that was distributed with this source code. + * @link https://github.com/yupdesign/contao-architecture-projects-bundle + */ + +use Yupdesign\ContaoArchitectureProjectsBundle\Model\ArchProjectsModel; + +/** + * Backend modules + */ +$GLOBALS['BE_MOD']['architecture_projects']['arch_projects'] = array( + 'tables' => array('tl_arch_projects') +); + +/** + * Models + */ +$GLOBALS['TL_MODELS']['tl_arch_projects'] = ArchProjectsModel::class; diff --git a/contao/dca/tl_arch_projects.php b/contao/dca/tl_arch_projects.php new file mode 100644 index 0000000..705125d --- /dev/null +++ b/contao/dca/tl_arch_projects.php @@ -0,0 +1,149 @@ + + * @license GPL-3.0-or-later + * For the full copyright and license information, + * please view the LICENSE file that was distributed with this source code. + * @link https://github.com/yupdesign/contao-architecture-projects-bundle + */ + +use Contao\Backend; +use Contao\DataContainer; +use Contao\DC_Table; +use Contao\Input; + +/** + * Table tl_arch_projects + */ +$GLOBALS['TL_DCA']['tl_arch_projects'] = array( + 'config' => array( + 'dataContainer' => DC_Table::class, + 'enableVersioning' => true, + 'sql' => array( + 'keys' => array( + 'id' => 'primary' + ) + ), + ), + 'list' => array( + 'sorting' => array( + 'mode' => DataContainer::MODE_SORTABLE, + 'fields' => array('title'), + 'flag' => DataContainer::SORT_INITIAL_LETTER_ASC, + 'panelLayout' => 'filter;sort,search,limit' + ), + 'label' => array( + 'fields' => array('title'), + 'format' => '%s', + ), + 'global_operations' => array( + 'all' => array( + 'href' => 'act=select', + 'class' => 'header_edit_all', + 'attributes' => 'onclick="Backend.getScrollOffset()" accesskey="e"' + ) + ), + 'operations' => array( + 'edit' => array( + 'href' => 'act=edit', + 'icon' => 'edit.svg' + ), + 'copy' => array( + 'href' => 'act=copy', + 'icon' => 'copy.svg' + ), + 'delete' => array( + 'href' => 'act=delete', + 'icon' => 'delete.svg', + 'attributes' => 'onclick="if(!confirm(\'' . ($GLOBALS['TL_LANG']['MSC']['deleteConfirm'] ?? null) . '\'))return false;Backend.getScrollOffset()"' + ), + 'show' => array( + 'href' => 'act=show', + 'icon' => 'show.svg', + 'attributes' => 'style="margin-right:3px"' + ), + ) + ), + 'palettes' => array( + '__selector__' => array('addSubpalette'), + 'default' => '{first_legend},title,selectField,checkboxField,multitextField;{second_legend},addSubpalette' + ), + 'subpalettes' => array( + 'addSubpalette' => 'textareaField', + ), + 'fields' => array( + 'id' => array( + 'sql' => "int(10) unsigned NOT NULL auto_increment" + ), + 'tstamp' => array( + 'sql' => "int(10) unsigned NOT NULL default '0'" + ), + 'title' => array( + 'inputType' => 'text', + 'exclude' => true, + 'search' => true, + 'filter' => true, + 'sorting' => true, + 'flag' => DataContainer::SORT_INITIAL_LETTER_ASC, + 'eval' => array('mandatory' => true, 'maxlength' => 255, 'tl_class' => 'w50'), + 'sql' => "varchar(255) NOT NULL default ''" + ), + 'selectField' => array( + 'inputType' => 'select', + 'exclude' => true, + 'search' => true, + 'filter' => true, + 'sorting' => true, + 'reference' => &$GLOBALS['TL_LANG']['tl_arch_projects'], + 'options' => array('firstoption', 'secondoption'), + //'foreignKey' => 'tl_user.name', + //'options_callback' => array('CLASS', 'METHOD'), + 'eval' => array('includeBlankOption' => true, 'tl_class' => 'w50'), + 'sql' => "varchar(255) NOT NULL default ''", + //'relation' => array('type' => 'hasOne', 'load' => 'lazy') + ), + 'checkboxField' => array( + 'inputType' => 'select', + 'exclude' => true, + 'search' => true, + 'filter' => true, + 'sorting' => true, + 'reference' => &$GLOBALS['TL_LANG']['tl_arch_projects'], + 'options' => array('firstoption', 'secondoption'), + //'foreignKey' => 'tl_user.name', + //'options_callback' => array('CLASS', 'METHOD'), + 'eval' => array('includeBlankOption' => true, 'chosen' => true, 'tl_class' => 'w50'), + 'sql' => "varchar(255) NOT NULL default ''", + //'relation' => array('type' => 'hasOne', 'load' => 'lazy') + ), + 'multitextField' => array( + 'inputType' => 'text', + 'exclude' => true, + 'search' => true, + 'filter' => true, + 'sorting' => true, + 'eval' => array('multiple' => true, 'size' => 4, 'decodeEntities' => true, 'tl_class' => 'w50'), + 'sql' => "varchar(255) NOT NULL default ''" + ), + 'addSubpalette' => array( + 'exclude' => true, + 'inputType' => 'checkbox', + 'eval' => array('submitOnChange' => true, 'tl_class' => 'w50 clr'), + 'sql' => "char(1) NOT NULL default ''" + ), + 'textareaField' => array( + 'inputType' => 'textarea', + 'exclude' => true, + 'search' => true, + 'filter' => true, + 'sorting' => true, + 'eval' => array('rte' => 'tinyMCE', 'tl_class' => 'clr'), + 'sql' => 'text NULL' + ) + ) +); diff --git a/contao/dca/tl_module.php b/contao/dca/tl_module.php new file mode 100644 index 0000000..1aeab95 --- /dev/null +++ b/contao/dca/tl_module.php @@ -0,0 +1,20 @@ + + * @license GPL-3.0-or-later + * For the full copyright and license information, + * please view the LICENSE file that was distributed with this source code. + * @link https://github.com/yupdesign/contao-architecture-projects-bundle + */ + +use Yupdesign\ContaoArchitectureProjectsBundle\Controller\FrontendModule\ArchListController; + +/** + * Frontend modules + */ +$GLOBALS['TL_DCA']['tl_module']['palettes'][ArchListController::TYPE] = '{title_legend},name,headline,type;{template_legend:hide},customTpl;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID'; diff --git a/contao/languages/en/default.php b/contao/languages/en/default.php new file mode 100644 index 0000000..22dc742 --- /dev/null +++ b/contao/languages/en/default.php @@ -0,0 +1,23 @@ + + * @license GPL-3.0-or-later + * For the full copyright and license information, + * please view the LICENSE file that was distributed with this source code. + * @link https://github.com/yupdesign/contao-architecture-projects-bundle + */ + +/** + * Miscellaneous + */ +//$GLOBALS['TL_LANG']['MSC'][''] = ''; + +/** + * Errors + */ +//$GLOBALS['TL_LANG']['ERR'][''] = ''; diff --git a/contao/languages/en/modules.php b/contao/languages/en/modules.php new file mode 100644 index 0000000..e21f4b2 --- /dev/null +++ b/contao/languages/en/modules.php @@ -0,0 +1,28 @@ + + * @license GPL-3.0-or-later + * For the full copyright and license information, + * please view the LICENSE file that was distributed with this source code. + * @link https://github.com/yupdesign/contao-architecture-projects-bundle + */ + +use Yupdesign\ContaoArchitectureProjectsBundle\Controller\FrontendModule\ArchListController; + +/** + * Backend modules + */ +$GLOBALS['TL_LANG']['MOD']['architecture_projects'] = 'Referenzen'; +$GLOBALS['TL_LANG']['MOD']['arch_projects'] = ['Projekte', 'Übersicht über Projekte']; + +/** + * Frontend modules + */ +$GLOBALS['TL_LANG']['FMD']['architecture_projects'] = 'Referenzen'; +$GLOBALS['TL_LANG']['FMD'][ArchListController::TYPE] = ['Projektliste', 'Gibt eine Übersicht über alle veröffentlichten Projekte aus.']; + diff --git a/contao/languages/en/tl_arch_projects.php b/contao/languages/en/tl_arch_projects.php new file mode 100644 index 0000000..869203e --- /dev/null +++ b/contao/languages/en/tl_arch_projects.php @@ -0,0 +1,53 @@ + + * @license GPL-3.0-or-later + * For the full copyright and license information, + * please view the LICENSE file that was distributed with this source code. + * @link https://github.com/yupdesign/contao-architecture-projects-bundle + */ + +/** + * Legends + */ +$GLOBALS['TL_LANG']['tl_arch_projects']['first_legend'] = "Basis Einstellungen"; +$GLOBALS['TL_LANG']['tl_arch_projects']['second_legend'] = "Erweiterte Einstellungen"; + +/** +* Global operations +*/ +$GLOBALS['TL_LANG']['tl_arch_projects']['new'] = ["Neu", "Ein neues Element anlegen"]; + +/** + * Operations + */ +$GLOBALS['TL_LANG']['tl_arch_projects']['edit'] = "Datensatz mit ID: %s bearbeiten"; +$GLOBALS['TL_LANG']['tl_arch_projects']['copy'] = "Datensatz mit ID: %s kopieren"; +$GLOBALS['TL_LANG']['tl_arch_projects']['delete'] = "Datensatz mit ID: %s löschen"; +$GLOBALS['TL_LANG']['tl_arch_projects']['show'] = "Datensatz mit ID: %s ansehen"; + +/** + * Fields + */ +$GLOBALS['TL_LANG']['tl_arch_projects']['title'] = ["Titel", "Geben Sie den Titel ein"]; +$GLOBALS['TL_LANG']['tl_arch_projects']['selectField'] = ["Select Feld", "Wählen Sie aus."]; +$GLOBALS['TL_LANG']['tl_arch_projects']['checkboxField'] = ["Chosen Feld", "Wählen Sie aus."]; +$GLOBALS['TL_LANG']['tl_arch_projects']['multitextField'] = ["Multitext Feld", "Geben Sie die Werte ein"]; +$GLOBALS['TL_LANG']['tl_arch_projects']['addSubpalette'] = ["Erweiterte Einstellungen aktivieren", "Hier können Sie die erweiterten Einstellungen aktivieren."]; +$GLOBALS['TL_LANG']['tl_arch_projects']['textareaField'] = ["Textarea", "Geben Sie einen Text ein"]; + +/** + * References + */ +$GLOBALS['TL_LANG']['tl_arch_projects']['firstoption'] = "Erste Option"; +$GLOBALS['TL_LANG']['tl_arch_projects']['secondoption'] = "Zweite Option"; + +/** + * Buttons + */ +$GLOBALS['TL_LANG']['tl_arch_projects']['customButton'] = "Custom Routine starten"; diff --git a/contao/templates/mod_arch_list.html5 b/contao/templates/mod_arch_list.html5 new file mode 100644 index 0000000..f412935 --- /dev/null +++ b/contao/templates/mod_arch_list.html5 @@ -0,0 +1,8 @@ +extend('block_searchable'); ?> + +block('content'); ?> + +

helloTitle ?>

+

helloText ?>

+ +endblock(); ?> diff --git a/docs/logo.png b/docs/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..30905ccdc1505ff9de637f01f23472b3769ea67e GIT binary patch literal 8218 zcmcI}RaBc%(=P5L#huhB?j8tG0g6kJ;6aKMr$}&zLUAqbP&~L3v{>~LrM z=IXmu@lO7(Z+V&jU8f^t{D@z9T1bOZRsloOK~zSAvY&?o8kzr`YVAhvMlW|M^2RiJLShUwk2(nIk_$~+Z%pZo4)-v%CheV3%TQ>GU7GWu!LzAXP z0yR~|H%edP&sMJ%q{z7HCecO=@MBq6aKlt*obY6w>CoK}hCB-oc(*{{A~WCW zoBx=IC8F+XoKe@MxQ9^uhTyf5xV9xnCY<(#!;%jInQ~sbwfr5ZlEA{X&36=Z6)1fF zb7eaZYrX;CGc$G}uL0&eB%W>5J`Vp2`=fWfNu{p;d;ia851Gli__^vSLDNCXo12?; z7Pz$tmlQ)b5;G=A90iiy>1t-cZP|EtiAq+drHmRk#+U}CLO3+GR1vmJT8vTceltbV zr%dLKCJf5~R(^Oa-WL8x4;s|FyqCO#zc-crDT}Z-mI=y_Ii2O$ZuRxahEWDhB*vGx zTGRubq?QQ z@0K9Ujs8;8zNqk}Pgx?F2{&l)MlrI7GUdDxm%t;*_>dLz4uO}#6BLZfxL{ok_DJnQ zU3^%t&#x!j#@$m7^l5IYig7u`sPMv?MUtZ$_gAp+n`E;AmToBllh!|Ux*0sWmPg}n z-kA_PF5w?ZvArxqJ14TjEw5K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mVmpDi3u;}1lme9C^V(v#f&cvSJpHdzKF~)x2)Qv_;sEH8*TT~jBhQ*lJZn!=JuAHFt`4D z_kOddRGL6%Ht(!daA65Hj2!02ypAD88X=wej@;RxoOjA2mtrHP6!=Avo#x!XPr9J!d=cW+h zcT!y~kS(#RyG@T0W=*}Xu*%z&D(njR&)Jl;-i^&(%&4&>l9uIx(S)+`_&yHT*k8CE z9eA0K{75<4I1SI)7%%d*>HttJMzxUyEV_+x+eYbLp)+TtDbw`Yb5q*xR@Vsd1fZ&> z&*hIK^YM+vj~&9R + * @license GPL-3.0-or-later + * For the full copyright and license information, + * please view the LICENSE file that was distributed with this source code. + * @link https://github.com/yupdesign/contao-architecture-projects-bundle + */ + +namespace Yupdesign\ContaoArchitectureProjectsBundle\ContaoManager; + +use Yupdesign\ContaoArchitectureProjectsBundle\YupdesignContaoArchitectureProjectsBundle; +use Contao\CoreBundle\ContaoCoreBundle; +use Contao\ManagerPlugin\Bundle\BundlePluginInterface; +use Contao\ManagerPlugin\Bundle\Config\BundleConfig; +use Contao\ManagerPlugin\Bundle\Parser\ParserInterface; +use Contao\ManagerPlugin\Routing\RoutingPluginInterface; +use Symfony\Component\Config\Loader\LoaderResolverInterface; +use Symfony\Component\HttpKernel\KernelInterface; +use Symfony\Component\Routing\RouteCollection; + +class Plugin implements BundlePluginInterface, RoutingPluginInterface +{ + /** + * @return array + */ + public function getBundles(ParserInterface $parser) + { + return [ + BundleConfig::create(YupdesignContaoArchitectureProjectsBundle::class) + ->setLoadAfter([ContaoCoreBundle::class]), + ]; + } + + /** + * @return RouteCollection|null + */ + public function getRouteCollection(LoaderResolverInterface $resolver, KernelInterface $kernel) + { + return $resolver + ->resolve(__DIR__.'/../Controller') + ->load(__DIR__.'/../Controller'); + } +} diff --git a/src/Controller/FrontendModule/ArchListController.php b/src/Controller/FrontendModule/ArchListController.php new file mode 100644 index 0000000..0f21196 --- /dev/null +++ b/src/Controller/FrontendModule/ArchListController.php @@ -0,0 +1,123 @@ + + * @license GPL-3.0-or-later + * For the full copyright and license information, + * please view the LICENSE file that was distributed with this source code. + * @link https://github.com/yupdesign/contao-architecture-projects-bundle + */ + +namespace Yupdesign\ContaoArchitectureProjectsBundle\Controller\FrontendModule; + +use Contao\CoreBundle\Controller\FrontendModule\AbstractFrontendModuleController; +use Contao\CoreBundle\DependencyInjection\Attribute\AsFrontendModule; +use Contao\CoreBundle\Framework\ContaoFramework; +use Contao\CoreBundle\Routing\ScopeMatcher; +use Contao\Date; +use Contao\FrontendUser; +use Contao\ModuleModel; +use Contao\PageModel; +use Contao\Template; +use Doctrine\DBAL\Connection; +use Doctrine\DBAL\Result; +use Symfony\Component\HttpFoundation\Request; +use Symfony\Component\HttpFoundation\Response; +use Symfony\Component\HttpFoundation\Session\Session; +use Symfony\Component\Security\Core\Security; +use Symfony\Contracts\Translation\TranslatorInterface; + +#[AsFrontendModule(category: 'architecture_projects', template: 'mod_arch_list')] +class ArchListController extends AbstractFrontendModuleController +{ + public const TYPE = 'arch_list'; + + protected ?PageModel $page; + + /** + * This method extends the parent __invoke method, + * its usage is usually not necessary. + */ + public function __invoke(Request $request, ModuleModel $model, string $section, array $classes = null, PageModel $page = null): Response + { + // Get the page model + $this->page = $page; + + $scopeMatcher = $this->container->get('contao.routing.scope_matcher'); + + if ($this->page instanceof PageModel && $scopeMatcher->isFrontendRequest($request)) { + $this->page->loadDetails(); + } + + return parent::__invoke($request, $model, $section, $classes); + } + + /** + * Lazyload services. + */ + public static function getSubscribedServices(): array + { + $services = parent::getSubscribedServices(); + + $services['contao.framework'] = ContaoFramework::class; + $services['database_connection'] = Connection::class; + $services['contao.routing.scope_matcher'] = ScopeMatcher::class; + $services['security.helper'] = Security::class; + $services['translator'] = TranslatorInterface::class; + + return $services; + } + + protected function getResponse(Template $template, ModuleModel $model, Request $request): Response + { + $userFirstname = 'DUDE'; + $user = $this->container->get('security.helper')->getUser(); + + // Get the logged in frontend user... if there is one + if ($user instanceof FrontendUser) { + $userFirstname = $user->firstname; + } + + /** @var Session $session */ + $session = $request->getSession(); + $bag = $session->getBag('contao_frontend'); + $bag->set('foo', 'bar'); + + /** @var Date $dateAdapter */ + $dateAdapter = $this->container->get('contao.framework')->getAdapter(Date::class); + + $intWeekday = $dateAdapter->parse('w'); + $translator = $this->container->get('translator'); + $strWeekday = $translator->trans('DAYS.'.$intWeekday, [], 'contao_default'); + + $arrGuests = []; + + // Get the database connection + $db = $this->container->get('database_connection'); + + /** @var Result $stmt */ + $stmt = $db->executeQuery('SELECT * FROM tl_member WHERE gender = ? ORDER BY lastname', ['female']); + + while (false !== ($row = $stmt->fetchAssociative())) { + $arrGuests[] = $row['firstname']; + } + + $template->helloTitle = sprintf( + 'Hi %s, and welcome to the "Hello World Module". Today is %s.', + $userFirstname, + $strWeekday, + ); + + $template->helloText = ''; + + if (!empty($arrGuests)) { + $template->helloText = 'Our guests today are: '.implode(', ', $arrGuests); + } + + return $template->getResponse(); + } +} diff --git a/src/Controller/MyCustomController.php b/src/Controller/MyCustomController.php new file mode 100644 index 0000000..f12dc81 --- /dev/null +++ b/src/Controller/MyCustomController.php @@ -0,0 +1,57 @@ + + * @license GPL-3.0-or-later + * For the full copyright and license information, + * please view the LICENSE file that was distributed with this source code. + * @link https://github.com/yupdesign/contao-architecture-projects-bundle + */ + +namespace Yupdesign\ContaoArchitectureProjectsBundle\Controller; + +use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; +use Symfony\Component\HttpFoundation\Response; +use Symfony\Component\Routing\Annotation\Route; +use Twig\Environment as Twig; + +#[Route('/my_custom', name: MyCustomController::class, defaults: ['_scope' => 'frontend', '_token_check' => true])] +class MyCustomController extends AbstractController +{ + + public function __construct( + private readonly Twig $twig, + ) { + } + + public function __invoke(): Response + { + $animals = [ + [ + 'species' => 'dogs', + 'color' => 'white', + ], + [ + 'species' => 'birds', + 'color' => 'black', + ], [ + 'species' => 'cats', + 'color' => 'pink', + ], [ + 'species' => 'cows', + 'color' => 'yellow', + ], + ]; + + return new Response($this->twig->render( + '@YupdesignContaoArchitectureProjects/MyCustom/my_custom.html.twig', + [ + 'animals' => $animals, + ] + )); + } +} diff --git a/src/DataContainer/ArchProjects.php b/src/DataContainer/ArchProjects.php new file mode 100644 index 0000000..571d130 --- /dev/null +++ b/src/DataContainer/ArchProjects.php @@ -0,0 +1,45 @@ + + * @license GPL-3.0-or-later + * For the full copyright and license information, + * please view the LICENSE file that was distributed with this source code. + * @link https://github.com/yupdesign/contao-architecture-projects-bundle + */ + +namespace Yupdesign\ContaoArchitectureProjectsBundle\DataContainer; + +use Contao\CoreBundle\DependencyInjection\Attribute\AsCallback; +use Contao\CoreBundle\Framework\ContaoFramework; +use Contao\DataContainer; +use Contao\Input; +use Contao\System; + +#[AsCallback(table: 'tl_arch_projects', target: 'edit.buttons', priority: 100)] +class ArchProjects +{ + + public function __construct( + private readonly ContaoFramework $framework, + ) { + } + + public function __invoke(array $arrButtons, DataContainer $dc): array + { + $inputAdapter = $this->framework->getAdapter(Input::class); + $systemAdapter = $this->framework->getAdapter(System::class); + + $systemAdapter->loadLanguageFile('tl_arch_projects'); + + if ('edit' === $inputAdapter->get('act')) { + $arrButtons['customButton'] = ''; + } + + return $arrButtons; + } +} diff --git a/src/DependencyInjection/Configuration.php b/src/DependencyInjection/Configuration.php new file mode 100644 index 0000000..24fd088 --- /dev/null +++ b/src/DependencyInjection/Configuration.php @@ -0,0 +1,44 @@ + + * @license GPL-3.0-or-later + * For the full copyright and license information, + * please view the LICENSE file that was distributed with this source code. + * @link https://github.com/yupdesign/contao-architecture-projects-bundle + */ + +namespace Yupdesign\ContaoArchitectureProjectsBundle\DependencyInjection; + +use Symfony\Component\Config\Definition\Builder\TreeBuilder; +use Symfony\Component\Config\Definition\ConfigurationInterface; + +class Configuration implements ConfigurationInterface +{ + public const ROOT_KEY = 'yupdesign_contao_architecture_projects'; + + public function getConfigTreeBuilder(): TreeBuilder + { + $treeBuilder = new TreeBuilder(self::ROOT_KEY); + + $treeBuilder->getRootNode() + ->children() + ->arrayNode('foo') + ->addDefaultsIfNotSet() + ->children() + ->scalarNode('bar') + ->cannotBeEmpty() + ->defaultValue('***') + ->end() + ->end() + ->end() // end foo + ->end() + ; + + return $treeBuilder; + } +} diff --git a/src/DependencyInjection/YupdesignContaoArchitectureProjectsExtension.php b/src/DependencyInjection/YupdesignContaoArchitectureProjectsExtension.php new file mode 100644 index 0000000..7ecf7f2 --- /dev/null +++ b/src/DependencyInjection/YupdesignContaoArchitectureProjectsExtension.php @@ -0,0 +1,54 @@ + + * @license GPL-3.0-or-later + * For the full copyright and license information, + * please view the LICENSE file that was distributed with this source code. + * @link https://github.com/yupdesign/contao-architecture-projects-bundle + */ + +namespace Yupdesign\ContaoArchitectureProjectsBundle\DependencyInjection; + +use Symfony\Component\Config\FileLocator; +use Symfony\Component\DependencyInjection\ContainerBuilder; +use Symfony\Component\DependencyInjection\Extension\Extension; +use Symfony\Component\DependencyInjection\Loader\YamlFileLoader; + +class YupdesignContaoArchitectureProjectsExtension extends Extension +{ + /** + * {@inheritdoc} + */ + public function getAlias(): string + { + return Configuration::ROOT_KEY; + } + + /** + * @throws \Exception + */ + public function load(array $configs, ContainerBuilder $container): void + { + $configuration = new Configuration(); + + $config = $this->processConfiguration($configuration, $configs); + + $loader = new YamlFileLoader( + $container, + new FileLocator(__DIR__.'/../../config') + ); + + $loader->load('parameters.yaml'); + $loader->load('services.yaml'); + $loader->load('listener.yaml'); + + $rootKey = $this->getAlias(); + + $container->setParameter($rootKey.'.foo.bar', $config['foo']['bar']); + } +} diff --git a/src/Model/ArchProjectsModel.php b/src/Model/ArchProjectsModel.php new file mode 100644 index 0000000..5147e52 --- /dev/null +++ b/src/Model/ArchProjectsModel.php @@ -0,0 +1,22 @@ + + * @license GPL-3.0-or-later + * For the full copyright and license information, + * please view the LICENSE file that was distributed with this source code. + * @link https://github.com/yupdesign/contao-architecture-projects-bundle + */ + +namespace Yupdesign\ContaoArchitectureProjectsBundle\Model; + +use Contao\Model; + +class ArchProjectsModel extends Model +{ + protected static $strTable = 'tl_arch_projects'; +} diff --git a/src/YupdesignContaoArchitectureProjectsBundle.php b/src/YupdesignContaoArchitectureProjectsBundle.php new file mode 100644 index 0000000..2ef9727 --- /dev/null +++ b/src/YupdesignContaoArchitectureProjectsBundle.php @@ -0,0 +1,40 @@ + + * @license GPL-3.0-or-later + * For the full copyright and license information, + * please view the LICENSE file that was distributed with this source code. + * @link https://github.com/yupdesign/contao-architecture-projects-bundle + */ + +namespace Yupdesign\ContaoArchitectureProjectsBundle; + +use Yupdesign\ContaoArchitectureProjectsBundle\DependencyInjection\YupdesignContaoArchitectureProjectsExtension; +use Symfony\Component\DependencyInjection\ContainerBuilder; +use Symfony\Component\HttpKernel\Bundle\Bundle; + +class YupdesignContaoArchitectureProjectsBundle extends Bundle +{ + public function getPath(): string + { + return \dirname(__DIR__); + } + + public function getContainerExtension(): YupdesignContaoArchitectureProjectsExtension + { + return new YupdesignContaoArchitectureProjectsExtension(); + } + + /** + * {@inheritdoc} + */ + public function build(ContainerBuilder $container): void + { + parent::build($container); + } +} diff --git a/templates/MyCustom/my_custom.html.twig b/templates/MyCustom/my_custom.html.twig new file mode 100644 index 0000000..b3dab4f --- /dev/null +++ b/templates/MyCustom/my_custom.html.twig @@ -0,0 +1,15 @@ +{% block body %} + +

Welcome to our homepage

+ +

We are purchasing

+ + {% for animal in animals %} + +
    +
  • {{ animal.color }} {{ animal.species }}
  • +
+ + {% endfor %} + +{% endblock %} diff --git a/tests/ContaoManager/PluginTest.php b/tests/ContaoManager/PluginTest.php new file mode 100644 index 0000000..0ffaeeb --- /dev/null +++ b/tests/ContaoManager/PluginTest.php @@ -0,0 +1,52 @@ + + * @license GPL-3.0-or-later + * For the full copyright and license information, + * please view the LICENSE file that was distributed with this source code. + * @link https://github.com/yupdesign/contao-architecture-projects-bundle + */ +declare(strict_types=1); + +namespace Yupdesign\ContaoArchitectureProjectsBundle\Tests\ContaoManager; + +use Contao\CoreBundle\ContaoCoreBundle; +use Contao\ManagerPlugin\Bundle\Config\BundleConfig; +use Contao\ManagerPlugin\Bundle\Parser\DelegatingParser; +use Contao\TestCase\ContaoTestCase; +use Yupdesign\ContaoArchitectureProjectsBundle\ContaoManager\Plugin; +use Yupdesign\ContaoArchitectureProjectsBundle\YupdesignContaoArchitectureProjectsBundle; + +/** + * @package Yupdesign\ContaoArchitectureProjectsBundle\Tests\ContaoManager + */ +class PluginTest extends ContaoTestCase +{ + /** + * Test Contao manager plugin class instantiation + */ + public function testInstantiation(): void + { + $this->assertInstanceOf(Plugin::class, new Plugin()); + } + + /** + * Test returns the bundles + */ + public function testGetBundles(): void + { + $plugin = new Plugin(); + + /** @var array $bundles */ + $bundles = $plugin->getBundles(new DelegatingParser()); + + $this->assertCount(1, $bundles); + $this->assertInstanceOf(BundleConfig::class, $bundles[0]); + $this->assertSame(YupdesignContaoArchitectureProjectsBundle::class, $bundles[0]->getName()); + $this->assertSame([ContaoCoreBundle::class], $bundles[0]->getLoadAfter()); + } + +} diff --git a/tools/phpunit/composer.json b/tools/phpunit/composer.json new file mode 100644 index 0000000..67e74db --- /dev/null +++ b/tools/phpunit/composer.json @@ -0,0 +1,6 @@ +{ + "require": { + "phpunit/phpunit": "^9.5", + "contao/test-case": "^5.0" + } +} diff --git a/tools/phpunit/composer.lock b/tools/phpunit/composer.lock new file mode 100644 index 0000000..cee39d7 --- /dev/null +++ b/tools/phpunit/composer.lock @@ -0,0 +1,1807 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", + "This file is @generated automatically" + ], + "content-hash": "dcbe44d954a6efea212d55f3e71f40e2", + "packages": [ + { + "name": "contao/test-case", + "version": "5.0.7", + "source": { + "type": "git", + "url": "https://github.com/contao/test-case.git", + "reference": "10fcffa6237ab6cc6787430565af3ba9696938cf" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/contao/test-case/zipball/10fcffa6237ab6cc6787430565af3ba9696938cf", + "reference": "10fcffa6237ab6cc6787430565af3ba9696938cf", + "shasum": "" + }, + "require": { + "php": "^8.1", + "phpunit/phpunit": "^9.5" + }, + "conflict": { + "phpunit/phpunit": "<8.0", + "roave/better-reflection": "<4.12.2 || >=6.0" + }, + "require-dev": { + "contao/core-bundle": "self.version", + "doctrine/dbal": "^3.3", + "doctrine/orm": "^2.10", + "ext-pdo": "*", + "symfony/http-client": "^5.4 || ^6.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Contao\\TestCase\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-3.0-or-later" + ], + "authors": [ + { + "name": "Leo Feyer", + "homepage": "https://github.com/leofeyer" + } + ], + "description": "Contao 4 test case", + "support": { + "issues": "https://github.com/contao/test-case/issues", + "source": "https://github.com/contao/test-case/tree/5.0.7" + }, + "funding": [ + { + "url": "https://to.contao.org/donate", + "type": "custom" + } + ], + "time": "2022-11-14T09:51:34+00:00" + }, + { + "name": "doctrine/instantiator", + "version": "1.4.1", + "source": { + "type": "git", + "url": "https://github.com/doctrine/instantiator.git", + "reference": "10dcfce151b967d20fde1b34ae6640712c3891bc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/instantiator/zipball/10dcfce151b967d20fde1b34ae6640712c3891bc", + "reference": "10dcfce151b967d20fde1b34ae6640712c3891bc", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "require-dev": { + "doctrine/coding-standard": "^9", + "ext-pdo": "*", + "ext-phar": "*", + "phpbench/phpbench": "^0.16 || ^1", + "phpstan/phpstan": "^1.4", + "phpstan/phpstan-phpunit": "^1", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", + "vimeo/psalm": "^4.22" + }, + "type": "library", + "autoload": { + "psr-4": { + "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Marco Pivetta", + "email": "ocramius@gmail.com", + "homepage": "https://ocramius.github.io/" + } + ], + "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", + "homepage": "https://www.doctrine-project.org/projects/instantiator.html", + "keywords": [ + "constructor", + "instantiate" + ], + "support": { + "issues": "https://github.com/doctrine/instantiator/issues", + "source": "https://github.com/doctrine/instantiator/tree/1.4.1" + }, + "funding": [ + { + "url": "https://www.doctrine-project.org/sponsorship.html", + "type": "custom" + }, + { + "url": "https://www.patreon.com/phpdoctrine", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finstantiator", + "type": "tidelift" + } + ], + "time": "2022-03-03T08:28:38+00:00" + }, + { + "name": "myclabs/deep-copy", + "version": "1.11.0", + "source": { + "type": "git", + "url": "https://github.com/myclabs/DeepCopy.git", + "reference": "14daed4296fae74d9e3201d2c4925d1acb7aa614" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/14daed4296fae74d9e3201d2c4925d1acb7aa614", + "reference": "14daed4296fae74d9e3201d2c4925d1acb7aa614", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "conflict": { + "doctrine/collections": "<1.6.8", + "doctrine/common": "<2.13.3 || >=3,<3.2.2" + }, + "require-dev": { + "doctrine/collections": "^1.6.8", + "doctrine/common": "^2.13.3 || ^3.2.2", + "phpunit/phpunit": "^7.5.20 || ^8.5.23 || ^9.5.13" + }, + "type": "library", + "autoload": { + "files": [ + "src/DeepCopy/deep_copy.php" + ], + "psr-4": { + "DeepCopy\\": "src/DeepCopy/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Create deep copies (clones) of your objects", + "keywords": [ + "clone", + "copy", + "duplicate", + "object", + "object graph" + ], + "support": { + "issues": "https://github.com/myclabs/DeepCopy/issues", + "source": "https://github.com/myclabs/DeepCopy/tree/1.11.0" + }, + "funding": [ + { + "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy", + "type": "tidelift" + } + ], + "time": "2022-03-03T13:19:32+00:00" + }, + { + "name": "nikic/php-parser", + "version": "v4.15.2", + "source": { + "type": "git", + "url": "https://github.com/nikic/PHP-Parser.git", + "reference": "f59bbe44bf7d96f24f3e2b4ddc21cd52c1d2adbc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/f59bbe44bf7d96f24f3e2b4ddc21cd52c1d2adbc", + "reference": "f59bbe44bf7d96f24f3e2b4ddc21cd52c1d2adbc", + "shasum": "" + }, + "require": { + "ext-tokenizer": "*", + "php": ">=7.0" + }, + "require-dev": { + "ircmaxell/php-yacc": "^0.0.7", + "phpunit/phpunit": "^6.5 || ^7.0 || ^8.0 || ^9.0" + }, + "bin": [ + "bin/php-parse" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.9-dev" + } + }, + "autoload": { + "psr-4": { + "PhpParser\\": "lib/PhpParser" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Nikita Popov" + } + ], + "description": "A PHP parser written in PHP", + "keywords": [ + "parser", + "php" + ], + "support": { + "issues": "https://github.com/nikic/PHP-Parser/issues", + "source": "https://github.com/nikic/PHP-Parser/tree/v4.15.2" + }, + "time": "2022-11-12T15:38:23+00:00" + }, + { + "name": "phar-io/manifest", + "version": "2.0.3", + "source": { + "type": "git", + "url": "https://github.com/phar-io/manifest.git", + "reference": "97803eca37d319dfa7826cc2437fc020857acb53" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phar-io/manifest/zipball/97803eca37d319dfa7826cc2437fc020857acb53", + "reference": "97803eca37d319dfa7826cc2437fc020857acb53", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-phar": "*", + "ext-xmlwriter": "*", + "phar-io/version": "^3.0.1", + "php": "^7.2 || ^8.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + }, + { + "name": "Sebastian Heuer", + "email": "sebastian@phpeople.de", + "role": "Developer" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "Developer" + } + ], + "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)", + "support": { + "issues": "https://github.com/phar-io/manifest/issues", + "source": "https://github.com/phar-io/manifest/tree/2.0.3" + }, + "time": "2021-07-20T11:28:43+00:00" + }, + { + "name": "phar-io/version", + "version": "3.2.1", + "source": { + "type": "git", + "url": "https://github.com/phar-io/version.git", + "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phar-io/version/zipball/4f7fd7836c6f332bb2933569e566a0d6c4cbed74", + "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + }, + { + "name": "Sebastian Heuer", + "email": "sebastian@phpeople.de", + "role": "Developer" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "Developer" + } + ], + "description": "Library for handling version information and constraints", + "support": { + "issues": "https://github.com/phar-io/version/issues", + "source": "https://github.com/phar-io/version/tree/3.2.1" + }, + "time": "2022-02-21T01:04:05+00:00" + }, + { + "name": "phpunit/php-code-coverage", + "version": "9.2.21", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-code-coverage.git", + "reference": "3f893e19712bb0c8bc86665d1562e9fd509c4ef0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/3f893e19712bb0c8bc86665d1562e9fd509c4ef0", + "reference": "3f893e19712bb0c8bc86665d1562e9fd509c4ef0", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-libxml": "*", + "ext-xmlwriter": "*", + "nikic/php-parser": "^4.14", + "php": ">=7.3", + "phpunit/php-file-iterator": "^3.0.3", + "phpunit/php-text-template": "^2.0.2", + "sebastian/code-unit-reverse-lookup": "^2.0.2", + "sebastian/complexity": "^2.0", + "sebastian/environment": "^5.1.2", + "sebastian/lines-of-code": "^1.0.3", + "sebastian/version": "^3.0.1", + "theseer/tokenizer": "^1.2.0" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "suggest": { + "ext-pcov": "*", + "ext-xdebug": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "9.2-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", + "homepage": "https://github.com/sebastianbergmann/php-code-coverage", + "keywords": [ + "coverage", + "testing", + "xunit" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.21" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2022-12-14T13:26:54+00:00" + }, + { + "name": "phpunit/php-file-iterator", + "version": "3.0.6", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-file-iterator.git", + "reference": "cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf", + "reference": "cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "FilterIterator implementation that filters files based on a list of suffixes.", + "homepage": "https://github.com/sebastianbergmann/php-file-iterator/", + "keywords": [ + "filesystem", + "iterator" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", + "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/3.0.6" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2021-12-02T12:48:52+00:00" + }, + { + "name": "phpunit/php-invoker", + "version": "3.1.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-invoker.git", + "reference": "5a10147d0aaf65b58940a0b72f71c9ac0423cc67" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/5a10147d0aaf65b58940a0b72f71c9ac0423cc67", + "reference": "5a10147d0aaf65b58940a0b72f71c9ac0423cc67", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "ext-pcntl": "*", + "phpunit/phpunit": "^9.3" + }, + "suggest": { + "ext-pcntl": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.1-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Invoke callables with a timeout", + "homepage": "https://github.com/sebastianbergmann/php-invoker/", + "keywords": [ + "process" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-invoker/issues", + "source": "https://github.com/sebastianbergmann/php-invoker/tree/3.1.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-09-28T05:58:55+00:00" + }, + { + "name": "phpunit/php-text-template", + "version": "2.0.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-text-template.git", + "reference": "5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28", + "reference": "5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Simple template engine.", + "homepage": "https://github.com/sebastianbergmann/php-text-template/", + "keywords": [ + "template" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-text-template/issues", + "source": "https://github.com/sebastianbergmann/php-text-template/tree/2.0.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T05:33:50+00:00" + }, + { + "name": "phpunit/php-timer", + "version": "5.0.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-timer.git", + "reference": "5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2", + "reference": "5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Utility class for timing", + "homepage": "https://github.com/sebastianbergmann/php-timer/", + "keywords": [ + "timer" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-timer/issues", + "source": "https://github.com/sebastianbergmann/php-timer/tree/5.0.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T13:16:10+00:00" + }, + { + "name": "phpunit/phpunit", + "version": "9.5.27", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/phpunit.git", + "reference": "a2bc7ffdca99f92d959b3f2270529334030bba38" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/a2bc7ffdca99f92d959b3f2270529334030bba38", + "reference": "a2bc7ffdca99f92d959b3f2270529334030bba38", + "shasum": "" + }, + "require": { + "doctrine/instantiator": "^1.3.1", + "ext-dom": "*", + "ext-json": "*", + "ext-libxml": "*", + "ext-mbstring": "*", + "ext-xml": "*", + "ext-xmlwriter": "*", + "myclabs/deep-copy": "^1.10.1", + "phar-io/manifest": "^2.0.3", + "phar-io/version": "^3.0.2", + "php": ">=7.3", + "phpunit/php-code-coverage": "^9.2.13", + "phpunit/php-file-iterator": "^3.0.5", + "phpunit/php-invoker": "^3.1.1", + "phpunit/php-text-template": "^2.0.3", + "phpunit/php-timer": "^5.0.2", + "sebastian/cli-parser": "^1.0.1", + "sebastian/code-unit": "^1.0.6", + "sebastian/comparator": "^4.0.8", + "sebastian/diff": "^4.0.3", + "sebastian/environment": "^5.1.3", + "sebastian/exporter": "^4.0.5", + "sebastian/global-state": "^5.0.1", + "sebastian/object-enumerator": "^4.0.3", + "sebastian/resource-operations": "^3.0.3", + "sebastian/type": "^3.2", + "sebastian/version": "^3.0.2" + }, + "suggest": { + "ext-soap": "*", + "ext-xdebug": "*" + }, + "bin": [ + "phpunit" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "9.5-dev" + } + }, + "autoload": { + "files": [ + "src/Framework/Assert/Functions.php" + ], + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "The PHP Unit Testing framework.", + "homepage": "https://phpunit.de/", + "keywords": [ + "phpunit", + "testing", + "xunit" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/phpunit/issues", + "source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.27" + }, + "funding": [ + { + "url": "https://phpunit.de/sponsors.html", + "type": "custom" + }, + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpunit/phpunit", + "type": "tidelift" + } + ], + "time": "2022-12-09T07:31:23+00:00" + }, + { + "name": "sebastian/cli-parser", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/cli-parser.git", + "reference": "442e7c7e687e42adc03470c7b668bc4b2402c0b2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/442e7c7e687e42adc03470c7b668bc4b2402c0b2", + "reference": "442e7c7e687e42adc03470c7b668bc4b2402c0b2", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for parsing CLI options", + "homepage": "https://github.com/sebastianbergmann/cli-parser", + "support": { + "issues": "https://github.com/sebastianbergmann/cli-parser/issues", + "source": "https://github.com/sebastianbergmann/cli-parser/tree/1.0.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-09-28T06:08:49+00:00" + }, + { + "name": "sebastian/code-unit", + "version": "1.0.8", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/code-unit.git", + "reference": "1fc9f64c0927627ef78ba436c9b17d967e68e120" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit/zipball/1fc9f64c0927627ef78ba436c9b17d967e68e120", + "reference": "1fc9f64c0927627ef78ba436c9b17d967e68e120", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Collection of value objects that represent the PHP code units", + "homepage": "https://github.com/sebastianbergmann/code-unit", + "support": { + "issues": "https://github.com/sebastianbergmann/code-unit/issues", + "source": "https://github.com/sebastianbergmann/code-unit/tree/1.0.8" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T13:08:54+00:00" + }, + { + "name": "sebastian/code-unit-reverse-lookup", + "version": "2.0.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", + "reference": "ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5", + "reference": "ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Looks up which function or method a line of code belongs to", + "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/", + "support": { + "issues": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/issues", + "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/2.0.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-09-28T05:30:19+00:00" + }, + { + "name": "sebastian/comparator", + "version": "4.0.8", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/comparator.git", + "reference": "fa0f136dd2334583309d32b62544682ee972b51a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/fa0f136dd2334583309d32b62544682ee972b51a", + "reference": "fa0f136dd2334583309d32b62544682ee972b51a", + "shasum": "" + }, + "require": { + "php": ">=7.3", + "sebastian/diff": "^4.0", + "sebastian/exporter": "^4.0" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@2bepublished.at" + } + ], + "description": "Provides the functionality to compare PHP values for equality", + "homepage": "https://github.com/sebastianbergmann/comparator", + "keywords": [ + "comparator", + "compare", + "equality" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/comparator/issues", + "source": "https://github.com/sebastianbergmann/comparator/tree/4.0.8" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2022-09-14T12:41:17+00:00" + }, + { + "name": "sebastian/complexity", + "version": "2.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/complexity.git", + "reference": "739b35e53379900cc9ac327b2147867b8b6efd88" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/739b35e53379900cc9ac327b2147867b8b6efd88", + "reference": "739b35e53379900cc9ac327b2147867b8b6efd88", + "shasum": "" + }, + "require": { + "nikic/php-parser": "^4.7", + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for calculating the complexity of PHP code units", + "homepage": "https://github.com/sebastianbergmann/complexity", + "support": { + "issues": "https://github.com/sebastianbergmann/complexity/issues", + "source": "https://github.com/sebastianbergmann/complexity/tree/2.0.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T15:52:27+00:00" + }, + { + "name": "sebastian/diff", + "version": "4.0.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/diff.git", + "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/3461e3fccc7cfdfc2720be910d3bd73c69be590d", + "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3", + "symfony/process": "^4.2 || ^5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Kore Nordmann", + "email": "mail@kore-nordmann.de" + } + ], + "description": "Diff implementation", + "homepage": "https://github.com/sebastianbergmann/diff", + "keywords": [ + "diff", + "udiff", + "unidiff", + "unified diff" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/diff/issues", + "source": "https://github.com/sebastianbergmann/diff/tree/4.0.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T13:10:38+00:00" + }, + { + "name": "sebastian/environment", + "version": "5.1.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/environment.git", + "reference": "1b5dff7bb151a4db11d49d90e5408e4e938270f7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/1b5dff7bb151a4db11d49d90e5408e4e938270f7", + "reference": "1b5dff7bb151a4db11d49d90e5408e4e938270f7", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "suggest": { + "ext-posix": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.1-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides functionality to handle HHVM/PHP environments", + "homepage": "http://www.github.com/sebastianbergmann/environment", + "keywords": [ + "Xdebug", + "environment", + "hhvm" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/environment/issues", + "source": "https://github.com/sebastianbergmann/environment/tree/5.1.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2022-04-03T09:37:03+00:00" + }, + { + "name": "sebastian/exporter", + "version": "4.0.5", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/exporter.git", + "reference": "ac230ed27f0f98f597c8a2b6eb7ac563af5e5b9d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/ac230ed27f0f98f597c8a2b6eb7ac563af5e5b9d", + "reference": "ac230ed27f0f98f597c8a2b6eb7ac563af5e5b9d", + "shasum": "" + }, + "require": { + "php": ">=7.3", + "sebastian/recursion-context": "^4.0" + }, + "require-dev": { + "ext-mbstring": "*", + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" + } + ], + "description": "Provides the functionality to export PHP variables for visualization", + "homepage": "https://www.github.com/sebastianbergmann/exporter", + "keywords": [ + "export", + "exporter" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/exporter/issues", + "source": "https://github.com/sebastianbergmann/exporter/tree/4.0.5" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2022-09-14T06:03:37+00:00" + }, + { + "name": "sebastian/global-state", + "version": "5.0.5", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/global-state.git", + "reference": "0ca8db5a5fc9c8646244e629625ac486fa286bf2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/0ca8db5a5fc9c8646244e629625ac486fa286bf2", + "reference": "0ca8db5a5fc9c8646244e629625ac486fa286bf2", + "shasum": "" + }, + "require": { + "php": ">=7.3", + "sebastian/object-reflector": "^2.0", + "sebastian/recursion-context": "^4.0" + }, + "require-dev": { + "ext-dom": "*", + "phpunit/phpunit": "^9.3" + }, + "suggest": { + "ext-uopz": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Snapshotting of global state", + "homepage": "http://www.github.com/sebastianbergmann/global-state", + "keywords": [ + "global state" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/global-state/issues", + "source": "https://github.com/sebastianbergmann/global-state/tree/5.0.5" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2022-02-14T08:28:10+00:00" + }, + { + "name": "sebastian/lines-of-code", + "version": "1.0.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/lines-of-code.git", + "reference": "c1c2e997aa3146983ed888ad08b15470a2e22ecc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/c1c2e997aa3146983ed888ad08b15470a2e22ecc", + "reference": "c1c2e997aa3146983ed888ad08b15470a2e22ecc", + "shasum": "" + }, + "require": { + "nikic/php-parser": "^4.6", + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for counting the lines of code in PHP source code", + "homepage": "https://github.com/sebastianbergmann/lines-of-code", + "support": { + "issues": "https://github.com/sebastianbergmann/lines-of-code/issues", + "source": "https://github.com/sebastianbergmann/lines-of-code/tree/1.0.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-11-28T06:42:11+00:00" + }, + { + "name": "sebastian/object-enumerator", + "version": "4.0.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/object-enumerator.git", + "reference": "5c9eeac41b290a3712d88851518825ad78f45c71" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/5c9eeac41b290a3712d88851518825ad78f45c71", + "reference": "5c9eeac41b290a3712d88851518825ad78f45c71", + "shasum": "" + }, + "require": { + "php": ">=7.3", + "sebastian/object-reflector": "^2.0", + "sebastian/recursion-context": "^4.0" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Traverses array structures and object graphs to enumerate all referenced objects", + "homepage": "https://github.com/sebastianbergmann/object-enumerator/", + "support": { + "issues": "https://github.com/sebastianbergmann/object-enumerator/issues", + "source": "https://github.com/sebastianbergmann/object-enumerator/tree/4.0.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T13:12:34+00:00" + }, + { + "name": "sebastian/object-reflector", + "version": "2.0.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/object-reflector.git", + "reference": "b4f479ebdbf63ac605d183ece17d8d7fe49c15c7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/b4f479ebdbf63ac605d183ece17d8d7fe49c15c7", + "reference": "b4f479ebdbf63ac605d183ece17d8d7fe49c15c7", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Allows reflection of object attributes, including inherited and non-public ones", + "homepage": "https://github.com/sebastianbergmann/object-reflector/", + "support": { + "issues": "https://github.com/sebastianbergmann/object-reflector/issues", + "source": "https://github.com/sebastianbergmann/object-reflector/tree/2.0.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T13:14:26+00:00" + }, + { + "name": "sebastian/recursion-context", + "version": "4.0.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/recursion-context.git", + "reference": "cd9d8cf3c5804de4341c283ed787f099f5506172" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/cd9d8cf3c5804de4341c283ed787f099f5506172", + "reference": "cd9d8cf3c5804de4341c283ed787f099f5506172", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + } + ], + "description": "Provides functionality to recursively process PHP variables", + "homepage": "http://www.github.com/sebastianbergmann/recursion-context", + "support": { + "issues": "https://github.com/sebastianbergmann/recursion-context/issues", + "source": "https://github.com/sebastianbergmann/recursion-context/tree/4.0.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T13:17:30+00:00" + }, + { + "name": "sebastian/resource-operations", + "version": "3.0.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/resource-operations.git", + "reference": "0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8", + "reference": "0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides a list of PHP built-in functions that operate on resources", + "homepage": "https://www.github.com/sebastianbergmann/resource-operations", + "support": { + "issues": "https://github.com/sebastianbergmann/resource-operations/issues", + "source": "https://github.com/sebastianbergmann/resource-operations/tree/3.0.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-09-28T06:45:17+00:00" + }, + { + "name": "sebastian/type", + "version": "3.2.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/type.git", + "reference": "fb3fe09c5f0bae6bc27ef3ce933a1e0ed9464b6e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/fb3fe09c5f0bae6bc27ef3ce933a1e0ed9464b6e", + "reference": "fb3fe09c5f0bae6bc27ef3ce933a1e0ed9464b6e", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.2-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Collection of value objects that represent the types of the PHP type system", + "homepage": "https://github.com/sebastianbergmann/type", + "support": { + "issues": "https://github.com/sebastianbergmann/type/issues", + "source": "https://github.com/sebastianbergmann/type/tree/3.2.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2022-09-12T14:47:03+00:00" + }, + { + "name": "sebastian/version", + "version": "3.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/version.git", + "reference": "c6c1022351a901512170118436c764e473f6de8c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/c6c1022351a901512170118436c764e473f6de8c", + "reference": "c6c1022351a901512170118436c764e473f6de8c", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library that helps with managing the version number of Git-hosted PHP projects", + "homepage": "https://github.com/sebastianbergmann/version", + "support": { + "issues": "https://github.com/sebastianbergmann/version/issues", + "source": "https://github.com/sebastianbergmann/version/tree/3.0.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-09-28T06:39:44+00:00" + }, + { + "name": "theseer/tokenizer", + "version": "1.2.1", + "source": { + "type": "git", + "url": "https://github.com/theseer/tokenizer.git", + "reference": "34a41e998c2183e22995f158c581e7b5e755ab9e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/theseer/tokenizer/zipball/34a41e998c2183e22995f158c581e7b5e755ab9e", + "reference": "34a41e998c2183e22995f158c581e7b5e755ab9e", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-tokenizer": "*", + "ext-xmlwriter": "*", + "php": "^7.2 || ^8.0" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + } + ], + "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", + "support": { + "issues": "https://github.com/theseer/tokenizer/issues", + "source": "https://github.com/theseer/tokenizer/tree/1.2.1" + }, + "funding": [ + { + "url": "https://github.com/theseer", + "type": "github" + } + ], + "time": "2021-07-28T10:34:58+00:00" + } + ], + "packages-dev": [], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": [], + "prefer-stable": false, + "prefer-lowest": false, + "platform": [], + "platform-dev": [], + "plugin-api-version": "2.3.0" +}