|
4 | 4 | [](https://github.com/thettler/laravel-console-toolkit/actions?query=workflow%3Arun-tests+branch%3Amain) |
5 | 5 | [](https://github.com/thettler/laravel-console-toolkit/actions?query=workflow%3A"Check+%26+fix+styling"+branch%3Amain) |
6 | 6 | [](https://packagist.org/packages/thettler/laravel-console-toolkit) |
| 7 | +[](https://packagist.org/packages/thettler/laravel-console-toolkit) |
| 8 | + |
7 | 9 |
|
8 | 10 |  |
9 | 11 |
|
10 | | -This package makes it even easier to write maintainable and expressive Artisan commands with argument/option casting, |
| 12 | +This package makes it even easier to write maintainable and expressive Artisan commands, with argument/option casting, |
11 | 13 | validation and autoAsk. Also, it lets you define your arguments/options with simple properties and attributes for better |
12 | 14 | ide support and static analysis. And all this with a single trait. |
13 | 15 |
|
14 | 16 | ## 🤯 Features |
15 | 17 |
|
16 | | -All the features with on look: |
| 18 | +All the features: |
17 | 19 |
|
18 | | -| Support | Name | Description | |
19 | | -|:--------:|:----------------------|--------------------------------------------------------------------------------------------------------------------------| |
20 | | -| ☑️ | Laravel Features | Supports everything laravel can do | |
21 | | -| ☑️ | Attribute Syntax | Use PHP-Attributes to automatically define your inputs based on types | |
22 | | -| ☑️ | Casting | Automatically cast your inputs to Enums, Models, Objects or anything you want | |
23 | | -| ☑️ | Validation | Use the Laravel Validator to validate the inputs from the console | |
24 | | -| ☑️ | Auto Ask | If the user provides an invalid value toolkit will ask again for a valid value without the need to run the command again | |
25 | | -| ☑️ | Negatable Options | Options can be specified as opposites: --dry or --no-dry | |
26 | | -| ☑️ | Option required Value | Options can have required values | |
| 20 | +| Support | Name | Description | |
| 21 | +|:-------:|:----------------------|--------------------------------------------------------------------------------------------------------------------------| |
| 22 | +| ✅ | Laravel Features | Supports everything laravel can do | |
| 23 | +| ✅ | Attribute Syntax | Use PHP-Attributes to automatically define your inputs based on types | |
| 24 | +| ✅ | Casting | Automatically cast your inputs to Enums, Models, Objects or anything you want | |
| 25 | +| ✅ | Validation | Use the Laravel Validator to validate the inputs from the console | |
| 26 | +| ✅ | Auto Ask | If the user provides an invalid value toolkit will ask again for a valid value without the need to run the command again | |
| 27 | +| ✅ | Negatable Options | Options can be specified as opposites: --dry or --no-dry | |
| 28 | +| ✅ | Option required Value | Options can have required values | |
27 | 29 |
|
28 | 30 | ## :purple_heart: Support me |
29 | 31 |
|
@@ -133,9 +135,9 @@ class BasicCommand extends Command |
133 | 135 | { |
134 | 136 | protected $signature = 'basic'; |
135 | 137 |
|
136 | | - protected $description = 'Some usefull description.'; |
| 138 | + protected $description = 'Some useful description.'; |
137 | 139 |
|
138 | | - protected $help = 'Some helpfull text.'; |
| 140 | + protected $help = 'Some helpful text.'; |
139 | 141 |
|
140 | 142 | protected $hidden = true; |
141 | 143 | ... |
@@ -751,7 +753,7 @@ The enum cast will automatically cast every typed enum to this enum. But you can |
751 | 753 | protected Enum $enum; |
752 | 754 | ``` |
753 | 755 |
|
754 | | -### Array Cast |
| 756 | +#### Array Cast |
755 | 757 |
|
756 | 758 | If you have an array and want to cast all its values to a specific type you can use the ArrayCaster. It expects a caster |
757 | 759 | and a specific type: |
|
0 commit comments