Skip to content

Commit 0246f99

Browse files
authored
docs on multi (#78)
1 parent a0e6235 commit 0246f99

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,44 @@ vendor/bin/swiss-knife spot-lazy-traits src --max-used 4
296296
That's it! Run this command once upon a time or run it in CI to eliminate traits with low value to exists. Your code will be more robuts and easier to work with.
297297
298298
299+
<br>
300+
301+
## 12. Mutual Private Repository Dependencies
302+
303+
Do you have a project that uses 5 private repositories? And another one that uses different 3 private repositories? Are their open-source dependencies up to date?
304+
305+
In such situations, we want to get a quick idea about the weakest link. Do all those repositories use the same version of "symfony/console"? What about their min PHP versions?
306+
307+
<br>
308+
309+
That's where `multi-package-composer-stats` comes. Feed it the links to dependency repositories you want to know versions for:
310+
311+
```bash
312+
vendor/bin/swiss-knife multi-package-composer-stats private-company/private-repository.git \
313+
private-company/another-private-repository.git
314+
```
315+
316+
317+
318+
<kbd>
319+
<img src="https://pbs.twimg.com/media/GhfcUmoXkAAFA1S?format=png" style="max-width:15em">
320+
</kbd>
321+
322+
<br>
323+
<br>
324+
<br>
325+
326+
Do you want to compare **the main projects** and themselves and fetch their dependencies automatically? Provide urls to the repositories and the `--is-source` option:
327+
328+
```bash
329+
vendor/bin/swiss-knife multi-package-composer-stats private-company/first-project.git \
330+
private-company/another-project.git
331+
```
332+
333+
Now all the dependencies are fetched per provided project from the `"repositories"` section of `composer.json`.
334+
335+
That's it!
336+
299337
<br>
300338
301339
Happy coding!

0 commit comments

Comments
 (0)