/contao-stock-bundle

Basic Contao 4 Bundle (contao/core-bundle ^4.9)

Primary LanguagePHP

Contao 4 - Stock Bundle

This is a basic Contao Bundle for building custom bundles from scratch

extension for contao/core-bundle (version ^4.9)

Contao website:https://contao.org
Official Contao Documentation: https://docs.contao.org

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


Add bundle as Git-Repository

add code to <contao root path>/composer.json

{
    "repositories": [
        {
            "type": "git",
            "url": "https://github.com/jodermo/contao-stock-bundle.git"
        }
    ],
    "require": {
        "petzka/demo-bundle": "dev-master"
    },
    "config": {
        "preferred-install": {
            "petzka/*": "source",
            "*": "dist"
        }
    },
}

Add bundle as local repository

add code to <contao root path>/composer.json

{
    "...": "...",
    "repositories": [
        {
            "type": "path",
            "url": "<repository path>/contao-stock-bundle"
        }
    ],
    "require": {
        "...": "...",
        "petzka/demo-bundle": "dev-master"
    },
    "config": {
        "preferred-install": {
            "petzka/*": "source",
            "*": "dist"
        }
    },
}

Create Custom Bundle

Download and extract or clone this repository
search and replace following namespaces in all files and file names

search for replace with
Moritz Petzka Your Name
info@petzka.com your email
Petzka Vendorname
ContaoStock BundleName
petzka vendorname
contao-stock-bundle bundle-name