项目作者: jodermo

项目描述 :
Contao 4 - Demo Bundle
高级语言: PHP
项目地址: git://github.com/jodermo/petzka-demo-bundle.git
创建时间: 2020-06-08T12:19:46Z
项目社区:https://github.com/jodermo/petzka-demo-bundle

开源协议:GNU Lesser General Public License v3.0

下载


GitHub Logo

Contao 4 - Demo Bundle

This demo is a basic Contao/Symfony Bundle
with examples for

• Backend Module

• Backend Widget

• Data Handling

• Content Element

• Frontend Module

• Frontend Widget

• Model

• Service

Add bundle as Git-Repository

add code to \/composer.json

  1. {
  2. "repositories": [
  3. {
  4. "type": "git",
  5. "url": "https://github.com/jodermo/petzka-demo-bundle.git"
  6. }
  7. ],
  8. "require": {
  9. "petzka/demo-bundle": "dev-master"
  10. },
  11. "config": {
  12. "preferred-install": {
  13. "petzka/*": "source",
  14. "*": "dist"
  15. }
  16. },
  17. }

Add bundle as local repository

add code to \/composer.json

  1. {
  2. "...": "...",
  3. "repositories": [
  4. {
  5. "type": "path",
  6. "url": "repositories/petzka-demo-bundle"
  7. }
  8. ],
  9. "require": {
  10. "...": "...",
  11. "petzka/demo-bundle": "dev-master"
  12. },
  13. "config": {
  14. "preferred-install": {
  15. "petzka/*": "source",
  16. "*": "dist"
  17. }
  18. },
  19. }

Customize

Customize this files:

  1. .php_cs.php
  2. composer.json
  3. phpunit.xml.dist

Then rename all files and/or the references to DemoBundle in src/ and tests/:


How to work with Contao 4 and Troubleshooting
jodermo.github.io/contao-4-documentation/


For this bundle, I used some informations and stuff from this pages:

• Contao Hello World Bundle Tutorial:

gist.github.com/joergmoldenhauer/contao-hello-world-bundle-tutorial.md

• Contao 4 skeleton bundle:

github.com/contao/skeleton-bundle

Thanks, guys!