boolean-type/lorem-ipsum-bundle
Composer 安装命令:
composer require boolean-type/lorem-ipsum-bundle
包简介
Happy lorem ipsum
README 文档
README
- making bundle from the scratch:
- Symfony docs:
- https://symfony.com/doc/current/service_container.html
- https://symfony.com/doc/current/components/dependency_injection.html
- https://symfony.com/doc/current/components/dependency_injection/compilation.html
- https://symfony.com/doc/current/service_container/compiler_passes.html
- https://symfony.com/doc/current/bundles.html
- https://symfony.com/doc/current/bundles/extension.html
- https://symfony.com/doc/current/service_container/definitions.html
- https://symfony.com/doc/current/bundles/configuration.html
- https://symfony.com/doc/current/configuration/using_parameters_in_dic.html
- https://symfony.com/doc/current/bundles/prepend_extension.html
- https://symfony.com/doc/current/bundles/best_practices.html
- @TOREAD:
My bundle on packagist:
https://packagist.org/packages/boolean-type/lorem-ipsum-bundle
See, how it works:
- in browser:
- in console:
D:\server\www\LoremIpsumBundle>vendor\bin\simple-phpunit # Run the tests.
How to make changes in bundle locally?
Changes, made in vendor folder, for bundle, installed from packagist (https://packagist.org/packages/boolean-type/lorem-ipsum-bundle) wan't work. So, I need to made them in local (ie this) bundle version.
Switch from packagist version to local:
-
composer remove boolean-type/lorem-ipsum-bundle -
In app's
composer.jsonadd this ("../LoremIpsumBundle"is the path, where my bundle locally exists):
"repositories": [
{
"type": "path",
"url": "../LoremIpsumBundle"
}
]
composer require boolean-type/lorem-ipsum-bundle:*@dev
Switch from local version to packagist:
- In app's
composer.jsondelete this:
"repositories": [
{
"type": "path",
"url": "../LoremIpsumBundle"
}
]
-
composer remove boolean-type/lorem-ipsum-bundle -
composer req "boolean-type/lorem-ipsum-bundle:^1.0"(1.0is bundle current version)
Recipe
This recipe will work only for my bundle on packagist, not for this, local version.
How did I created recipe, which is accessible in symfony/recipes-contrib?
I've forked from https://github.com/symfony/recipes-contrib . Next I git-cloned this repo to my disc and created new folder with my recipe. Then I've created a pull request from a fork, as explained here - https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request-from-a-fork . From this time all changes, that I pushed to my fork, automatically pushed to created pull request in symfony/recipes-contrib. After successful validation "View deployment" link appeared. This links contains instructions, described below.
Clear composer cache before installation:
composer clearcache
Installation
Theory:
Instructions for the recipe, created by me for this bundle:
If instructions for bundle become anavailable by link above, here is the copy:
How to test these changes in your application
Step 0. Allow installing "contrib" recipes in your application:
composer config extra.symfony.allow-contrib true
Step 1. Define the SYMFONY_ENDPOINT environment variable:
# On *nix and Mac export SYMFONY_ENDPOINT=https://flex.symfony.com/r/github.com/symfony/recipes-contrib/1099 # On Windows SET SYMFONY_ENDPOINT=https://flex.symfony.com/r/github.com/symfony/recipes-contrib/1099
Step 2. Install the package(s) related to this recipe:
composer req "boolean-type/lorem-ipsum-bundle:^1.0"
Step 3. Don't forget to unset the SYMFONY_ENDPOINT environment variable when done:
# On *nix and Mac unset SYMFONY_ENDPOINT # On Windows SET SYMFONY_ENDPOINT=
Travis CI builds
https://travis-ci.com/github/BooleanType/symfony_knpu_lorem_ipsum_bundle/builds
boolean-type/lorem-ipsum-bundle 适用场景与选型建议
boolean-type/lorem-ipsum-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 23 次下载、GitHub Stars 达 0, 最近一次更新时间为 2021 年 02 月 14 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 boolean-type/lorem-ipsum-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 boolean-type/lorem-ipsum-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 23
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 8
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-02-14