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/.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/README.md b/README.md new file mode 100644 index 0000000..6eca46c --- /dev/null +++ b/README.md @@ -0,0 +1,26 @@ + +# Welcome to Contao GoogleBusinessReviews Bundle +### Notice: this bundle is still under construction! + +## Requirements: +- Google Cloud Console Account +- Google Business Account +- Google Places API Key +- Google Place ID + +## Known limitations: +the Google Places API returnes only 5 reviews. If you need more, you need to request access to the Business Profile API: https://developers.google.com/my-business/content/overview?hl=de + +## How to set up a Google Places API Key: +[Google Docs Places API](https://developers.google.com/maps/documentation/places/web-service/get-api-key) + +DON´T FORGET TO RESTRICT YOUR API KEY! https://developers.google.com/maps/documentation/places/web-service/get-api-key#restrict_key + +## How to find your Google Place ID: +Go to the Google Places ID Finder page [Google Places ID Finder](https://developers.google.com/maps/documentation/javascript/examples/places-placeid-finder) and search for your business. When your business is found, click on the marker and copy the Place ID out of it. + +## How to find the URL to your Google My Business entry: +Go to your Google My Business entry, copy the URL out of the browser address bar and remove everything after your business name. + +## How to find the "Write a new review" link": +Go to your Google My Business entry and click on "Write a review". Copy the link out of the browser address bar. diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..c89986a --- /dev/null +++ b/composer.json @@ -0,0 +1,51 @@ +{ + "name": "w3scout/contao-googlebusinessreviews-bundle", + "description": "Zeigt eine Liste von Google Business Rezensionen", + "keywords": [ + "contao", + "bundle", + "Google Business Rezensionen", + "Google Business Reviews" + ], + "type": "contao-bundle", + "license": "GPL-3.0-or-later", + "authors": [ + { + "name": "Darko Selesi", + "email": "hallo@w3scouts.com", + "homepage": "https://w3scouts.com", + "role": "Developer" + } + ], + "support": { + "issues": "https://github.com/w3scout/contao-googlebusinessreviews-bundle/issues", + "source": "https://github.com/w3scout/contao-googlebusinessreviews-bundle" + }, + "require": { + "php": "^8.1", + "contao/core-bundle": "^4.13 || ^5.0" + }, + "require-dev": { + "contao/manager-plugin": "^2.12" + }, + "autoload": { + "psr-4": { + "W3Scout\\ContaoGoogleBusinessReviews\\": "src/" + } + }, + "config": { + "allow-plugins": { + "contao-components/installer": false, + "contao/manager-plugin": false, + "contao-community-alliance/composer-plugin": true + } + }, + "extra": { + "contao-manager-plugin": "W3Scout\\ContaoGoogleBusinessReviews\\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.9.0" +} 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..bfab829 --- /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%' + + W3Scout\ContaoGoogleBusinessReviews\: + 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..540cecb --- /dev/null +++ b/contao/config/config.php @@ -0,0 +1,14 @@ + + * @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/w3scout/contao-google-business-reviews + */ + +$GLOBALS['TL_CSS'][] = 'bundles/w3scoutcontaogooglebusinessreviews/css/styles.css|static'; +$GLOBALS['TL_JAVASCRIPT'][] = 'bundles/w3scoutcontaogooglebusinessreviews/js/script.js|static'; diff --git a/contao/dca/tl_module.php b/contao/dca/tl_module.php new file mode 100644 index 0000000..2fc044e --- /dev/null +++ b/contao/dca/tl_module.php @@ -0,0 +1,74 @@ + + * @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/w3scout/contao-google-business-reviews + */ + +use W3Scout\ContaoGoogleBusinessReviews\Controller\FrontendModule\GooglebusinessreviewsController; + +/** + * Frontend module + */ +$GLOBALS['TL_DCA']['tl_module']['palettes'][GooglebusinessreviewsController::TYPE] = '{title_legend},name,headline,type;{config_legend},w3s_google_api_key,w3s_google_places_id,w3s_reviews_language,w3s_reviews_no_translations,w3s_reviews_sort,w3s_reviews_link2gbp,w3s_reviews_new_review_link;{template_legend:hide},customTpl;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID'; + +$GLOBALS['TL_DCA']['tl_module']['fields']['w3s_google_api_key'] = array +( + 'exclude' => true, + 'inputType' => 'text', + 'eval' => array('maxlength'=>255, 'tl_class'=>'w50', 'mandatory'=>true), + 'sql' => "varchar(255) NOT NULL default ''" +); +$GLOBALS['TL_DCA']['tl_module']['fields']['w3s_google_places_id'] = array +( + 'exclude' => true, + 'inputType' => 'text', + 'eval' => array('maxlength'=>255, 'tl_class'=>'w50', 'mandatory'=>true), + 'sql' => "varchar(255) NOT NULL default ''" +); +$GLOBALS['TL_DCA']['tl_module']['fields']['w3s_reviews_language'] = array +( + 'exclude' => true, + 'inputType' => 'text', + 'eval' => array('maxlength'=>4, 'tl_class'=>'w50', 'mandatory'=>false), + 'sql' => "varchar(4) NOT NULL default ''" +); +$GLOBALS['TL_DCA']['tl_module']['fields']['w3s_reviews_no_translations'] = array +( + 'exclude' => true, + 'inputType' => 'select', + 'options' => array('true', 'false'), + 'reference' => &$GLOBALS['TL_LANG']['tl_module'], + 'eval' => array('tl_class'=>'w50'), + 'sql' => "varchar(5) COLLATE ascii_bin NOT NULL default 'false'" +); +$GLOBALS['TL_DCA']['tl_module']['fields']['w3s_reviews_sort'] = array +( + 'exclude' => true, + 'inputType' => 'select', + 'options' => array('most_relevant', 'newest'), + 'reference' => &$GLOBALS['TL_LANG']['tl_module'], + 'eval' => array('tl_class'=>'w50'), + 'sql' => "varchar(13) COLLATE ascii_bin NOT NULL default 'most_relevant'" +); +$GLOBALS['TL_DCA']['tl_module']['fields']['w3s_reviews_link2gbp'] = array +( + 'exclude' => true, + 'inputType' => 'text', + 'eval' => array('maxlength'=>255, 'tl_class'=>'clr w50', 'mandatory'=>false), + 'sql' => "varchar(255) NOT NULL default ''" +); +$GLOBALS['TL_DCA']['tl_module']['fields']['w3s_reviews_new_review_link'] = array +( + 'exclude' => true, + 'inputType' => 'text', + 'eval' => array('maxlength'=>255, 'tl_class'=>'w50', 'mandatory'=>false), + 'sql' => "varchar(255) NOT NULL default ''" +); diff --git a/contao/languages/de/default.php b/contao/languages/de/default.php new file mode 100644 index 0000000..a2df013 --- /dev/null +++ b/contao/languages/de/default.php @@ -0,0 +1,19 @@ + + * @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/w3scout/contao-googlebusiness-reviews + */ + +/** + * Miscellaneous + */ +$GLOBALS['TL_LANG']['MSC']['w3s_reviews_show_all_reviews'] = 'Alle Bewertungen auf Google ansehen'; +$GLOBALS['TL_LANG']['MSC']['w3s_reviews_write_new_review'] = 'Eine Rezension schreiben'; diff --git a/contao/languages/de/modules.php b/contao/languages/de/modules.php new file mode 100644 index 0000000..6330256 --- /dev/null +++ b/contao/languages/de/modules.php @@ -0,0 +1,21 @@ + + * @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/w3scout/contao-google-business-reviews + */ + +use W3Scout\ContaoGoogleBusinessReviews\Controller\FrontendModule\GooglebusinessreviewsController; + +/** + * Frontend modules + */ +$GLOBALS['TL_LANG']['FMD']['reviews'] = 'Google Business Rezensionen'; +$GLOBALS['TL_LANG']['FMD'][GooglebusinessreviewsController::TYPE] = ['Google Business Reviews', 'Zeigt Google Business Rezensionen an.']; diff --git a/contao/languages/de/tl_module.php b/contao/languages/de/tl_module.php new file mode 100644 index 0000000..aacd253 --- /dev/null +++ b/contao/languages/de/tl_module.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/w3scout/contao-google-business-reviews + */ + +/** + * Frontend modules + */ +$GLOBALS['TL_LANG']['tl_module']['w3s_google_api_key'] = ['Google API Key', 'Bitte geben Sie Ihren Google API Key ein.']; +$GLOBALS['TL_LANG']['tl_module']['w3s_google_places_id'] = ['Google Places ID', 'Bitte geben Sie Ihre Google Places ID ein.']; +$GLOBALS['TL_LANG']['tl_module']['w3s_reviews_language'] = ['Sprache', 'Bitte geben Sie den ISO-Code der Sprache (z.B. "de"). Wenn Sie keine Sprache angeben, werden die Rezensionen in der Originalsprache angezeigt.']; +$GLOBALS['TL_LANG']['tl_module']['w3s_reviews_no_translations'] = ['Rezensionen in der originalen Sprache anzeigen', 'Bitte wählen Sie, ob Rezensionen in der vom Rezensent verwendeten Sprache angezeigt werden sollen.']; +$GLOBALS['TL_LANG']['tl_module']['w3s_reviews_sort'] = ['Sortierung ', 'Bitte wählen Sie die Sortierung der Rezensionen.']; +$GLOBALS['TL_LANG']['tl_module']['true'] = 'Ja'; +$GLOBALS['TL_LANG']['tl_module']['false'] = 'Nein'; +$GLOBALS['TL_LANG']['tl_module']['most_relevant'] = 'Relevante zuerst (Standard)'; +$GLOBALS['TL_LANG']['tl_module']['newest'] = 'Neueste zuerst'; +$GLOBALS['TL_LANG']['tl_module']['w3s_reviews_link2gbp'] = ['Link zum Google Maps Business Profil', 'Bitte tragen Sie die URL zu Ihrem Google Maps Business Profil ein.']; +$GLOBALS['TL_LANG']['tl_module']['w3s_reviews_new_review_link'] = ['Link zum Formular "Rezension schreiben"', 'Bitte tragen Sie die URL zum Formular "Neue Rezension" ein.']; diff --git a/contao/languages/en/default.php b/contao/languages/en/default.php new file mode 100644 index 0000000..6dd6cfa --- /dev/null +++ b/contao/languages/en/default.php @@ -0,0 +1,19 @@ + + * @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/w3scout/contao-googlebusiness-reviews + */ + +/** + * Miscellaneous + */ +$GLOBALS['TL_LANG']['MSC']['w3s_reviews_show_all_reviews'] = 'View all reviews on Google'; +$GLOBALS['TL_LANG']['MSC']['w3s_reviews_write_new_review'] = 'Write a review'; diff --git a/contao/languages/en/modules.php b/contao/languages/en/modules.php new file mode 100644 index 0000000..b548918 --- /dev/null +++ b/contao/languages/en/modules.php @@ -0,0 +1,21 @@ + + * @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/w3scout/contao-google-business-reviews + */ + +use W3Scout\ContaoGoogleBusinessReviews\Controller\FrontendModule\GooglebusinessreviewsController; + +/** + * Frontend modules + */ +$GLOBALS['TL_LANG']['FMD']['reviews'] = 'Google Business Reviews'; +$GLOBALS['TL_LANG']['FMD'][GooglebusinessreviewsController::TYPE] = ['Google Business Reviews', 'Displays Google business reviews.']; diff --git a/contao/languages/en/tl_module.php b/contao/languages/en/tl_module.php new file mode 100644 index 0000000..c6294f2 --- /dev/null +++ b/contao/languages/en/tl_module.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/w3scout/contao-google-business-reviews + */ + +/** + * Frontend modules + */ +$GLOBALS['TL_LANG']['tl_module']['w3s_google_api_key'] = ['Google API Key', 'Please enter your Google API Key.']; +$GLOBALS['TL_LANG']['tl_module']['w3s_google_places_id'] = ['Google Places ID', 'Please enter your Google Places ID.']; +$GLOBALS['TL_LANG']['tl_module']['w3s_reviews_language'] = ['Language', 'Please enter the ISO code of the language (e.g. "en"). If you do not specify a language, the reviews will be displayed in the original language.']; +$GLOBALS['TL_LANG']['tl_module']['w3s_reviews_no_translations'] = ['Show reviews in the original language', 'Please select whether reviews should be displayed in the language used by the reviewer.']; +$GLOBALS['TL_LANG']['tl_module']['w3s_reviews_sort'] = ['Sorting ', 'Please choose the sorting of the reviews.']; +$GLOBALS['TL_LANG']['tl_module']['true'] = 'Yes'; +$GLOBALS['TL_LANG']['tl_module']['false'] = 'No'; +$GLOBALS['TL_LANG']['tl_module']['most_relevant'] = 'Relevant first (default)'; +$GLOBALS['TL_LANG']['tl_module']['newest'] = 'Newest first'; +$GLOBALS['TL_LANG']['tl_module']['w3s_reviews_link2gbp'] = ['Link to Google Maps Business Profile', 'Please enter the URL to your Google Maps Business profile.']; +$GLOBALS['TL_LANG']['tl_module']['w3s_reviews_new_review_link'] = ['Link to the "Write a review" form', 'Please enter the URL to the "New review" form.']; diff --git a/contao/templates/mod_googlebusinessreviews.html5 b/contao/templates/mod_googlebusinessreviews.html5 new file mode 100644 index 0000000..76dcbeb --- /dev/null +++ b/contao/templates/mod_googlebusinessreviews.html5 @@ -0,0 +1,39 @@ +extend('block_searchable'); ?> + +block('content'); ?> + +
+ reviews; + foreach ($reviews as $review): ?> +
+
+ Photo of <?= $review['author_name'] ?> +
+

+

+
+
+
+ + + +
+

+
+
+ +
+ + link2gbp): ?> +
+ link2gbp_txt ?> +
+ + new_review_link): ?> + + + +endblock(); ?> \ No newline at end of file diff --git a/public/css/styles.css b/public/css/styles.css new file mode 100644 index 0000000..323dde2 --- /dev/null +++ b/public/css/styles.css @@ -0,0 +1,133 @@ +@font-face { + font-family: 'fontello'; + src: url('../fonts/fontello.eot?96119547'); + src: url('../fonts/fontello.eot?96119547#iefix') format('embedded-opentype'), + url('../fonts/fontello.woff2?96119547') format('woff2'), + url('../fonts/fontello.woff?96119547') format('woff'), + url('../fonts/fontello.ttf?96119547') format('truetype'), + url('../fonts/fontello.svg?96119547#fontello') format('svg'); + font-weight: normal; + font-style: normal; +} +/* Chrome hack: SVG is rendered more smooth in Windozze. 100% magic, uncomment if you need it. */ +/* Note, that will break hinting! In other OS-es font will be not as sharp as it could be */ + +@media screen and (-webkit-min-device-pixel-ratio:0) { + @font-face { + font-family: 'fontello'; + src: url('../fonts/fontello.svg?96119547#fontello') format('svg'); + } +} + +[class^="icon-"]:before, [class*=" icon-"]:before { + font-family: "fontello"; + font-style: normal; + font-weight: normal; + speak: never; + + display: inline-block; + text-decoration: inherit; + width: 1em; + margin-right: .2em; + text-align: center; + /* opacity: .8; */ + + /* For safety - reset parent styles, that can break glyph codes*/ + font-variant: normal; + text-transform: none; + + /* fix buttons height, for twitter bootstrap */ + line-height: 1em; + + /* Animation center compensation - margins should be symmetric */ + /* remove if not needed */ + margin-left: .2em; + + /* you can be more comfortable with increased icons size */ + /* font-size: 120%; */ + + /* Font smoothing. That was taken from TWBS */ + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + + /* Uncomment for 3D effect */ + text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); +} + +.icon-star:before { content: '\e800'; } /* '' */ +.icon-star-empty:before { content: '\e801'; } /* '' */ + +.mod_googlebusinessreviews .reviews { + display: flex; +} +.mod_googlebusinessreviews .review { + flex: 1 1 0; + border: 1px solid #ccc; + border-radius: 10px; + padding: 10px; + margin: 0 10px; +} +.mod_googlebusinessreviews .review .author { + margin-bottom: 12px; + align-items: center; + display: flex; +} +.mod_googlebusinessreviews .review .author img { + margin-right: 10px; +} +.mod_googlebusinessreviews .review .author div { + display: inline-block; +} +.mod_googlebusinessreviews .review .author .name { + display: inline-block; + margin-top: 0; + margin-bottom: 5px; +} +.mod_googlebusinessreviews .review .author .name a { + text-decoration: none; + font-size: 0.9rem; + font-weight: bold; + color: black; +} +.mod_googlebusinessreviews .review .author .date { + color: grey; + margin-top: 0; + margin-bottom: 0; +} +.mod_googlebusinessreviews .review .rating { + display: flex; + margin: 10px -5px; +} +.mod_googlebusinessreviews .review .rating .icon-star { + font-size: 18px; + width: 18px; + display: inline-block; +} +.mod_googlebusinessreviews .review .rating .icon-star.yellow { + color: rgb(252, 191, 2); +} +.mod_googlebusinessreviews .review .rating .icon-star.grey { + color: lightgrey; +} +.mod_googlebusinessreviews .review .text { +} +.mod_googlebusinessreviews .review .text p { + font-size: 1rem; + color: rgb(70, 70, 70); + line-height: 1.4; +} +.mod_googlebusinessreviews .review .google { + width: 70px; + height: 24px; + display: inline-block; + background: url("../img/logo_google_200x68.png") center no-repeat; + background-size: cover; +} +.mod_googlebusinessreviews .link2gbp { + text-align: right; + margin-top: 10px; +} +.mod_googlebusinessreviews .new_review_link { + text-align: right; + margin-top: 10px; +} diff --git a/public/fonts/LICENSE.txt b/public/fonts/LICENSE.txt new file mode 100644 index 0000000..8fa3da3 --- /dev/null +++ b/public/fonts/LICENSE.txt @@ -0,0 +1,12 @@ +Font license info + + +## Font Awesome + + Copyright (C) 2016 by Dave Gandy + + Author: Dave Gandy + License: SIL () + Homepage: http://fortawesome.github.com/Font-Awesome/ + + diff --git a/public/fonts/README.txt b/public/fonts/README.txt new file mode 100644 index 0000000..d870892 --- /dev/null +++ b/public/fonts/README.txt @@ -0,0 +1,75 @@ +This webfont is generated by https://fontello.com open source project. + + +================================================================================ +Please, note, that you should obey original font licenses, used to make this +webfont pack. Details available in LICENSE.txt file. + +- Usually, it's enough to publish content of LICENSE.txt file somewhere on your + site in "About" section. + +- If your project is open-source, usually, it will be ok to make LICENSE.txt + file publicly available in your repository. + +- Fonts, used in Fontello, don't require a clickable link on your site. + But any kind of additional authors crediting is welcome. +================================================================================ + + +Comments on archive content +--------------------------- + +- /font/* - fonts in different formats + +- /css/* - different kinds of css, for all situations. Should be ok with + twitter bootstrap. Also, you can skip style and assign icon classes + directly to text elements, if you don't mind about IE7. + +- demo.html - demo file, to show your webfont content + +- LICENSE.txt - license info about source fonts, used to build your one. + +- config.json - keeps your settings. You can import it back into fontello + anytime, to continue your work + + +Why so many CSS files ? +----------------------- + +Because we like to fit all your needs :) + +- basic file, .css - is usually enough, it contains @font-face + and character code definitions + +- *-ie7.css - if you need IE7 support, but still don't wish to put char codes + directly into html + +- *-codes.css and *-ie7-codes.css - if you like to use your own @font-face + rules, but still wish to benefit from css generation. That can be very + convenient for automated asset build systems. When you need to update font - + no need to manually edit files, just override old version with archive + content. See fontello source code for examples. + +- *-embedded.css - basic css file, but with embedded WOFF font, to avoid + CORS issues in Firefox and IE9+, when fonts are hosted on the separate domain. + We strongly recommend to resolve this issue by `Access-Control-Allow-Origin` + server headers. But if you ok with dirty hack - this file is for you. Note, + that data url moved to separate @font-face to avoid problems with + + +Copyright (C) 2023 by original authors @ fontello.com + + + + + + + + + + diff --git a/public/fonts/fontello.ttf b/public/fonts/fontello.ttf new file mode 100644 index 0000000..25544a2 Binary files /dev/null and b/public/fonts/fontello.ttf differ diff --git a/public/fonts/fontello.woff b/public/fonts/fontello.woff new file mode 100644 index 0000000..cab4a2d Binary files /dev/null and b/public/fonts/fontello.woff differ diff --git a/public/fonts/fontello.woff2 b/public/fonts/fontello.woff2 new file mode 100644 index 0000000..1332b9e Binary files /dev/null and b/public/fonts/fontello.woff2 differ diff --git a/public/img/logo_google.png b/public/img/logo_google.png new file mode 100644 index 0000000..ea79871 Binary files /dev/null and b/public/img/logo_google.png differ diff --git a/public/img/logo_google_200x68.png b/public/img/logo_google_200x68.png new file mode 100644 index 0000000..d072b12 Binary files /dev/null and b/public/img/logo_google_200x68.png differ diff --git a/public/js/script.js b/public/js/script.js new file mode 100644 index 0000000..f70f23f --- /dev/null +++ b/public/js/script.js @@ -0,0 +1,14 @@ +"use strict"; + +(function () { + document.addEventListener("DOMContentLoaded", function() { + console.log('Test 2: Google Business Reviews 2'); + let reviews= document.querySelectorAll('.review p.text'); + reviews.forEach(function(r) { + let t = r.innerText; + r.innerText = t.slice(0,200); + // ToDo: Add "..." to the end of the text, onClick show the full text + // console.log(r.innerText); + }); + }); +})(); diff --git a/src/ContaoManager/Plugin.php b/src/ContaoManager/Plugin.php new file mode 100644 index 0000000..fc40a0f --- /dev/null +++ b/src/ContaoManager/Plugin.php @@ -0,0 +1,30 @@ + + * @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/w3scout/contao-google-business-reviews + */ + +namespace W3Scout\ContaoGoogleBusinessReviews\ContaoManager; + +use Contao\ManagerPlugin\Bundle\BundlePluginInterface; +use Contao\ManagerPlugin\Bundle\Config\BundleConfig; +use Contao\ManagerPlugin\Bundle\Parser\ParserInterface; + +class Plugin implements BundlePluginInterface +{ + public function getBundles(ParserInterface $parser): array + { + return [ + BundleConfig::create('W3Scout\ContaoGoogleBusinessReviews\W3ScoutContaoGoogleBusinessReviews') + ->setLoadAfter(['Contao\CoreBundle\ContaoCoreBundle']), + ]; + } +} diff --git a/src/Controller/FrontendModule/GooglebusinessreviewsController.php b/src/Controller/FrontendModule/GooglebusinessreviewsController.php new file mode 100644 index 0000000..c54c9d0 --- /dev/null +++ b/src/Controller/FrontendModule/GooglebusinessreviewsController.php @@ -0,0 +1,105 @@ + + * @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/w3scout/contao-google-business-reviews + */ + +namespace W3Scout\ContaoGoogleBusinessReviews\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\ModuleModel; +use Contao\PageModel; +use Contao\StringUtil; +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: 'reviews', template: 'mod_googlebusinessreviews')] +class GooglebusinessreviewsController extends AbstractFrontendModuleController +{ + public const TYPE = 'googlebusinessreviews'; + 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['translator'] = TranslatorInterface::class; + + return $services; + } + protected function getResponse(Template $template, ModuleModel $model, Request $request): Response + { + $config = new \stdClass(); + $config->api_key = $model->w3s_google_api_key; + $config->places_id = $model->w3s_google_places_id; + $config->language = $model->w3s_reviews_language; + $config->translate = $model->w3s_reviews_no_translations; + $config->sort = $model->w3s_reviews_sort; + $config->link2gbp = $model->w3s_reviews_link2gbp; + $config->new_review_link = $model->w3s_reviews_new_review_link; + + $reviews = $this->getGoogleReviews($config); + $template->reviews = $reviews; + + if($config->link2gbp !== '') { + $template->link2gbp = $config->link2gbp; + $template->link2gbp_txt = $GLOBALS['TL_LANG']['MSC']['w3s_reviews_show_all_reviews']; + } + if($config->new_review_link !== '') { + $template->new_review_link = $config->new_review_link; + $template->new_review_link_txt = $GLOBALS['TL_LANG']['MSC']['w3s_reviews_write_new_review']; + } + + return $template->getResponse(); + } + protected function getGoogleReviews($config) + { + $url = "https://maps.googleapis.com/maps/api/place/details/json?place_id={$config->places_id}&fields=reviews,user_ratings_total&key={$config->api_key}&language={$config->language}&reviews_sort={$config->sort}&reviews_no_translations={$config->translate}"; + $json = file_get_contents($url); + $data = json_decode($json, true); + $reviews = $data['result']['reviews']; + + return $reviews; + } +} diff --git a/src/DependencyInjection/W3ScoutContaoGoogleBusinessReviewsExtension.php b/src/DependencyInjection/W3ScoutContaoGoogleBusinessReviewsExtension.php new file mode 100644 index 0000000..d9ebdd7 --- /dev/null +++ b/src/DependencyInjection/W3ScoutContaoGoogleBusinessReviewsExtension.php @@ -0,0 +1,39 @@ + + * @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/w3scout/contao-google-business-reviews + */ + +namespace W3Scout\ContaoGoogleBusinessReviews\DependencyInjection; + +use Symfony\Component\Config\FileLocator; +use Symfony\Component\DependencyInjection\ContainerBuilder; +use Symfony\Component\DependencyInjection\Extension\Extension; +use Symfony\Component\DependencyInjection\Loader\YamlFileLoader; + +class W3ScoutContaoGoogleBusinessReviewsExtension extends Extension +{ + /** + * @throws \Exception + */ + public function load(array $configs, ContainerBuilder $container): void + { + + $loader = new YamlFileLoader( + $container, + new FileLocator(__DIR__.'/../../config') + ); + + $loader->load('parameters.yaml'); + $loader->load('services.yaml'); + $loader->load('listener.yaml'); + } +} diff --git a/src/W3ScoutContaoGoogleBusinessReviews.php b/src/W3ScoutContaoGoogleBusinessReviews.php new file mode 100644 index 0000000..9db925b --- /dev/null +++ b/src/W3ScoutContaoGoogleBusinessReviews.php @@ -0,0 +1,34 @@ + + * @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/w3scout/contao-google-business-reviews + */ + +namespace W3Scout\ContaoGoogleBusinessReviews; + +use Symfony\Component\DependencyInjection\ContainerBuilder; +use Symfony\Component\HttpKernel\Bundle\Bundle; + +class W3ScoutContaoGoogleBusinessReviews extends Bundle +{ + public function getPath(): string + { + return \dirname(__DIR__); + } + + /** + * {@inheritdoc} + */ + public function build(ContainerBuilder $container): void + { + parent::build($container); + } +} diff --git a/tests/ContaoManager/PluginTest.php b/tests/ContaoManager/PluginTest.php new file mode 100644 index 0000000..0ff1af2 --- /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/w3scout/contao-google-business-reviews + */ +declare(strict_types=1); + +namespace W3Scout\ContaoGoogleBusinessReviews\Tests\ContaoManager; + +use Contao\CoreBundle\ContaoCoreBundle; +use Contao\ManagerPlugin\Bundle\Config\BundleConfig; +use Contao\ManagerPlugin\Bundle\Parser\DelegatingParser; +use Contao\TestCase\ContaoTestCase; +use W3Scout\ContaoGoogleBusinessReviews\ContaoManager\Plugin; +use W3Scout\ContaoGoogleBusinessReviews\W3ScoutContaoGoogleBusinessReviews; + +/** + * @package W3Scout\ContaoGoogleBusinessReviews\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(W3ScoutContaoGoogleBusinessReviews::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" +}