base on Contao Open Source CMS <p align="center"><img src="https://contao.org/files/contao/logo/contao-logo-corporate.svg" alt></p> <p align="center"> <a href="https://github.com/contao/contao/actions"><img src="https://github.com/contao/contao/actions/workflows/ci.yml/badge.svg?branch=5.x" alt></a> <a href="https://codecov.io/gh/contao/contao"><img src="https://codecov.io/gh/contao/contao/branch/5.x/graph/badge.svg" alt></a> <a href="https://packagist.org/packages/contao/contao"><img src="https://img.shields.io/packagist/v/contao/contao.svg" alt></a> </p> ## About Contao is a powerful open source CMS that allows you to create professional websites and scalable web applications. Visit the [project website](https://contao.org) for more information. ## Purpose The purpose of this package is to develop the Contao bundles in a monorepo. Use it when you want to create a pull request or report an issue. The monorepo is automatically split into separate packages: * [CalendarBundle](https://github.com/contao/calendar-bundle) * [CommentsBundle](https://github.com/contao/comments-bundle) * [CoreBundle](https://github.com/contao/core-bundle) * [FaqBundle](https://github.com/contao/faq-bundle) * [ListingBundle](https://github.com/contao/listing-bundle) * [MakerBundle](https://github.com/contao/maker-bundle) * [ManagerBundle](https://github.com/contao/manager-bundle) * [NewsBundle](https://github.com/contao/news-bundle) * [NewsletterBundle](https://github.com/contao/newsletter-bundle) **Please do not use `contao/contao` in production**! Use the split packages instead. ## Platinum partners Thanks to our platinum partners for helping us fund the development of Contao. <a href="https://postyou.de"><img src="https://contao.org/files/uploads/partner-logos/6889-postyou.svg" width="300" alt></a> ## Development To create a pull request and to test your changes within a running Contao application, it is the easiest to use the [Contao Managed Edition](https://github.com/contao/managed-edition). Start by installing it in your current directory: ```bash composer create-project --no-install contao/managed-edition <directory> <branch> ``` Replace `<directory>` with the directory where you want to install the Managed Edition (use `.` for the current directory). Replace `<branch>` with `5.x-dev` if you want to add a new feature, or with `<lts-version>.x-dev` (currently `5.3.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: ```json "require": { "php": "^8.3", "contao/contao": "5.x-dev" }, ``` Again, use `5.x-dev` if you want to add a new feature or `<lts-version>.x-dev` if you want to fix a bug. Next, install the dependencies: ```bash composer update ``` Composer automatically clones the Git repository into the `vendor/contao/contao` folder. You can complete the setup by running `vendor/bin/contao-setup` on the command line. Any changes you make in `vendor/contao/contao` will be tracked via Git, so you can submit your pull request directly from your application. ## Running scripts First install the code quality tools in `vendor/contao/contao`: ```bash composer update composer bin all install ``` Then run the code quality scripts via Composer: ```bash composer all ``` You can also run the scripts separately: ```bash composer rector composer ecs composer service-linter composer monorepo-tools composer unit-tests composer functional-tests composer phpstan composer depcheck ``` Use the `--` argument to pass additional flags to the underlying commands: ```bash composer unit-tests -- --filter CoreBundle composer ecs -- --clear-cache ``` ## Functional tests To set up the functional tests, create a database named `contao_test`: ```bash mysql -e "CREATE DATABASE contao_test" ``` If your database uses credentials, copy the file `core-bundle/phpunit.xml.dist` to `core-bundle/phpunit.xml` and adjust the following line: ```xml <php> <env name="DATABASE_URL" value="mysql://root@localhost:3306/contao_test" /> </php> ``` Then run the functional tests via Composer: ```bash composer functional-tests ``` ## Node.js To build the assets, you need a Node.js version >= 18.12. Then run these commands: ```bash npm ci npm run build ``` ## End-to-end tests The Contao end-to-end tests are availabe as an [NPM package](https://www.npmjs.com/package/contao-e2e-tests). You can install and run them like this: ```bash npm install contao-e2e-tests --save-dev npx contao-e2e-tests ``` ## License Contao is licensed under the terms of the LGPLv3. ## Sponsors * Thanks to [JetBrains](https://www.jetbrains.com/?from=Contao) for kindly providing licenses for their products. * Thanks to [Blackfire](https://www.blackfire.io) for kindly providing a free open source subscription. * This project is tested with [BrowserStack](https://www.browserstack.com). ## Getting support Visit the [support page](https://to.contao.org/support) to learn about the available support options. ", Assign "at most 3 tags" to the expected json: {"id":"5472","tags":[]} "only from the tags list I provide: [{"id":77,"name":"3d"},{"id":89,"name":"agent"},{"id":17,"name":"ai"},{"id":54,"name":"algorithm"},{"id":24,"name":"api"},{"id":44,"name":"authentication"},{"id":3,"name":"aws"},{"id":27,"name":"backend"},{"id":60,"name":"benchmark"},{"id":72,"name":"best-practices"},{"id":39,"name":"bitcoin"},{"id":37,"name":"blockchain"},{"id":1,"name":"blog"},{"id":45,"name":"bundler"},{"id":58,"name":"cache"},{"id":21,"name":"chat"},{"id":49,"name":"cicd"},{"id":4,"name":"cli"},{"id":64,"name":"cloud-native"},{"id":48,"name":"cms"},{"id":61,"name":"compiler"},{"id":68,"name":"containerization"},{"id":92,"name":"crm"},{"id":34,"name":"data"},{"id":47,"name":"database"},{"id":8,"name":"declarative-gui "},{"id":9,"name":"deploy-tool"},{"id":53,"name":"desktop-app"},{"id":6,"name":"dev-exp-lib"},{"id":59,"name":"dev-tool"},{"id":13,"name":"ecommerce"},{"id":26,"name":"editor"},{"id":66,"name":"emulator"},{"id":62,"name":"filesystem"},{"id":80,"name":"finance"},{"id":15,"name":"firmware"},{"id":73,"name":"for-fun"},{"id":2,"name":"framework"},{"id":11,"name":"frontend"},{"id":22,"name":"game"},{"id":81,"name":"game-engine "},{"id":23,"name":"graphql"},{"id":84,"name":"gui"},{"id":91,"name":"http"},{"id":5,"name":"http-client"},{"id":51,"name":"iac"},{"id":30,"name":"ide"},{"id":78,"name":"iot"},{"id":40,"name":"json"},{"id":83,"name":"julian"},{"id":38,"name":"k8s"},{"id":31,"name":"language"},{"id":10,"name":"learning-resource"},{"id":33,"name":"lib"},{"id":41,"name":"linter"},{"id":28,"name":"lms"},{"id":16,"name":"logging"},{"id":76,"name":"low-code"},{"id":90,"name":"message-queue"},{"id":42,"name":"mobile-app"},{"id":18,"name":"monitoring"},{"id":36,"name":"networking"},{"id":7,"name":"node-version"},{"id":55,"name":"nosql"},{"id":57,"name":"observability"},{"id":46,"name":"orm"},{"id":52,"name":"os"},{"id":14,"name":"parser"},{"id":74,"name":"react"},{"id":82,"name":"real-time"},{"id":56,"name":"robot"},{"id":65,"name":"runtime"},{"id":32,"name":"sdk"},{"id":71,"name":"search"},{"id":63,"name":"secrets"},{"id":25,"name":"security"},{"id":85,"name":"server"},{"id":86,"name":"serverless"},{"id":70,"name":"storage"},{"id":75,"name":"system-design"},{"id":79,"name":"terminal"},{"id":29,"name":"testing"},{"id":12,"name":"ui"},{"id":50,"name":"ux"},{"id":88,"name":"video"},{"id":20,"name":"web-app"},{"id":35,"name":"web-server"},{"id":43,"name":"webassembly"},{"id":69,"name":"workflow"},{"id":87,"name":"yaml"}]" returns me the "expected json"