Skip to content

Commit

Permalink
doc: Installation of the root package is not recommended.
Browse files Browse the repository at this point in the history
  • Loading branch information
LastDragon-ru committed Jan 18, 2024
1 parent 904fa34 commit 6f77895
Show file tree
Hide file tree
Showing 7 changed files with 79 additions and 13 deletions.
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,18 @@ The set provides best practices to make development more fun and classes/service

# Installation

```shell
# Everything
composer require lastdragon-ru/lara-asp
Installation of the root `lastdragon-ru/lara-asp` package is not recommended because it will install all packages, but some of them are intended to use while dev only (and may want dependencies like `phpunit`/`phpstan`/etc). So select the desired package and install it. You can find requirements and installation instructions (if any) inside package documentation.

# Specific package (where "core" the package name)
composer require lastdragon-ru/lara-asp-core
```shell
# General case (where "<package>" the package name).
composer require lastdragon-ru/lara-asp-<package>
```

# Packages

| 🐝 | Package intended to use in dev. |
|:--:|---------------------------------|

[include:package-list]: ./packages
[//]: # (start: df3ee6374fabefbdeb79b26164b3f2ef88f6ed94646bb5d44751ea6da758de19)
[//]: # (warning: Generated automatically. Do not edit.)
Expand Down Expand Up @@ -93,7 +95,7 @@ This package provides a customizable wrapper around the [Symfony Serializer Comp

[Read more](<packages/serializer/README.md>).

## Testing Helpers
## Testing Helpers 🐝

This package provides various useful asserts for [PHPUnit](https://phpunit.de/) and alternative solution for HTTP tests - testing HTTP response has never been so easy! And this not only about `TestResponse` but any PSR response 😎

Expand Down
51 changes: 51 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Upgrade Guide

[include:file]: ./docs/Shared/Upgrade.md
[//]: # (start: 39d35167e0d4cea1b3b411d449b79f0b6df5fcbf65c5d8b9775671fe5603b7c9)
[//]: # (warning: Generated automatically. Do not edit.)

## Instructions

1. Determine the current version (`composer info ...`)
2. Choose the wanted version
3. Follow the instructions
4. ??????
5. PROFIT

For example, if the current version is `2.x` and you want to migrate to `5.x`, you need to perform all steps in the following order:

* "Upgrade from v2"
* "Upgrade from v3"
* "Upgrade from v4"

Please also see [changelog](https://github.com/LastDragon-ru/lara-asp/releases) to find all changes.

## Legend

| 🤝 | Backward-compatible change. Please note that despite you can ignore it now, but it will be mandatory in the future. |
|:--:|---------------------------------------------------------------------------------------------------------------------|

[//]: # (end: 39d35167e0d4cea1b3b411d449b79f0b6df5fcbf65c5d8b9775671fe5603b7c9)

# Packages

[include:package-list]: ./packages ({"template": "upgradable"})
[//]: # (start: 39292ac87c6fc1ec1884b9449c69f39245874999bd085380a87c7473ffae043b)
[//]: # (warning: Generated automatically. Do not edit.)

* [Core](<packages/core/UPGRADE.md>)
* [Documentator](<packages/documentator/UPGRADE.md>)
* [Eloquent Helpers](<packages/eloquent/UPGRADE.md>)
* [Formatter](<packages/formatter/UPGRADE.md>)
* [GraphQL Extensions for Lighthouse](<packages/graphql/UPGRADE.md>)
* [GraphQL Printer](<packages/graphql-printer/UPGRADE.md>)
* [Migrator](<packages/migrator/UPGRADE.md>)
* [SPA Helpers](<packages/spa/UPGRADE.md>)
* [Serializer](<packages/serializer/UPGRADE.md>)
* [Testing Helpers 🐝](<packages/testing/UPGRADE.md>)

[//]: # (end: 39292ac87c6fc1ec1884b9449c69f39245874999bd085380a87c7473ffae043b)

# Upgrade from v5

* [ ] Installation of the root `lastdragon-ru/lara-asp` package is not recommended anymore 🤝
9 changes: 9 additions & 0 deletions docs/Shared/InstallationDev.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Installation

> [!NOTE]
>
> The package intended to use in dev.
```shell
composer require --dev lastdragon-ru/lara-asp-${package}
```
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ public function testProcessNoTitle(): void {
*/
public static function dataProviderProcess(): array {
return [
'default' => ['~default.md', 'default'],
'upgrade' => ['~upgrade.md', 'upgrade'],
'default' => ['~default.md', 'default'],
'upgradable' => ['~upgradable.md', 'upgradable'],
];
}
// </editor-fold>
Expand Down
14 changes: 9 additions & 5 deletions packages/testing/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Testing Helpers
# Testing Helpers 🐝

This package provides various useful asserts for [PHPUnit](https://phpunit.de/) and alternative solution for HTTP tests - testing HTTP response has never been so easy! And this not only about `TestResponse` but any PSR response 😎

Expand All @@ -25,17 +25,21 @@ This package provides various useful asserts for [PHPUnit](https://phpunit.de/)

[//]: # (end: 876a9177c0e8e3722ac84e8f3888245fc9070a64a87dedfe7c9d9ba2a13b374b)

[include:template]: ../../docs/Shared/Installation.md ({"data": {"package": "testing"}})
[//]: # (start: 5a3ab424b5419398e67a76495351503570fa33421481357861dc96f3ac4d841d)
[include:template]: ../../docs/Shared/InstallationDev.md ({"data": {"package": "testing"}})
[//]: # (start: 9c57d43303e5ef82308c0c83e328e2a47be808a50cd12d6fc5bcfd9229e2fa7c)
[//]: # (warning: Generated automatically. Do not edit.)

# Installation

> [!NOTE]
>
> The package intended to use in dev.
```shell
composer require lastdragon-ru/lara-asp-testing
composer require --dev lastdragon-ru/lara-asp-testing
```

[//]: # (end: 5a3ab424b5419398e67a76495351503570fa33421481357861dc96f3ac4d841d)
[//]: # (end: 9c57d43303e5ef82308c0c83e328e2a47be808a50cd12d6fc5bcfd9229e2fa7c)

# Usage

Expand Down

0 comments on commit 6f77895

Please sign in to comment.