• Backend Module
• Backend Widget
• Data Handling
• Content Element
• Frontend Module
• Frontend Widget
• Model
• Service
add code to <contao root path>/composer.json
{
"repositories": [
{
"type": "git",
"url": "https://github.com/jodermo/petzka-demo-bundle.git"
}
],
"require": {
"petzka/demo-bundle": "dev-master"
},
"config": {
"preferred-install": {
"petzka/*": "source",
"*": "dist"
}
},
}
add code to <contao root path>/composer.json
{
"...": "...",
"repositories": [
{
"type": "path",
"url": "repositories/petzka-demo-bundle"
}
],
"require": {
"...": "...",
"petzka/demo-bundle": "dev-master"
},
"config": {
"preferred-install": {
"petzka/*": "source",
"*": "dist"
}
},
}
.php_cs.php
composer.json
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/
• 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!