Download the PHP package macrominds/laravel-choice without Composer

On this page you can find all versions of the php package macrominds/laravel-choice. 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 laravel-choice

Modal user choice dialogue for laravel

If you have an action that needs to be confirmed before proceeding, or you want to let the user choose from multiple options, then this solution might just be exactly what you are looking for.

Example

The user has chosen to delete a person. That means that all upcoming events, hosted by this person, need to be canceled. But you don't want to cancel them silently. You want to be polite and ask the user first:

Screenshot of a modal choice dialogue implemented with macrominds/laravel-choice

Simply return the Choice where you would normally return the redirect() in your Controller.

Depending on the choice of the user, she will be redirected either back to the previous page (standard Option::makeCancel behaviour) or to any route of your liking. You are not limited to two options.

Installation

composer require macrominds/laravel-choice.

Usage

You should call php artisan vendor:publish --tag=laravel-choice.

This will add the customizable views to resources/views/vendor/choice/* and the minimalistic styling resources/assets/sass/vendor/choice/_choice.scss to your project. You should @import "vendor/choice/choice"; in your app.scss afterwards.

In your master blade view, below all visible page elements, just before the end of your </body> or just before the <script>s at the bottom, add the following line:

Next? Nothing. You are ready to go. Just replace a return redirect() statement in your Controller with return Choice::make (//....

TODO


All versions of laravel-choice with dependencies

PHP Build Version
Package Version
Requires php Version ^7.0
illuminate/support Version 5.*
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 macrominds/laravel-choice contains the following files

Loading the files please wait ....