Download the PHP package joetannenbaum/terminalia without Composer

On this page you can find all versions of the php package joetannenbaum/terminalia. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package terminalia

[!IMPORTANT] Hey! This was a fun project and I learned a lot. It's not the most stable though. I would recommend using Laravel Prompts. It gets the job done (better) and is well tested and stable.

The UX of Clack, the DX of Laravel for your Artisan commands.

Features

Demo

Installation

This package implements a Console mixin, which should be automatically registered when the package is installed.

If the service provider doesn't automatically register (i.e. if you are using Laravel Zero), add the following to your config/app.php file:

Retrieving Input

Input Validation

The rules argument of these methods uses Laravel's built-in validator, so it accepts anything you are able to pass to Validator::make.

Note: If you're using validation within a Laravel Zero app, remember to register your ValidationServiceProvider::class and TranslationServiceProvider::class in your config/app.php file and also include a lang directory in your project root.

termAsk

The termAsk method prompts the user for input and return the response. It accepts the following arguments:

termChoice

The termChoice method prompts the user to select one or more items from a list of choices. It accepts the following arguments:

If multiple is true and you pass a Collection as the choices argument, the choices will be returned as a Collection as well, otherwise an array will be returned.

Instead of just passing a simple array as the choices argument, you can choose to pass in a nested array or collection using the Choices helper. This allows you to specify a label and a value for each item in the list. The label will be displayed to the user, and the value(s) will be returned when the user selects the item.

termConfirm

The termConfirm method prompts the user to confirm a question. It accepts the following arguments:

Writing Output

termIntro

The termIntro method writes an intro message to the output. It accepts the following arguments:

termOutro

The termOutro method writes an outro message to the output. It accepts the following arguments:

termInfo, termComment, termError, termWarning

Consistent with Laravel's built-in output methods, Terminalia provides methods for writing output in different colors with cohesive styling. They accept the following arguments:

termNote

The termNote method allows you to display a longer message to the user. You can include an optional title as the second argument, if you have multiple lines you can optionally pass in an array of strings as the first argument.

termSpinner

The termSpinner method allows you to show a spinner while an indefinite process is running. It allows customization to you can inform your user of what's happening as the process runs. The result of the spinner will be whatever is returned from the task argument.

Important: It's important to note that the task runs in a forked process, so the task itself shouldn't create any side effects in your application. It should just process something and return a result.

Simple:

Displays a variable final message based on the result of the task:

Updates user of progress as it works:

Sends users encouraging messages while they wait:

Progress Bars

Progress bars have a very similar API to Laravel console progress bars with one small addition: You can pass in an optional title for the bar.


All versions of terminalia with dependencies

PHP Build Version
Package Version
Requires spatie/fork Version ^1.1
illuminate/collections Version ^10.10
illuminate/console Version ^10.10
illuminate/contracts Version ^10.10
illuminate/support Version ^10.10
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package joetannenbaum/terminalia contains the following files

Loading the files please wait ....