百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
R

recipes-contrib

> DevOps
开源

Symfony Contrib 示例库

557 stars0 点赞6 次浏览
访问官网GitHub

工具介绍

Symfony Contrib 示例库

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:

.. code-block:: bash

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.

.. _Symfony Flex: https://github.com/symfony/flex .. _Symfony recipes: https://github.com/symfony/recipes .. _documentation: https://github.com/symfony/recipes .. _RECIPES.md: https://github.com/symfony/recipes-contrib/blob/flex/main/RECIPES.md

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

PHPrecipessymfony

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类DevOps
定价开源

> 相关工具

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理