boolean-type / lorem-ipsum-bundle
Happy lorem ipsum
Installs: 23
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: ^7.1.3
- symfony/config: ^4.3.3|^5.0
- symfony/dependency-injection: ^4.3.3|^5.0
- symfony/http-kernel: ^4.4|^5.0
Requires (Dev)
- symfony/browser-kit: ^5.2
- symfony/framework-bundle: ^5.2
- symfony/phpunit-bridge: ^5.2
This package is auto-updated.
Last update: 2024-12-18 07:16:34 UTC
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.json
add 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.json
delete this:
"repositories": [ { "type": "path", "url": "../LoremIpsumBundle" } ]
-
composer remove boolean-type/lorem-ipsum-bundle
-
composer req "boolean-type/lorem-ipsum-bundle:^1.0"
(1.0
is 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