2017 © Pedro Peláez
 

contao-bundle skeleton-bundle

Skeleton for custom Contao 4 bundles

image

contao/skeleton-bundle

Skeleton for custom Contao 4 bundles

  • Thursday, May 31, 2018
  • by leofeyer
  • Repository
  • 1 Watchers
  • 2 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Contao 4 skeleton bundle

Contao is an Open Source PHP Content Management System for people who want a professional website that is easy to maintain. Visit the project website for more information., (*1)

You can use the skeleton bundle as basis for your own Contao bundle., (*2)

Install

Download the skeleton bundle:, (*3)

wget https://github.com/contao/skeleton-bundle/archive/main.zip
unzip main.zip
mv skeleton-bundle-main [package name]
cd [package name]

Customize

First adjust the following files:, (*4)

  • composer.json
  • ecs.php
  • LICENSE
  • phpunit.xml.dist
  • README.md

Then rename the following files and/or the references to SkeletonBundle in the following files:, (*5)

  • src/ContaoManager/Plugin.php
  • src/DependencyInjection/ContaoSkeletonExtension.php
  • src/ContaoSkeletonBundle.php
  • tests/ContaoSkeletonBundleTest.php

Finally, add your custom classes and resources. Make sure to register your services within src/Resources/config/services.yml. Also make sure to [adjust the Contao Manager Plugin][2] (and the dependencies within the composer.json) accordingly, if your bundle makes adjustments to other bundles (e.g. adjustments to a DCA of other bundles)., (*6)

Release

First make sure the tools are installed and up to date by running composer bin all update in your bundle's root. Then run the PHP-CS-Fixer and the unit test before you release your bundle:, (*7)

vendor/bin/ecs check src/ tests/ --fix
vendor/bin/phpunit

The Versions