laravel / prompts

Beautiful and user-friendly forms for your command-line PHP applications.
https://laravel.com/docs/prompts
MIT License
533 stars 94 forks source link

(feat) Add `P` class with static methods #9

Closed lucasmichot closed 1 year ago

lucasmichot commented 1 year ago

This pull-request add a P class, that can be imported to call any function. It is aligned with laravel/framework where all the string and array helpers functions were migrated to dedicated Arr and Str classes with static methods.

That change also allows to greatly limit the number of imports in a console command class, where https://github.com/laravel/prompts feature would be used.

Note: The playground and tests files have also been updated to reflect this change.

taylorotwell commented 1 year ago

Not sure I love this idea.