GithubHelp home page GithubHelp logo

qzminski / contao Goto Github PK

View Code? Open in Web Editor NEW

This project forked from contao/contao

0.0 2.0 0.0 105.54 MB

Contao 4 bundles

License: GNU Lesser General Public License v3.0

PHP 96.30% CSS 1.19% JavaScript 1.83% HTML 0.63% Shell 0.04%

contao's Introduction

Travis Coveralls Packagist Pullreminders

About

This is a monorepo holding the official Contao 4 bundles.

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.

Purpose

The purpose of this package is to develop the Contao 4 bundles. Use it if you e.g. want to create a pull request or if you want to report an issue.

The monorepo is split into separate packages automatically:

Please do not use contao/contao in production but use the split packages instead.

Development

To create a pull request and to test your changes within a running Contao 4 application, it is the easiest to use the Contao managed edition. Start by installing it in your current directory:

composer create-project --no-install contao/managed-edition <directory> <branch>

Replace <directory> with the directory you want to install the managed edition in (use . for the current one) and <branch> with dev-master if you want to add a new feature or with <lts-version>.x-dev (currently 4.4.x-dev) if you want to fix a bug.

Then adjust the require section in your composer.json file so Composer loads the monorepo instead of the individual bundles:

"require": {
    "php": "^7.1",
    "contao/contao": "dev-master"
},

Again, use dev-master if you want to add a new feature or <lts-version>.x-dev if you want to fix a bug.

Next, install the dependencies:

composer update

Composer will automatically clone the Git repo into the vendor/contao/contao folder. You can finish your setup by visiting https://your-domain.local/contao/install.

All the changes you make in vendor/contao/contao can be tracked via Git and you can submit your pull request directly from within your application.

Running scripts

You can use the run command to run scripts in all bundles:

./run phpunit
./run php-cs-fixer

Functional tests

To set up functional tests, create a database named contao_test and import the core-bundle/tests/Functional/app/Resources/contao_test.sql file.

mysql -e "CREATE DATABASE contao_test"
mysql contao_test < core-bundle/tests/Functional/app/Resources/contao_test.sql

If your database uses credentials, copy the file core-bundle/phpunit.xml.dist to core-bundle/phpunit.xml and add the following lines:

<php>
    <env name="DB_HOST" value="localhost" />
    <env name="DB_USER" value="" />
    <env name="DB_PASS" value="" />
    <env name="DB_NAME" value="contao_test" />
</php>

Then run the functional tests via the run command:

./run functional

License

Contao is licensed under the terms of the LGPLv3.

Getting support

Visit the support page to learn about the available support options.

contao's People

Contributors

leofeyer avatar aschempp avatar toflar avatar ausi avatar tristanlins avatar xchs avatar discordier avatar qzminski avatar fritzmg avatar dmolineus avatar bytehead avatar marcobiedermann avatar psi-4ward avatar serhii-dv avatar backbone87 avatar volkerrichert avatar mroi avatar gmpf avatar kroka avatar tobaco avatar taca avatar stefanheimes avatar bekanntmacher avatar rolandschuetz avatar mynyx avatar m-vo avatar jamesdevine avatar henobi avatar bugbuster1701 avatar davidenke avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.