GithubHelp home page GithubHelp logo

mercuryseries / recipes-contrib Goto Github PK

View Code? Open in Web Editor NEW

This project forked from symfony/recipes-contrib

2.0 2.0 0.0 2.47 MB

Symfony Contrib Recipes Repositories

Home Page: https://github.com/symfony/recipes-contrib/blob/flex/main/RECIPES.md

License: MIT License

JavaScript 0.05% PHP 98.45% CSS 0.54% SCSS 0.24% Gherkin 0.72%

recipes-contrib's Introduction

Symfony Recipes (Contrib)

Symfony recipes allow the automation of Composer packages configuration via the Symfony Flex Composer plugin.

This repository hosts contributed recipes for Composer packages that are not part of the "official" Symfony recipes. To enable recipes defined in this repository for your project, run the following command:

composer config extra.symfony.allow-contrib true

See RECIPES.md for a full list of recipes that live in this repository.

Contributing

For more information about contributing a recipe, read the documentation on the main repository and the Best Practices below.

Unlike for official recipes, the pull requests for new contrib recipes are managed by the community. Pull requests are reviewed by the Symfony Bot and automatically merged when the following conditions are met (in that order):

  • The pull request title does not contain "WIP";
  • The Symfony Bot approved the pull request and reported no validation errors;
  • Someone (not the Symfony bot nor the pull request author) approved the pull request;
  • The pull request author or the reviewer is a Symfony Core Merger.

Best Practices

Default Bundle Config

A recipe for a bundle should not contain all the configuration the bundle has to offer. A good recipe only contains a suggestion config for an application. That is config that needs to be configured but no real default value exists.

Example: The "items per page" in a paginator bundle or API credentials for an API client bundle.

If environment variables are used, they must be provided to the bundle's config.

A bundle without config or routes do not need a recipe. Flex is smart enough to install that bundle anyways.

Modify Other Bundle's config

The general rule is that no recipe should modify other bundle's configuration. There is however one exception. A recipe is allowed to append to a "config collection".

Example: Add a new connection to DoctrineBundle or add a new cache adapter to Symfony Framework bundle.

Maintainability

The symfony/recipes-contrib repository should contain the config for packages. Using "copy-from-package Configurator" for routes and config is not allowed. That would make the recipes impossible to maintain and to assure their quality.

Recipes is also not a replacement for composer create-project. That means it is not intended to be used as "bootstrap full application" and copy a lot of PHP code, front-end assets etc. Recipes are for quick installation of packages.

recipes-contrib's People

Contributors

nyholm avatar fabpot avatar endroid avatar symfony-bot avatar crayner avatar gquemener avatar nicolas-grekas avatar mael-91 avatar oskarstark avatar cedrickoka avatar gregoirehebert avatar makasim avatar 20uf avatar ro0nl avatar ychadwick avatar electricmaxxx avatar andchir avatar spomky avatar picoss avatar drupol avatar allypost avatar derstoffel avatar birkof avatar covex-nn avatar javiereguiluz avatar nicolasthal avatar peter-gribanov avatar ckrack avatar ekkinox avatar mbo2olivier avatar

Stargazers

Belgacem Khadher avatar Alkaou Dit Baba Dembele avatar

Watchers

James Cloos avatar  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.