From 9ab60bacbd1f290eb7587a871f0ee43e60e7de24 Mon Sep 17 00:00:00 2001 From: David Molineus Date: Thu, 28 Sep 2017 15:38:24 +0200 Subject: [PATCH] Initial commit. --- .check-author.yml | 4 + .gitattributes | 10 + .gitignore | 24 + .travis.yml | 26 + CHANGELOG.md | 20 + LICENSE | 165 +++ README.md | 70 + build.default.properties | 4 + build.xml | 5 + composer.json | 43 + file.json | 1251 +++++++++++++++++ src/ContaoManager/Plugin.php | 38 + src/ContentElement/PackageInfoElement.php | 117 ++ ...tzmachtContaoPackagistPackageExtension.php | 43 + src/Listener/Dca/ContentListener.php | 50 + src/NetzmachtContaoPackagistPackageBundle.php | 25 + src/Resouces/config/config.yml | 13 + src/Resouces/config/listeners.yml | 5 + src/Resouces/config/services.yml | 5 + src/Resouces/contao/config/config.php | 15 + src/Resouces/contao/dca/tl_content.php | 55 + src/Resouces/contao/languages/de/default.php | 21 + .../templates/ce_packagist_package.html5 | 16 + 23 files changed, 2025 insertions(+) create mode 100644 .check-author.yml create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 .travis.yml create mode 100644 CHANGELOG.md create mode 100644 LICENSE create mode 100644 README.md create mode 100644 build.default.properties create mode 100644 build.xml create mode 100644 composer.json create mode 100644 file.json create mode 100644 src/ContaoManager/Plugin.php create mode 100644 src/ContentElement/PackageInfoElement.php create mode 100644 src/DependencyInjection/NetzmachtContaoPackagistPackageExtension.php create mode 100644 src/Listener/Dca/ContentListener.php create mode 100644 src/NetzmachtContaoPackagistPackageBundle.php create mode 100644 src/Resouces/config/config.yml create mode 100644 src/Resouces/config/listeners.yml create mode 100644 src/Resouces/config/services.yml create mode 100644 src/Resouces/contao/config/config.php create mode 100644 src/Resouces/contao/dca/tl_content.php create mode 100644 src/Resouces/contao/languages/de/default.php create mode 100644 src/Resouces/contao/templates/ce_packagist_package.html5 diff --git a/.check-author.yml b/.check-author.yml new file mode 100644 index 0000000..8769c7d --- /dev/null +++ b/.check-author.yml @@ -0,0 +1,4 @@ + +exclude: + languages + diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..06d085f --- /dev/null +++ b/.gitattributes @@ -0,0 +1,10 @@ +.check-author.yml export-ignore +.gitattributes export-ignore +.github export-ignore +.gitignore export-ignore +.travis.yml export-ignore +build.default.properties export-ignore +build.xml export-ignore +phpunit.xml.dist export-ignore +/tests export-ignore +/specs export-ignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a4e22b1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,24 @@ +# OS +.DS_Store +Thumbs.db +.directory + +# IDEs +.buildpath +.project +.settings/ +.build/ +.external*/ +.idea/ +nbproject/ + +# composer related +vendor/ +composer.lock + +# build +build/ +build.properties + +# Translations +.tx diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..bd5f744 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,26 @@ +language: php + +php: + - "7.1" + +env: + - CONTAO_VERSION=contao/core-bundle ~4.4.0 + +matrix: + exclude: + +sudo: false + +install: + - travis_retry composer self-update && composer --version + - travis_retry composer require $CONTAO_VERSION --no-update + - travis_retry composer update --prefer-dist --no-interaction + +script: ant -keep-going + +git: + depth: 2147483647 + +cache: + directories: + - vendor diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..1c85115 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,20 @@ + +2.0.0-beta1 (2017-09-27) + +[Full Changelog](https://github.com/contao-bootstrap/grid/compare/2.0.0-alpha1...2.0.0-beta1) + +Implemented enhancements: + + - Require PHP 7.1 + - Support Bootstrap 4 beta changes + - Complete english translation + - Support import/export of the theme + - Support easy themes + - Added README.md + - Added .gitattributes + - Added CHANGELOG.md + +Fixed bugs: + + - Grid row settings were not recognized + - Frontend module did not support resets diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..6600f1c --- /dev/null +++ b/LICENSE @@ -0,0 +1,165 @@ +GNU LESSER GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + + This version of the GNU Lesser General Public License incorporates +the terms and conditions of version 3 of the GNU General Public +License, supplemented by the additional permissions listed below. + + 0. Additional Definitions. + + As used herein, "this License" refers to version 3 of the GNU Lesser +General Public License, and the "GNU GPL" refers to version 3 of the GNU +General Public License. + + "The Library" refers to a covered work governed by this License, +other than an Application or a Combined Work as defined below. + + An "Application" is any work that makes use of an interface provided +by the Library, but which is not otherwise based on the Library. +Defining a subclass of a class defined by the Library is deemed a mode +of using an interface provided by the Library. + + A "Combined Work" is a work produced by combining or linking an +Application with the Library. The particular version of the Library +with which the Combined Work was made is also called the "Linked +Version". + + The "Minimal Corresponding Source" for a Combined Work means the +Corresponding Source for the Combined Work, excluding any source code +for portions of the Combined Work that, considered in isolation, are +based on the Application, and not on the Linked Version. + + The "Corresponding Application Code" for a Combined Work means the +object code and/or source code for the Application, including any data +and utility programs needed for reproducing the Combined Work from the +Application, but excluding the System Libraries of the Combined Work. + + 1. Exception to Section 3 of the GNU GPL. + + You may convey a covered work under sections 3 and 4 of this License +without being bound by section 3 of the GNU GPL. + + 2. Conveying Modified Versions. + + If you modify a copy of the Library, and, in your modifications, a +facility refers to a function or data to be supplied by an Application +that uses the facility (other than as an argument passed when the +facility is invoked), then you may convey a copy of the modified +version: + + a) under this License, provided that you make a good faith effort to + ensure that, in the event an Application does not supply the + function or data, the facility still operates, and performs + whatever part of its purpose remains meaningful, or + + b) under the GNU GPL, with none of the additional permissions of + this License applicable to that copy. + + 3. Object Code Incorporating Material from Library Header Files. + + The object code form of an Application may incorporate material from +a header file that is part of the Library. You may convey such object +code under terms of your choice, provided that, if the incorporated +material is not limited to numerical parameters, data structure +layouts and accessors, or small macros, inline functions and templates +(ten or fewer lines in length), you do both of the following: + + a) Give prominent notice with each copy of the object code that the + Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the object code with a copy of the GNU GPL and this license + document. + + 4. Combined Works. + + You may convey a Combined Work under terms of your choice that, +taken together, effectively do not restrict modification of the +portions of the Library contained in the Combined Work and reverse +engineering for debugging such modifications, if you also do each of +the following: + + a) Give prominent notice with each copy of the Combined Work that + the Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the Combined Work with a copy of the GNU GPL and this license + document. + + c) For a Combined Work that displays copyright notices during + execution, include the copyright notice for the Library among + these notices, as well as a reference directing the user to the + copies of the GNU GPL and this license document. + + d) Do one of the following: + + 0) Convey the Minimal Corresponding Source under the terms of this + License, and the Corresponding Application Code in a form + suitable for, and under terms that permit, the user to + recombine or relink the Application with a modified version of + the Linked Version to produce a modified Combined Work, in the + manner specified by section 6 of the GNU GPL for conveying + Corresponding Source. + + 1) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (a) uses at run time + a copy of the Library already present on the user's computer + system, and (b) will operate properly with a modified version + of the Library that is interface-compatible with the Linked + Version. + + e) Provide Installation Information, but only if you would otherwise + be required to provide such information under section 6 of the + GNU GPL, and only to the extent that such information is + necessary to install and execute a modified version of the + Combined Work produced by recombining or relinking the + Application with a modified version of the Linked Version. (If + you use option 4d0, the Installation Information must accompany + the Minimal Corresponding Source and Corresponding Application + Code. If you use option 4d1, you must provide the Installation + Information in the manner specified by section 6 of the GNU GPL + for conveying Corresponding Source.) + + 5. Combined Libraries. + + You may place library facilities that are a work based on the +Library side by side in a single library together with other library +facilities that are not Applications and are not covered by this +License, and convey such a combined library under terms of your +choice, if you do both of the following: + + a) Accompany the combined library with a copy of the same work based + on the Library, uncombined with any other library facilities, + conveyed under the terms of this License. + + b) Give prominent notice with the combined library that part of it + is a work based on the Library, and explaining where to find the + accompanying uncombined form of the same work. + + 6. Revised Versions of the GNU Lesser General Public License. + + The Free Software Foundation may publish revised and/or new versions +of the GNU Lesser General Public License from time to time. Such new +versions will be similar in spirit to the present version, but may +differ in detail to address new problems or concerns. + + Each version is given a distinguishing version number. If the +Library as you received it specifies that a certain numbered version +of the GNU Lesser General Public License "or any later version" +applies to it, you have the option of following the terms and +conditions either of that published version or of any later version +published by the Free Software Foundation. If the Library as you +received it does not specify a version number of the GNU Lesser +General Public License, you may choose any version of the GNU Lesser +General Public License ever published by the Free Software Foundation. + + If the Library as you received it specifies that a proxy can decide +whether future versions of the GNU Lesser General Public License shall +apply, that proxy's public statement of acceptance of any version is +permanent authorization for you to choose that version for the +Library. diff --git a/README.md b/README.md new file mode 100644 index 0000000..a961669 --- /dev/null +++ b/README.md @@ -0,0 +1,70 @@ +Contao-Bootstrap Grid Component +=============================== + +[![Build Status](http://img.shields.io/travis/contao-bootstrap/grid/master.svg?style=flat-square)](https://travis-ci.org/contao-bootstrap/grid) +[![Version](http://img.shields.io/packagist/v/contao-bootstrap/grid.svg?style=flat-square)](http://packagist.org/packages/contao-bootstrap/grid) +[![License](http://img.shields.io/packagist/l/contao-bootstrap/grid.svg?style=flat-square)](http://packagist.org/packages/contao-bootstrap/grid) +[![Downloads](http://img.shields.io/packagist/dt/contao-bootstrap/grid.svg?style=flat-square)](http://packagist.org/packages/contao-bootstrap/grid) +[![Contao Community Alliance coding standard](http://img.shields.io/badge/cca-coding_standard-red.svg?style=flat-square)](https://github.com/contao-community-alliance/coding-standard) + + +This extension provides Bootstrap 4 grid tools for Contao CMS. + +Features +-------- + + - Manage grid definition in your theme settings + - Content elements + - Form elements + - Grid module + - Import/Export with your theme settings + +Changelog +--------- + +See [changelog](CHANGELOG.md) + +Requirements +------------ + + - PHP 7.1 + - Contao ~4.4 + + +Install +------- + +### Managed edition + +When using the managed edition it's pretty simple to install the package. Just search for the package in the +Contao Manager and install it. Alternatively you can use the CLI. + +```bash +# Using the contao manager +$ php contao-manager.phar.php composer require contao-bootstrap/grid~2.0@beta + +# Using composer directly +$ php composer.phar require contao-bootstrap/grid~2.0@beta +``` + +### Standard edition + +Without the contao manager you also have to register the bundle + +```php + +class AppKernel +{ + public function registerBundles() + { + $bundles = [ + // ... + new Contao\CoreBundle\HttpKernel\Bundle\ContaoModuleBundle('metapalettes', $this->getRootDir()), + new Contao\CoreBundle\HttpKernel\Bundle\ContaoModuleBundle('multicolumnwizard', $this->getRootDir()), + new ContaoBootstrap\Core\ContaoBootstrapCoreBundle(), + new ContaoBootstrap\Grid\ContaoBootstrapGridBundle() + ]; + } +} + +``` diff --git a/build.default.properties b/build.default.properties new file mode 100644 index 0000000..0f40b56 --- /dev/null +++ b/build.default.properties @@ -0,0 +1,4 @@ +phpcs.standard=${basedir}/vendor/phpcq/coding-standard/phpcs/PhpCodeQuality/ruleset.xml +phpmd.ruleset=${basedir}/vendor/phpcq/coding-standard/phpmd/ruleset.xml +phpcs.excluded = src/Resources/contao/languages +phpcpd.excluded = contao diff --git a/build.xml b/build.xml new file mode 100644 index 0000000..97f1c5f --- /dev/null +++ b/build.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..ed48240 --- /dev/null +++ b/composer.json @@ -0,0 +1,43 @@ +{ + "name":"netzmacht/contao-packagist-package", + "description":"Show packagist packe information.", + "keywords":["contao", "packagist", "package"], + "type":"contao-bundle", + "license":"LGPL-3.0+", + "authors":[ + { + "name":"David Molineus", + "email":"mail@netzmacht.de", + "homepage":"https://netzmacht.de", + "role":"Developer" + } + ], + "support":{ + "email":"mail@netzmacht.de", + "issues":"https://github.com/netzmacht/contao-packagist-package/issues", + "source":"https://github.com/netzmacht/contao-packagist-package" + }, + "require":{ + "php":">=7.1", + "contao/core-bundle":"^4.4", + "contao-community-alliance/meta-palettes":"^1.10", + "doctrine/cache": "^1.7" + }, + "require-dev": { + "contao/manager-plugin": "^2.0", + "phpcq/all-tasks": "^1.2" + }, + "conflict": { + "netzmacht/contao-bootstrap": "*" + }, + "autoload": { + "psr-4": { "Netzmacht\\Contao\\PackagistPackage\\": "src/" } + }, + "extra":{ + "branch-alias": { + "dev-master": "1.0.x-dev", + "dev-develop": "1.1.x-dev" + }, + "contao-manager-plugin": "Netzmacht\\Contao\\PackagistPackage\\ContaoManager\\Plugin" + } +} diff --git a/file.json b/file.json new file mode 100644 index 0000000..5f64539 --- /dev/null +++ b/file.json @@ -0,0 +1,1251 @@ +{ + "package": { + "name": "netzmacht\/contao-leaflet-maps", + "description": "Contao Leaflet maps integration", + "time": "2015-01-08T16:32:30+00:00", + "maintainers": [ + { + "name": "netzmacht", + "avatar_url": "https:\/\/www.gravatar.com\/avatar\/6496b5bd7af68c1a4efa3b2c8a495767?d=identicon" + } + ], + "versions": { + "dev-master": { + "name": "netzmacht\/contao-leaflet-maps", + "description": "Contao Leaflet maps integration", + "keywords": [ + "maps", + "leaflet", + "contao" + ], + "homepage": "", + "version": "dev-master", + "version_normalized": "9999999-dev", + "license": [ + "LGPL-3.0+" + ], + "authors": [ + { + "name": "David Molineus", + "email": "mail@netzmacht.de", + "homepage": "http:\/\/www.netzmacht.de", + "role": "Project leader" + } + ], + "source": { + "type": "git", + "url": "https:\/\/github.com\/netzmacht\/contao-leaflet-maps.git", + "reference": "5b7c7d01d833835e94239f21c622616fd85432ad" + }, + "dist": { + "type": "zip", + "url": "https:\/\/api.github.com\/repos\/netzmacht\/contao-leaflet-maps\/zipball\/5b7c7d01d833835e94239f21c622616fd85432ad", + "reference": "5b7c7d01d833835e94239f21c622616fd85432ad", + "shasum": "" + }, + "type": "contao-module", + "time": "2017-07-06T15:10:56+00:00", + "autoload": { + "psr-0": { + "Netzmacht\\Contao\\Leaflet\\": "src\/" + } + }, + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev", + "dev-develop": "2.1.x-dev", + "dev-support\/0.7.x": "0.7.x-dev" + }, + "contao": { + "sources": { + "module": "system\/modules\/leaflet", + "assets\/maps": "assets\/leaflet\/maps", + "assets\/js": "assets\/leaflet\/js" + }, + "transifex": { + "project": "contao-leaflet-maps", + "prefix": "core-", + "languages_cto": "module\/languages", + "languages_tx": ".tx" + } + } + }, + "require": { + "php": "\u003E=5.4", + "contao\/core": "^3.5", + "contao-community-alliance\/dependency-container": "^1.0", + "contao-community-alliance\/event-dispatcher": "^1.0", + "netzmacht\/contao-leaflet-libraries": "^1.0", + "netzmacht\/php-javascript-builder": "^1.0", + "netzmacht\/php-leaflet": "^1.0", + "netzmacht\/contao-toolkit": "^2.0", + "contao-community-alliance\/meta-palettes": "^1.5", + "menatwork\/contao-multicolumnwizard": "^3.2", + "doctrine\/cache": "^1.0" + }, + "require-dev": { + "netzmacht\/contao-build-tools": "^1.1" + } + }, + "dev-develop": { + "name": "netzmacht\/contao-leaflet-maps", + "description": "Contao Leaflet maps integration", + "keywords": [ + "maps", + "leaflet", + "contao" + ], + "homepage": "", + "version": "dev-develop", + "version_normalized": "dev-develop", + "license": [ + "LGPL-3.0+" + ], + "authors": [ + { + "name": "David Molineus", + "email": "mail@netzmacht.de", + "homepage": "http:\/\/www.netzmacht.de", + "role": "Project leader" + } + ], + "source": { + "type": "git", + "url": "https:\/\/github.com\/netzmacht\/contao-leaflet-maps.git", + "reference": "9f950b0f31b0cb66a714738e35c6f4027d63f86e" + }, + "dist": { + "type": "zip", + "url": "https:\/\/api.github.com\/repos\/netzmacht\/contao-leaflet-maps\/zipball\/9f950b0f31b0cb66a714738e35c6f4027d63f86e", + "reference": "9f950b0f31b0cb66a714738e35c6f4027d63f86e", + "shasum": "" + }, + "type": "contao-module", + "time": "2016-11-14T12:45:30+00:00", + "autoload": { + "psr-0": { + "Netzmacht\\Contao\\Leaflet\\": "src\/" + } + }, + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev", + "dev-develop": "2.1.x-dev", + "dev-support\/0.7.x": "0.7.x-dev" + }, + "contao": { + "sources": { + "module": "system\/modules\/leaflet", + "assets\/maps": "assets\/leaflet\/maps", + "assets\/js": "assets\/leaflet\/js" + }, + "transifex": { + "project": "contao-leaflet-maps", + "prefix": "core-", + "languages_cto": "module\/languages", + "languages_tx": ".tx" + } + } + }, + "require": { + "php": "\u003E=5.4", + "contao\/core": "^3.5", + "contao-community-alliance\/dependency-container": "^1.0", + "contao-community-alliance\/event-dispatcher": "^1.0", + "netzmacht\/contao-leaflet-libraries": "^1.0", + "netzmacht\/php-javascript-builder": "^1.0", + "netzmacht\/php-leaflet": "^1.0", + "netzmacht\/contao-toolkit": "^2.0", + "contao-community-alliance\/meta-palettes": "^1.5", + "menatwork\/contao-multicolumnwizard": "^3.2", + "doctrine\/cache": "^1.0" + }, + "require-dev": { + "netzmacht\/contao-build-tools": "^1.1" + } + }, + "dev-feature\/overpass-api": { + "name": "netzmacht\/contao-leaflet-maps", + "description": "Contao Leaflet maps integration", + "keywords": [ + "maps", + "leaflet", + "contao" + ], + "homepage": "", + "version": "dev-feature\/overpass-api", + "version_normalized": "dev-feature\/overpass-api", + "license": [ + "LGPL-3.0+" + ], + "authors": [ + { + "name": "David Molineus", + "email": "mail@netzmacht.de", + "homepage": "http:\/\/www.netzmacht.de", + "role": "Project leader" + } + ], + "source": { + "type": "git", + "url": "https:\/\/github.com\/netzmacht\/contao-leaflet-maps.git", + "reference": "74f500513ac39d3d131b8d3696d8d283ceb12ed3" + }, + "dist": { + "type": "zip", + "url": "https:\/\/api.github.com\/repos\/netzmacht\/contao-leaflet-maps\/zipball\/74f500513ac39d3d131b8d3696d8d283ceb12ed3", + "reference": "74f500513ac39d3d131b8d3696d8d283ceb12ed3", + "shasum": "" + }, + "type": "contao-module", + "time": "2016-11-09T11:00:57+00:00", + "autoload": { + "psr-0": { + "Netzmacht\\Contao\\Leaflet\\": "src\/" + } + }, + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev", + "dev-develop": "2.1.x-dev", + "dev-support\/0.7.x": "0.7.x-dev" + }, + "contao": { + "sources": { + "module": "system\/modules\/leaflet", + "assets\/maps": "assets\/leaflet\/maps", + "assets\/js": "assets\/leaflet\/js" + }, + "transifex": { + "project": "contao-leaflet-maps", + "prefix": "core-", + "languages_cto": "module\/languages", + "languages_tx": ".tx" + } + } + }, + "require": { + "php": "\u003E=5.4", + "contao\/core": "^3.5", + "contao-community-alliance\/dependency-container": "^1.0", + "contao-community-alliance\/event-dispatcher": "^1.0", + "netzmacht\/contao-leaflet-libraries": "^1.0", + "netzmacht\/php-javascript-builder": "^1.0", + "netzmacht\/php-leaflet": "^1.0", + "netzmacht\/contao-toolkit": "^2.0", + "contao-community-alliance\/meta-palettes": "^1.5", + "menatwork\/contao-multicolumnwizard": "^3.2", + "doctrine\/cache": "^1.0" + }, + "require-dev": { + "netzmacht\/contao-build-tools": "^1.1" + } + }, + "dev-support\/0.7.x": { + "name": "netzmacht\/contao-leaflet-maps", + "description": "Contao Leaflet maps integration", + "keywords": [ + "maps", + "leaflet", + "contao" + ], + "homepage": "", + "version": "dev-support\/0.7.x", + "version_normalized": "dev-support\/0.7.x", + "license": [ + "LGPL-3.0+" + ], + "authors": [ + { + "name": "David Molineus", + "email": "mail@netzmacht.de", + "homepage": "http:\/\/www.netzmacht.de", + "role": "Project leader" + } + ], + "source": { + "type": "git", + "url": "https:\/\/github.com\/netzmacht\/contao-leaflet-maps.git", + "reference": "d394d36aff6c93d7268f92d1d8d232602545a6fb" + }, + "dist": { + "type": "zip", + "url": "https:\/\/api.github.com\/repos\/netzmacht\/contao-leaflet-maps\/zipball\/d394d36aff6c93d7268f92d1d8d232602545a6fb", + "reference": "d394d36aff6c93d7268f92d1d8d232602545a6fb", + "shasum": "" + }, + "type": "contao-module", + "time": "2016-10-06T13:53:19+00:00", + "autoload": { + "psr-0": { + "Netzmacht\\Contao\\Leaflet": "src\/" + } + }, + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev", + "dev-develop": "2.1.x-dev", + "dev-support\/0.7.x": "0.7.x-dev" + }, + "contao": { + "sources": { + "module": "system\/modules\/leaflet", + "assets\/maps": "assets\/leaflet\/maps", + "assets\/js": "assets\/leaflet\/js" + }, + "transifex": { + "project": "contao-leaflet-maps", + "prefix": "core-", + "languages_cto": "module\/languages", + "languages_tx": ".tx" + } + } + }, + "require": { + "php": "\u003E=5.4", + "contao\/core": "\u003E=3.2,\u003C3.6-dev", + "contao-community-alliance\/dependency-container": "~1.0", + "contao-community-alliance\/event-dispatcher": "~1.0", + "netzmacht\/contao-leaflet-libraries": "~0.7", + "netzmacht\/php-javascript-builder": "~1.0", + "netzmacht\/php-leaflet": "~0.7", + "netzmacht\/contao-toolkit": "~1.0", + "contao-community-alliance\/meta-palettes": "~1.5", + "menatwork\/contao-multicolumnwizard": "~3.2", + "doctrine\/cache": "~1.0" + }, + "require-dev": { + "netzmacht\/contao-build-tools": "~1.1" + } + }, + "2.0.0-beta5": { + "name": "netzmacht\/contao-leaflet-maps", + "description": "Contao Leaflet maps integration", + "keywords": [ + "maps", + "leaflet", + "contao" + ], + "homepage": "", + "version": "2.0.0-beta5", + "version_normalized": "2.0.0.0-beta5", + "license": [ + "LGPL-3.0+" + ], + "authors": [ + { + "name": "David Molineus", + "email": "mail@netzmacht.de", + "homepage": "http:\/\/www.netzmacht.de", + "role": "Project leader" + } + ], + "source": { + "type": "git", + "url": "https:\/\/github.com\/netzmacht\/contao-leaflet-maps.git", + "reference": "5b7c7d01d833835e94239f21c622616fd85432ad" + }, + "dist": { + "type": "zip", + "url": "https:\/\/api.github.com\/repos\/netzmacht\/contao-leaflet-maps\/zipball\/5b7c7d01d833835e94239f21c622616fd85432ad", + "reference": "5b7c7d01d833835e94239f21c622616fd85432ad", + "shasum": "" + }, + "type": "contao-module", + "time": "2017-07-06T15:10:56+00:00", + "autoload": { + "psr-0": { + "Netzmacht\\Contao\\Leaflet\\": "src\/" + } + }, + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev", + "dev-develop": "2.1.x-dev", + "dev-support\/0.7.x": "0.7.x-dev" + }, + "contao": { + "sources": { + "module": "system\/modules\/leaflet", + "assets\/maps": "assets\/leaflet\/maps", + "assets\/js": "assets\/leaflet\/js" + }, + "transifex": { + "project": "contao-leaflet-maps", + "prefix": "core-", + "languages_cto": "module\/languages", + "languages_tx": ".tx" + } + } + }, + "require": { + "php": "\u003E=5.4", + "contao\/core": "^3.5", + "contao-community-alliance\/dependency-container": "^1.0", + "contao-community-alliance\/event-dispatcher": "^1.0", + "netzmacht\/contao-leaflet-libraries": "^1.0", + "netzmacht\/php-javascript-builder": "^1.0", + "netzmacht\/php-leaflet": "^1.0", + "netzmacht\/contao-toolkit": "^2.0", + "contao-community-alliance\/meta-palettes": "^1.5", + "menatwork\/contao-multicolumnwizard": "^3.2", + "doctrine\/cache": "^1.0" + }, + "require-dev": { + "netzmacht\/contao-build-tools": "^1.1" + } + }, + "2.0.0-beta4": { + "name": "netzmacht\/contao-leaflet-maps", + "description": "Contao Leaflet maps integration", + "keywords": [ + "maps", + "leaflet", + "contao" + ], + "homepage": "", + "version": "2.0.0-beta4", + "version_normalized": "2.0.0.0-beta4", + "license": [ + "LGPL-3.0+" + ], + "authors": [ + { + "name": "David Molineus", + "email": "mail@netzmacht.de", + "homepage": "http:\/\/www.netzmacht.de", + "role": "Project leader" + } + ], + "source": { + "type": "git", + "url": "https:\/\/github.com\/netzmacht\/contao-leaflet-maps.git", + "reference": "722e17b29c9cef8c0b5493f52a4fe49aed712abb" + }, + "dist": { + "type": "zip", + "url": "https:\/\/api.github.com\/repos\/netzmacht\/contao-leaflet-maps\/zipball\/722e17b29c9cef8c0b5493f52a4fe49aed712abb", + "reference": "722e17b29c9cef8c0b5493f52a4fe49aed712abb", + "shasum": "" + }, + "type": "contao-module", + "time": "2017-05-04T12:31:31+00:00", + "autoload": { + "psr-0": { + "Netzmacht\\Contao\\Leaflet\\": "src\/" + } + }, + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev", + "dev-develop": "2.1.x-dev", + "dev-support\/0.7.x": "0.7.x-dev" + }, + "contao": { + "sources": { + "module": "system\/modules\/leaflet", + "assets\/maps": "assets\/leaflet\/maps", + "assets\/js": "assets\/leaflet\/js" + }, + "transifex": { + "project": "contao-leaflet-maps", + "prefix": "core-", + "languages_cto": "module\/languages", + "languages_tx": ".tx" + } + } + }, + "require": { + "php": "\u003E=5.4", + "contao\/core": "^3.5", + "contao-community-alliance\/dependency-container": "^1.0", + "contao-community-alliance\/event-dispatcher": "^1.0", + "netzmacht\/contao-leaflet-libraries": "^1.0", + "netzmacht\/php-javascript-builder": "^1.0", + "netzmacht\/php-leaflet": "^1.0", + "netzmacht\/contao-toolkit": "^2.0", + "contao-community-alliance\/meta-palettes": "^1.5", + "menatwork\/contao-multicolumnwizard": "^3.2", + "doctrine\/cache": "^1.0" + }, + "require-dev": { + "netzmacht\/contao-build-tools": "^1.1" + } + }, + "2.0.0-beta3": { + "name": "netzmacht\/contao-leaflet-maps", + "description": "Contao Leaflet maps integration", + "keywords": [ + "maps", + "leaflet", + "contao" + ], + "homepage": "", + "version": "2.0.0-beta3", + "version_normalized": "2.0.0.0-beta3", + "license": [ + "LGPL-3.0+" + ], + "authors": [ + { + "name": "David Molineus", + "email": "mail@netzmacht.de", + "homepage": "http:\/\/www.netzmacht.de", + "role": "Project leader" + } + ], + "source": { + "type": "git", + "url": "https:\/\/github.com\/netzmacht\/contao-leaflet-maps.git", + "reference": "8920be6649451f3507fc32c43d628dde757a2bbf" + }, + "dist": { + "type": "zip", + "url": "https:\/\/api.github.com\/repos\/netzmacht\/contao-leaflet-maps\/zipball\/8920be6649451f3507fc32c43d628dde757a2bbf", + "reference": "8920be6649451f3507fc32c43d628dde757a2bbf", + "shasum": "" + }, + "type": "contao-module", + "time": "2017-03-20T09:56:40+00:00", + "autoload": { + "psr-0": { + "Netzmacht\\Contao\\Leaflet\\": "src\/" + } + }, + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev", + "dev-develop": "2.1.x-dev", + "dev-support\/0.7.x": "0.7.x-dev" + }, + "contao": { + "sources": { + "module": "system\/modules\/leaflet", + "assets\/maps": "assets\/leaflet\/maps", + "assets\/js": "assets\/leaflet\/js" + }, + "transifex": { + "project": "contao-leaflet-maps", + "prefix": "core-", + "languages_cto": "module\/languages", + "languages_tx": ".tx" + } + } + }, + "require": { + "php": "\u003E=5.4", + "contao\/core": "^3.5", + "contao-community-alliance\/dependency-container": "^1.0", + "contao-community-alliance\/event-dispatcher": "^1.0", + "netzmacht\/contao-leaflet-libraries": "^1.0", + "netzmacht\/php-javascript-builder": "^1.0", + "netzmacht\/php-leaflet": "^1.0", + "netzmacht\/contao-toolkit": "^2.0", + "contao-community-alliance\/meta-palettes": "^1.5", + "menatwork\/contao-multicolumnwizard": "^3.2", + "doctrine\/cache": "^1.0" + }, + "require-dev": { + "netzmacht\/contao-build-tools": "^1.1" + } + }, + "2.0.0-beta2": { + "name": "netzmacht\/contao-leaflet-maps", + "description": "Contao Leaflet maps integration", + "keywords": [ + "maps", + "leaflet", + "contao" + ], + "homepage": "", + "version": "2.0.0-beta2", + "version_normalized": "2.0.0.0-beta2", + "license": [ + "LGPL-3.0+" + ], + "authors": [ + { + "name": "David Molineus", + "email": "mail@netzmacht.de", + "homepage": "http:\/\/www.netzmacht.de", + "role": "Project leader" + } + ], + "source": { + "type": "git", + "url": "https:\/\/github.com\/netzmacht\/contao-leaflet-maps.git", + "reference": "9f950b0f31b0cb66a714738e35c6f4027d63f86e" + }, + "dist": { + "type": "zip", + "url": "https:\/\/api.github.com\/repos\/netzmacht\/contao-leaflet-maps\/zipball\/9f950b0f31b0cb66a714738e35c6f4027d63f86e", + "reference": "9f950b0f31b0cb66a714738e35c6f4027d63f86e", + "shasum": "" + }, + "type": "contao-module", + "time": "2016-11-14T12:45:30+00:00", + "autoload": { + "psr-0": { + "Netzmacht\\Contao\\Leaflet\\": "src\/" + } + }, + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev", + "dev-develop": "2.1.x-dev", + "dev-support\/0.7.x": "0.7.x-dev" + }, + "contao": { + "sources": { + "module": "system\/modules\/leaflet", + "assets\/maps": "assets\/leaflet\/maps", + "assets\/js": "assets\/leaflet\/js" + }, + "transifex": { + "project": "contao-leaflet-maps", + "prefix": "core-", + "languages_cto": "module\/languages", + "languages_tx": ".tx" + } + } + }, + "require": { + "php": "\u003E=5.4", + "contao\/core": "^3.5", + "contao-community-alliance\/dependency-container": "^1.0", + "contao-community-alliance\/event-dispatcher": "^1.0", + "netzmacht\/contao-leaflet-libraries": "^1.0", + "netzmacht\/php-javascript-builder": "^1.0", + "netzmacht\/php-leaflet": "^1.0", + "netzmacht\/contao-toolkit": "^2.0", + "contao-community-alliance\/meta-palettes": "^1.5", + "menatwork\/contao-multicolumnwizard": "^3.2", + "doctrine\/cache": "^1.0" + }, + "require-dev": { + "netzmacht\/contao-build-tools": "^1.1" + } + }, + "2.0.0-beta1": { + "name": "netzmacht\/contao-leaflet-maps", + "description": "Contao Leaflet maps integration", + "keywords": [ + "maps", + "leaflet", + "contao" + ], + "homepage": "", + "version": "2.0.0-beta1", + "version_normalized": "2.0.0.0-beta1", + "license": [ + "LGPL-3.0+" + ], + "authors": [ + { + "name": "David Molineus", + "email": "mail@netzmacht.de", + "homepage": "http:\/\/www.netzmacht.de", + "role": "Project leader" + } + ], + "source": { + "type": "git", + "url": "https:\/\/github.com\/netzmacht\/contao-leaflet-maps.git", + "reference": "1eba70b5b45f93a541919296df54849574d421ed" + }, + "dist": { + "type": "zip", + "url": "https:\/\/api.github.com\/repos\/netzmacht\/contao-leaflet-maps\/zipball\/1eba70b5b45f93a541919296df54849574d421ed", + "reference": "1eba70b5b45f93a541919296df54849574d421ed", + "shasum": "" + }, + "type": "contao-module", + "time": "2016-10-06T13:53:55+00:00", + "autoload": { + "psr-0": { + "Netzmacht\\Contao\\Leaflet\\": "src\/" + } + }, + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev", + "dev-develop": "2.1.x-dev", + "dev-support\/0.7.x": "0.7.x-dev" + }, + "contao": { + "sources": { + "module": "system\/modules\/leaflet", + "assets\/maps": "assets\/leaflet\/maps", + "assets\/js": "assets\/leaflet\/js" + }, + "transifex": { + "project": "contao-leaflet-maps", + "prefix": "core-", + "languages_cto": "module\/languages", + "languages_tx": ".tx" + } + } + }, + "require": { + "php": "\u003E=5.4", + "contao\/core": "^3.5", + "contao-community-alliance\/dependency-container": "^1.0", + "contao-community-alliance\/event-dispatcher": "^1.0", + "netzmacht\/contao-leaflet-libraries": "^1.0", + "netzmacht\/php-javascript-builder": "^1.0", + "netzmacht\/php-leaflet": "^1.0", + "netzmacht\/contao-toolkit": "^2.0", + "contao-community-alliance\/meta-palettes": "^1.5", + "menatwork\/contao-multicolumnwizard": "^3.2", + "doctrine\/cache": "^1.0" + }, + "require-dev": { + "netzmacht\/contao-build-tools": "^1.1" + } + }, + "1.0.0-beta6": { + "name": "netzmacht\/contao-leaflet-maps", + "description": "Contao Leaflet maps integration", + "keywords": [ + "maps", + "leaflet", + "contao" + ], + "homepage": "", + "version": "1.0.0-beta6", + "version_normalized": "1.0.0.0-beta6", + "license": [ + "LGPL-3.0+" + ], + "authors": [ + { + "name": "David Molineus", + "email": "mail@netzmacht.de", + "homepage": "http:\/\/www.netzmacht.de", + "role": "Project leader" + } + ], + "source": { + "type": "git", + "url": "https:\/\/github.com\/netzmacht\/contao-leaflet-maps.git", + "reference": "733f49ca247a70eeb1cb2aae0820e38499c4bf03" + }, + "dist": { + "type": "zip", + "url": "https:\/\/api.github.com\/repos\/netzmacht\/contao-leaflet-maps\/zipball\/733f49ca247a70eeb1cb2aae0820e38499c4bf03", + "reference": "733f49ca247a70eeb1cb2aae0820e38499c4bf03", + "shasum": "" + }, + "type": "contao-module", + "time": "2016-10-04T12:19:46+00:00", + "autoload": { + "psr-0": { + "Netzmacht\\Contao\\Leaflet": "src\/" + } + }, + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + }, + "contao": { + "sources": { + "module": "system\/modules\/leaflet", + "assets\/maps": "assets\/leaflet\/maps", + "assets\/js": "assets\/leaflet\/js" + }, + "transifex": { + "project": "contao-leaflet-maps", + "prefix": "core-", + "languages_cto": "module\/languages", + "languages_tx": ".tx" + } + } + }, + "require": { + "php": "\u003E=5.4", + "contao\/core": "\u003E=3.2,\u003C3.6-dev", + "contao-community-alliance\/dependency-container": "~1.0", + "contao-community-alliance\/event-dispatcher": "~1.0", + "netzmacht\/contao-leaflet-libraries": "~0.7", + "netzmacht\/php-javascript-builder": "~1.0", + "netzmacht\/php-leaflet": "~0.7", + "netzmacht\/contao-toolkit": "~1.0", + "contao-community-alliance\/meta-palettes": "~1.5", + "menatwork\/contao-multicolumnwizard": "~3.2", + "doctrine\/cache": "~1.0" + }, + "require-dev": { + "netzmacht\/contao-build-tools": "~1.1" + } + }, + "1.0.0-beta5": { + "name": "netzmacht\/contao-leaflet-maps", + "description": "Contao Leaflet maps integration", + "keywords": [ + "maps", + "leaflet", + "contao" + ], + "homepage": "", + "version": "1.0.0-beta5", + "version_normalized": "1.0.0.0-beta5", + "license": [ + "LGPL-3.0+" + ], + "authors": [ + { + "name": "David Molineus", + "email": "mail@netzmacht.de", + "homepage": "http:\/\/www.netzmacht.de", + "role": "Project leader" + } + ], + "source": { + "type": "git", + "url": "https:\/\/github.com\/netzmacht\/contao-leaflet-maps.git", + "reference": "381d330cabbbc62748ef09d53c85731304cb3c73" + }, + "dist": { + "type": "zip", + "url": "https:\/\/api.github.com\/repos\/netzmacht\/contao-leaflet-maps\/zipball\/381d330cabbbc62748ef09d53c85731304cb3c73", + "reference": "381d330cabbbc62748ef09d53c85731304cb3c73", + "shasum": "" + }, + "type": "contao-module", + "time": "2016-01-11T17:37:50+00:00", + "autoload": { + "psr-0": { + "Netzmacht\\Contao\\Leaflet": "src\/" + } + }, + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + }, + "contao": { + "sources": { + "module": "system\/modules\/leaflet", + "assets\/maps": "assets\/leaflet\/maps", + "assets\/js": "assets\/leaflet\/js" + }, + "transifex": { + "project": "contao-leaflet-maps", + "prefix": "core-", + "languages_cto": "module\/languages", + "languages_tx": ".tx" + } + } + }, + "require": { + "php": "\u003E=5.4", + "contao\/core": "\u003E=3.2,\u003C3.6-dev", + "contao-community-alliance\/dependency-container": "~1.0", + "contao-community-alliance\/event-dispatcher": "~1.0", + "netzmacht\/contao-leaflet-libraries": "~0.7", + "netzmacht\/php-javascript-builder": "~1.0", + "netzmacht\/php-leaflet": "~0.7", + "netzmacht\/contao-toolkit": "~1.0", + "contao-community-alliance\/meta-palettes": "~1.5", + "menatwork\/contao-multicolumnwizard": "~3.2", + "doctrine\/cache": "~1.0" + }, + "require-dev": { + "netzmacht\/contao-build-tools": "~1.1" + } + }, + "1.0.0-beta4": { + "name": "netzmacht\/contao-leaflet-maps", + "description": "Contao Leaflet maps integration", + "keywords": [ + "maps", + "leaflet", + "contao" + ], + "homepage": "", + "version": "1.0.0-beta4", + "version_normalized": "1.0.0.0-beta4", + "license": [ + "LGPL-3.0+" + ], + "authors": [ + { + "name": "David Molineus", + "email": "mail@netzmacht.de", + "homepage": "http:\/\/www.netzmacht.de", + "role": "Project leader" + } + ], + "source": { + "type": "git", + "url": "https:\/\/github.com\/netzmacht\/contao-leaflet-maps.git", + "reference": "5171825a231851c6f0d20a91823851b1d75d1f11" + }, + "dist": { + "type": "zip", + "url": "https:\/\/api.github.com\/repos\/netzmacht\/contao-leaflet-maps\/zipball\/5171825a231851c6f0d20a91823851b1d75d1f11", + "reference": "5171825a231851c6f0d20a91823851b1d75d1f11", + "shasum": "" + }, + "type": "contao-module", + "time": "2015-09-14T05:23:42+00:00", + "autoload": { + "psr-0": { + "Netzmacht\\Contao\\Leaflet": "src\/" + } + }, + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + }, + "contao": { + "sources": { + "module": "system\/modules\/leaflet", + "assets\/maps": "assets\/leaflet\/maps", + "assets\/js": "assets\/leaflet\/js" + }, + "transifex": { + "project": "contao-leaflet-maps", + "prefix": "core-", + "languages_cto": "module\/languages", + "languages_tx": ".tx" + } + } + }, + "require": { + "php": "\u003E=5.4", + "contao\/core": "\u003E=3.2,\u003C3.6-dev", + "contao-community-alliance\/dependency-container": "~1.0", + "contao-community-alliance\/event-dispatcher": "~1.0", + "netzmacht\/contao-leaflet-libraries": "~0.7", + "netzmacht\/php-javascript-builder": "~1.0", + "netzmacht\/php-leaflet": "~0.7", + "netzmacht\/contao-toolkit": "~1.0", + "contao-community-alliance\/meta-palettes": "~1.5", + "menatwork\/contao-multicolumnwizard": "~3.2", + "doctrine\/cache": "~1.0" + }, + "require-dev": { + "netzmacht\/contao-build-tools": "~1.1" + } + }, + "1.0.0-beta3": { + "name": "netzmacht\/contao-leaflet-maps", + "description": "Contao Leaflet maps integration", + "keywords": [ + "maps", + "leaflet", + "contao" + ], + "homepage": "", + "version": "1.0.0-beta3", + "version_normalized": "1.0.0.0-beta3", + "license": [ + "LGPL-3.0+" + ], + "authors": [ + { + "name": "David Molineus", + "email": "mail@netzmacht.de", + "homepage": "http:\/\/www.netzmacht.de", + "role": "Project leader" + } + ], + "source": { + "type": "git", + "url": "https:\/\/github.com\/netzmacht\/contao-leaflet-maps.git", + "reference": "ff8cda13716475fbb283e3c5c365f8f171bd25c2" + }, + "dist": { + "type": "zip", + "url": "https:\/\/api.github.com\/repos\/netzmacht\/contao-leaflet-maps\/zipball\/ff8cda13716475fbb283e3c5c365f8f171bd25c2", + "reference": "ff8cda13716475fbb283e3c5c365f8f171bd25c2", + "shasum": "" + }, + "type": "contao-module", + "time": "2015-06-16T06:33:04+00:00", + "autoload": { + "psr-0": { + "Netzmacht\\Contao\\Leaflet": "src\/" + } + }, + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + }, + "contao": { + "sources": { + "module": "system\/modules\/leaflet", + "assets\/maps": "assets\/leaflet\/maps", + "assets\/js": "assets\/leaflet\/js" + }, + "transifex": { + "project": "contao-leaflet-maps", + "prefix": "core-", + "languages_cto": "module\/languages", + "languages_tx": ".tx" + } + } + }, + "require": { + "php": "\u003E=5.4", + "contao\/core": "\u003E=3.2,\u003C3.6-dev", + "contao-community-alliance\/dependency-container": "~1.0", + "contao-community-alliance\/event-dispatcher": "~1.0", + "netzmacht\/contao-leaflet-libraries": "~0.7", + "netzmacht\/php-javascript-builder": "~1.0", + "netzmacht\/php-leaflet": "~0.7", + "netzmacht\/contao-toolkit": "~1.0", + "contao-community-alliance\/meta-palettes": "~1.5", + "menatwork\/contao-multicolumnwizard": "~3.2", + "doctrine\/cache": "~1.0" + }, + "require-dev": { + "netzmacht\/contao-build-tools": "~1.1" + } + }, + "1.0.0-beta2": { + "name": "netzmacht\/contao-leaflet-maps", + "description": "Contao Leaflet maps integration", + "keywords": [ + "maps", + "leaflet", + "contao" + ], + "homepage": "", + "version": "1.0.0-beta2", + "version_normalized": "1.0.0.0-beta2", + "license": [ + "LGPL-3.0+" + ], + "authors": [ + { + "name": "David Molineus", + "email": "mail@netzmacht.de", + "homepage": "http:\/\/www.netzmacht.de", + "role": "Project leader" + } + ], + "source": { + "type": "git", + "url": "https:\/\/github.com\/netzmacht\/contao-leaflet-maps.git", + "reference": "c3d5f4708681fb8b86d4ad889ca340fc97de55a0" + }, + "dist": { + "type": "zip", + "url": "https:\/\/api.github.com\/repos\/netzmacht\/contao-leaflet-maps\/zipball\/c3d5f4708681fb8b86d4ad889ca340fc97de55a0", + "reference": "c3d5f4708681fb8b86d4ad889ca340fc97de55a0", + "shasum": "" + }, + "type": "contao-module", + "time": "2015-02-02T07:53:29+00:00", + "autoload": { + "psr-0": { + "Netzmacht\\Contao\\Leaflet": "src\/" + } + }, + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + }, + "contao": { + "sources": { + "module": "system\/modules\/leaflet", + "assets\/maps": "assets\/leaflet\/maps", + "assets\/js": "assets\/leaflet\/js" + }, + "transifex": { + "project": "contao-leaflet-maps", + "prefix": "core-", + "languages_cto": "module\/languages", + "languages_tx": ".tx" + } + } + }, + "require": { + "php": "\u003E=5.4", + "contao\/core": "\u003E=3.2,\u003C3.5-dev", + "contao-community-alliance\/dependency-container": "~1.0", + "contao-community-alliance\/event-dispatcher": "~1.0", + "netzmacht\/contao-leaflet-libraries": "~0.7", + "netzmacht\/php-javascript-builder": "~1.0", + "netzmacht\/php-leaflet": "~0.7", + "netzmacht\/contao-toolkit": "~1.0", + "bit3\/contao-meta-palettes": "~1.5", + "menatwork\/contao-multicolumnwizard": "~3.2", + "doctrine\/cache": "~1.0" + }, + "require-dev": { + "netzmacht\/contao-build-tools": "~1.1" + } + }, + "1.0.0-beta1": { + "name": "netzmacht\/contao-leaflet-maps", + "description": "Contao Leaflet maps integration", + "keywords": [ + "maps", + "leaflet", + "contao" + ], + "homepage": "", + "version": "1.0.0-beta1", + "version_normalized": "1.0.0.0-beta1", + "license": [ + "LGPL-3.0+" + ], + "authors": [ + { + "name": "David Molineus", + "email": "mail@netzmacht.de", + "homepage": "http:\/\/www.netzmacht.de", + "role": "Project leader" + } + ], + "source": { + "type": "git", + "url": "https:\/\/github.com\/netzmacht\/contao-leaflet-maps.git", + "reference": "a59decd946c54f6e1b73372b221db8fcde0eb974" + }, + "dist": { + "type": "zip", + "url": "https:\/\/api.github.com\/repos\/netzmacht\/contao-leaflet-maps\/zipball\/a59decd946c54f6e1b73372b221db8fcde0eb974", + "reference": "a59decd946c54f6e1b73372b221db8fcde0eb974", + "shasum": "" + }, + "type": "contao-module", + "time": "2015-01-27T18:10:14+00:00", + "autoload": { + "psr-0": { + "Netzmacht\\Contao\\Leaflet": "src\/" + } + }, + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + }, + "contao": { + "sources": { + "module": "system\/modules\/leaflet", + "assets\/maps": "assets\/leaflet\/maps", + "assets\/js": "assets\/leaflet\/js" + }, + "transifex": { + "project": "contao-leaflet-maps", + "prefix": "core-", + "languages_cto": "module\/languages", + "languages_tx": ".tx" + }, + "runonce": [ + "runonce\/migrate.php" + ] + } + }, + "require": { + "php": "\u003E=5.4", + "contao\/core": "\u003E=3.2,\u003C3.5-dev", + "contao-community-alliance\/dependency-container": "~1.0", + "contao-community-alliance\/event-dispatcher": "~1.0", + "netzmacht\/contao-leaflet-libraries": "~0.7", + "netzmacht\/php-javascript-builder": "~1.0", + "netzmacht\/php-leaflet": "~0.7", + "netzmacht\/contao-dev-tools": "~1.0", + "bit3\/contao-meta-palettes": "~1.5", + "menatwork\/contao-multicolumnwizard": "~3.2", + "doctrine\/cache": "~1.0" + }, + "require-dev": { + "netzmacht\/contao-build-tools": "~1.1" + } + }, + "1.0.0-alpha1": { + "name": "netzmacht\/contao-leaflet-maps", + "description": "Contao Leaflet maps integration", + "keywords": [ + "maps", + "leaflet", + "contao" + ], + "homepage": "", + "version": "1.0.0-alpha1", + "version_normalized": "1.0.0.0-alpha1", + "license": [ + "LGPL-3.0+" + ], + "authors": [ + { + "name": "David Molineus", + "email": "mail@netzmacht.de", + "homepage": "http:\/\/www.netzmacht.de", + "role": "Project leader" + } + ], + "source": { + "type": "git", + "url": "https:\/\/github.com\/netzmacht\/contao-leaflet-maps.git", + "reference": "41eb0f7834fd2c1515e0d21344686e614a18971e" + }, + "dist": { + "type": "zip", + "url": "https:\/\/api.github.com\/repos\/netzmacht\/contao-leaflet-maps\/zipball\/41eb0f7834fd2c1515e0d21344686e614a18971e", + "reference": "41eb0f7834fd2c1515e0d21344686e614a18971e", + "shasum": "" + }, + "type": "contao-module", + "time": "2015-01-19T13:46:44+00:00", + "autoload": { + "psr-0": { + "Netzmacht\\Contao\\Leaflet": "src\/" + } + }, + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + }, + "contao": { + "sources": { + "module": "system\/modules\/leaflet", + "assets\/maps": "assets\/leaflet\/maps", + "assets\/js": "assets\/leaflet\/js" + }, + "transifex": { + "project": "contao-leaflet-maps", + "prefix": "core-", + "languages_cto": "module\/languages", + "languages_tx": ".tx" + } + } + }, + "require": { + "php": "\u003E=5.4", + "contao\/core": "\u003E=3.2,\u003C3.5-dev", + "contao-community-alliance\/dependency-container": "~1.0", + "contao-community-alliance\/event-dispatcher": "~1.0", + "netzmacht\/contao-leaflet-libraries": "~0.7", + "netzmacht\/php-javascript-builder": "~1.0", + "netzmacht\/php-leaflet": "~0.7", + "netzmacht\/contao-dev-tools": "~1.0", + "bit3\/contao-meta-palettes": "~1.5", + "menatwork\/contao-multicolumnwizard": "~3.2", + "doctrine\/cache": "~1.0" + }, + "require-dev": { + "netzmacht\/contao-build-tools": "1.0.x-dev" + } + } + }, + "type": "contao-module", + "repository": "https:\/\/github.com\/netzmacht\/contao-leaflet-maps", + "github_stars": 4, + "github_watchers": 1, + "github_forks": 1, + "github_open_issues": 10, + "language": "PHP", + "dependents": 1, + "suggesters": 2, + "downloads": { + "total": 398, + "monthly": 4, + "daily": 0 + }, + "favers": 4 + } +} diff --git a/src/ContaoManager/Plugin.php b/src/ContaoManager/Plugin.php new file mode 100644 index 0000000..9f03e42 --- /dev/null +++ b/src/ContaoManager/Plugin.php @@ -0,0 +1,38 @@ + + * @copyright 2017 netzmacht David Molineus. All rights reserved. + * @license LGPL 3.0 + * @filesource + */ + +declare(strict_types=1); + +namespace Netzmacht\Contao\PackagistPackage\ContaoManager; + +use Contao\CoreBundle\ContaoCoreBundle; +use Contao\ManagerPlugin\Bundle\BundlePluginInterface; +use Contao\ManagerPlugin\Bundle\Config\BundleConfig; +use Contao\ManagerPlugin\Bundle\Parser\ParserInterface; +use Netzmacht\Contao\PackagistPackage\NetzmachtContaoPackagistPackageBundle; + +/** + * Contao Manager Plugin. + */ +class Plugin implements BundlePluginInterface +{ + /** + * {@inheritdoc} + */ + public function getBundles(ParserInterface $parser) + { + return [ + BundleConfig::create(NetzmachtContaoPackagistPackageBundle::class) + ->setLoadAfter([ContaoCoreBundle::class]) + ]; + } +} diff --git a/src/ContentElement/PackageInfoElement.php b/src/ContentElement/PackageInfoElement.php new file mode 100644 index 0000000..4d66697 --- /dev/null +++ b/src/ContentElement/PackageInfoElement.php @@ -0,0 +1,117 @@ + + * @copyright 2017 netzmacht David Molineus. All rights reserved. + * @license LGPL 3.0 + * @filesource + */ + +declare(strict_types=1); + +namespace Netzmacht\Contao\PackagistPackage\ContentElement; + +use Contao\ContentElement; +use Contao\StringUtil; +use Doctrine\Common\Cache\Cache; + +/** + * Package info element. + * + * @property string packagist_package Packagist package. + * @property mixed packagist_fields + */ +class PackageInfoElement extends ContentElement +{ + /** + * Template name. + * + * @var string + */ + protected $strTemplate = 'ce_packagist_package'; + + /** + * {@inheritdoc} + * + * @SuppressWarnings(PHPMD.Superglobals) + */ + protected function compile() + { + $this->Template->package = $this->getPackageInfo(); + $this->Template->fields = StringUtil::deserialize($this->packagist_fields, true); + $this->Template->labels = $GLOBALS['TL_LANG']['packagist']; + } + + /** + * Get the packagist information. + * + * @return array + */ + private function getPackageInfo():? array + { + if (!$this->packagist_package) { + return null; + } + + $cache = $this->getCache(); + + if ($cache->contains($this->packagist_package)) { + return $cache->fetch($this->packagist_package); + } + + $container = $this->getContainer(); + $url = sprintf($container->getParameter('netzmacht.contao_packagist_package.package_json_url')); + $json = file_get_contents(sprintf($url, $this->packagist_package)); + $info = json_decode($json, true); + $info = array_merge( + $info, + $this->getLatestVersion($info['package']['versions']) + ); + + $info['downloads_total'] = $info['downloads']['total'] ?? 0; + + $lifeTime = $container->getParameter('netzmacht.contao_packagist_package.cache.lifetime'); + $cache->save($this->packagist_package, $info['package'], $lifeTime); + + return $info['package']; + } + + /** + * Get the cache. + * + * @return Cache + */ + private function getCache() + { + return $this->getContainer()->get('netzmacht.contao_packagist_package.cache'); + } + + /** + * Get the latest version. + * + * @param array $versions Versions. + * + * @return array + */ + private function getLatestVersion(array $versions): array + { + $latest = []; + + foreach ($versions as $version => $data) { + if (strncmp($version, 'dev-', 4) === 0) { + if (empty($latest)) { + $latest = $data; + } + } elseif (!empty($latest) || strncmp($latest['version'], 'dev-', 4) === 0) { + $latest = $data; + + break; + } + } + + return $latest; + } +} diff --git a/src/DependencyInjection/NetzmachtContaoPackagistPackageExtension.php b/src/DependencyInjection/NetzmachtContaoPackagistPackageExtension.php new file mode 100644 index 0000000..615ccb1 --- /dev/null +++ b/src/DependencyInjection/NetzmachtContaoPackagistPackageExtension.php @@ -0,0 +1,43 @@ + + * @copyright 2017 netzmacht David Molineus. All rights reserved. + * @license LGPL 3.0 + * @filesource + */ + +declare(strict_types=1); + +namespace Netzmacht\Contao\PackagistPackage\DependencyInjection; + +use Symfony\Component\Config\FileLocator; +use Symfony\Component\DependencyInjection\ContainerBuilder; +use Symfony\Component\DependencyInjection\Extension\Extension; +use Symfony\Component\DependencyInjection\Loader\YamlFileLoader; + +/** + * Class NetzmachtContaoFormDesignerExtension. + * + * @package Netzmacht\Contao\FormDesigner\DependencyInjection + */ +class NetzmachtContaoPackagistPackageExtension extends Extension +{ + /** + * {@inheritdoc} + */ + public function load(array $configs, ContainerBuilder $container) + { + $loader = new YamlFileLoader( + $container, + new FileLocator(__DIR__ . '/../Resources/config') + ); + + $loader->load('config.yml'); + $loader->load('listeners.yml'); + $loader->load('services.yml'); + } +} diff --git a/src/Listener/Dca/ContentListener.php b/src/Listener/Dca/ContentListener.php new file mode 100644 index 0000000..6bc7d78 --- /dev/null +++ b/src/Listener/Dca/ContentListener.php @@ -0,0 +1,50 @@ + + * @copyright 2017 netzmacht David Molineus. All rights reserved. + * @license LGPL 3.0 + * @filesource + */ + +declare(strict_types=1); + +namespace Netzmacht\Contao\PackagistPackage\Listener\Dca; + +/** + * Class ContentListener. + * + * @package Netzmacht\Contao\PackagistPackage\Listener\Dca + */ +class ContentListener +{ + /** + * Field options. + * + * @var array + */ + private $fieldOptions; + + /** + * ContentListener constructor. + * + * @param array $fieldOptions Field options. + */ + public function __construct(array $fieldOptions) + { + $this->fieldOptions = $fieldOptions; + } + + /** + * Get the field options. + * + * @return array + */ + public function getFieldOptions(): array + { + return $this->fieldOptions; + } +} diff --git a/src/NetzmachtContaoPackagistPackageBundle.php b/src/NetzmachtContaoPackagistPackageBundle.php new file mode 100644 index 0000000..81b5522 --- /dev/null +++ b/src/NetzmachtContaoPackagistPackageBundle.php @@ -0,0 +1,25 @@ + + * @copyright 2017 netzmacht David Molineus. All rights reserved. + * @license LGPL 3.0 + * @filesource + */ + +declare(strict_types=1); + +namespace Netzmacht\Contao\PackagistPackage; + +use Symfony\Component\HttpKernel\Bundle\Bundle; + +/** + * Bundle class. + */ +class NetzmachtContaoPackagistPackageBundle extends Bundle +{ + +} diff --git a/src/Resouces/config/config.yml b/src/Resouces/config/config.yml new file mode 100644 index 0000000..ab0ea6a --- /dev/null +++ b/src/Resouces/config/config.yml @@ -0,0 +1,13 @@ +parameters: + netzmacht.contao_packagist_package.package_json_url: 'https://packagist.org/packages/%.json' + netzmacht.contao_packagist_package.cache.lifetime: 86400 + + netzmacht.contao_packagist_package.fields: + - name + - description + - version + - type + - favers + - downloads_total + - time + - repository diff --git a/src/Resouces/config/listeners.yml b/src/Resouces/config/listeners.yml new file mode 100644 index 0000000..60d3b16 --- /dev/null +++ b/src/Resouces/config/listeners.yml @@ -0,0 +1,5 @@ +services: + netzmacht.contao_packagist_package.listeners.dca.content: + class: Netzmacht\Contao\PackagistPackage\Listener\Dca\ContentListener + arguments: + - '%netzmacht.contao_packagist_package.fields%' diff --git a/src/Resouces/config/services.yml b/src/Resouces/config/services.yml new file mode 100644 index 0000000..7e4830d --- /dev/null +++ b/src/Resouces/config/services.yml @@ -0,0 +1,5 @@ +services: + netzmacht.contao_packagist_package.cache: + class: Doctrine\Common\Cache\FilesystemCache + arguments: + - '%kernel.cache_dir%/packagist' diff --git a/src/Resouces/contao/config/config.php b/src/Resouces/contao/config/config.php new file mode 100644 index 0000000..f52019b --- /dev/null +++ b/src/Resouces/contao/config/config.php @@ -0,0 +1,15 @@ + + * @copyright 2017 netzmacht David Molineus. All rights reserved. + * @license LGPL 3.0 + * @filesource + */ + +use Netzmacht\Contao\PackagistPackage\ContentElement\PackageInfoElement; + +$GLOBALS['TL_CTE']['packagist']['packagist_package'] = PackageInfoElement::class; diff --git a/src/Resouces/contao/dca/tl_content.php b/src/Resouces/contao/dca/tl_content.php new file mode 100644 index 0000000..49d6bfe --- /dev/null +++ b/src/Resouces/contao/dca/tl_content.php @@ -0,0 +1,55 @@ + + * @copyright 2017 netzmacht David Molineus. All rights reserved. + * @license LGPL 3.0 + * @filesource + */ + +/* + * Palettes + */ + +$GLOBALS['TL_DCA']['tl_content']['metapalettes']['packagist_package'] = [ + 'type' => ['type', 'headline'], + 'config' => ['packagist_package', 'packagist_fields'], + 'template' => [':hide', 'customTpl'], + 'protected' => [':hide', 'protected'], + 'expert' => [':hide', 'guests', 'cssID'], + 'invisible' => ['invisible', 'start', 'stop'], +]; + +/* + * Fields + */ + +$GLOBALS['TL_DCA']['tl_content']['fields']['packagist_package'] = [ + 'label' => &$GLOBALS['TL_LANG']['tl_content']['bs_grid_name'], + 'exclude' => true, + 'inputType' => 'text', + 'reference' => &$GLOBALS['TL_LANG']['tl_content'], + 'eval' => [ + 'tl_class' => 'w50', + ], + 'sql' => "varchar(128) NOT NULL default ''", +]; + +$GLOBALS['TL_DCA']['tl_content']['fields']['packagist_fields'] = [ + 'label' => &$GLOBALS['TL_LANG']['tl_content']['bs_grid_name'], + 'exclude' => true, + 'inputType' => 'checkbox', + 'options_callback' => [ + 'netzmacht.contao_packagist_package.listeners.dca.content', + 'getFieldOptions' + ], + 'reference' => &$GLOBALS['TL_LANG']['packagist'], + 'eval' => [ + 'tl_class' => 'w50', + 'multiple' => true, + ], + 'sql' => "varchar(32) NOT NULL default ''", +]; diff --git a/src/Resouces/contao/languages/de/default.php b/src/Resouces/contao/languages/de/default.php new file mode 100644 index 0000000..18eaeb1 --- /dev/null +++ b/src/Resouces/contao/languages/de/default.php @@ -0,0 +1,21 @@ + + * @copyright 2017 netzmacht David Molineus. All rights reserved. + * @license LGPL 3.0 + * @filesource + */ + +$GLOBALS['TL_LANG']['packagist']['name'] = 'Name'; +$GLOBALS['TL_LANG']['packagist']['description'] = 'Beschreibung'; +$GLOBALS['TL_LANG']['packagist']['version'] = 'Version'; +$GLOBALS['TL_LANG']['packagist']['type'] = 'Type'; +$GLOBALS['TL_LANG']['packagist']['favers'] = 'Favoriten'; +$GLOBALS['TL_LANG']['packagist']['downloads_total'] = 'Downloads (gesamt)'; +$GLOBALS['TL_LANG']['packagist']['time'] = 'Letzte Aktualisierung'; +$GLOBALS['TL_LANG']['packagist']['repository'] = 'Repository'; + diff --git a/src/Resouces/contao/templates/ce_packagist_package.html5 b/src/Resouces/contao/templates/ce_packagist_package.html5 new file mode 100644 index 0000000..240ea3b --- /dev/null +++ b/src/Resouces/contao/templates/ce_packagist_package.html5 @@ -0,0 +1,16 @@ +extend('block_searchable') ?> + +block('content') ?> + +package): ?> +
+fields as $field): ?> +
labels[$field] ?>
+
package[$field] ?>
+ +
+ +

labels['noPackage'] ?>

+ + +endblock() ?>