Download the PHP package nowo-tech/slide-to-confirm-bundle without Composer

On this page you can find all versions of the php package nowo-tech/slide-to-confirm-bundle. 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 slide-to-confirm-bundle

Slide To Confirm Bundle

CI Packagist Version Packagist Downloads

Found this useful? Give it a star on GitHub so more developers can find it.

Symfony FormType for slide-to-confirm / swipe-to-submit — a submit control that must be dragged to the end of a track before the form is posted. Same family as PhoneInput, PasswordToggle, and SelectAllChoice: a drop-in field type, Twig themes, Stimulus or a standalone script. For Symfony 6, 7 and 8 · PHP 8.2+.

This bundle is FrankenPHP worker mode friendly.

Table of contents

Quick search terms

Looking for Symfony slide to confirm, swipe to submit form type, slide to pay Symfony, slide to delete account, iOS slide to unlock form, Stimulus swipe submit, SlideToConfirmType, SwipeToSubmitType? You're in the right place.

Features

Installation

1. Register the bundle in config/bundles.php:

2. Form theme: The bundle automatically adds its form theme from the form_theme option (see Configuration). Set form_theme in config/packages/nowo_slide_to_confirm.yaml to match your app (e.g. bootstrap_5_layout.html.twig).

3. Include the frontend assets using the named asset package:

4. (Optional) Translations — domain NowoSlideToConfirmBundle with the seven required locales (en, es, it, fr, pt, de, nl).

Full steps: docs/INSTALLATION.md.

Requirements

Configuration

See docs/CONFIGURATION.md for built-in profiles and Symfony form themes.

Usage

Render with a child loop (no extra submit button unless you use profile gate):

On a valid POST, confirm is mapped: false by default — read $form->get('confirm')->getData() (boolean). Full FormType + controller walkthrough: docs/USAGE.md.

Use cases

Case Profile How to use
Pay / send money payment SlideToConfirmType after amount + IBAN
Delete / wipe danger Ack checkbox + slide
Publish / go live publish Slide replaces “Publish”
Accept terms legal Store contract version on valid POST
Cancel subscription danger Custom text / confirmed_text
Approve batch payment SwipeToSubmitType with a count in the label
Sign out everywhere danger Invalidate sessions after isValid()
Unlock then submit gate Slide enables a SubmitType (no auto-POST)

Copy-paste FormTypes and controllers for all eight cases: docs/USAGE.md. Demo: ?case=payment (and delete, publish, legal, cancel, batch, emergency, gate).

Demo

The Symfony 8.1 demo is in demo/symfony8. Run from the bundle root: make up-symfony8 (http://localhost:8055). See demo/README.md.

The demos use FrankenPHP. Default FRANKENPHP_MODE=worker (Caddyfile with worker { file; watch }). Set FRANKENPHP_MODE=classic for per-request PHP so Twig/asset changes show on refresh (see docs/DEMO-FRANKENPHP.md).

Development

Run tests and QA with Docker: make up && make install && make test (or make test-coverage, make qa). Without Docker: composer install && composer test. See Makefile for all targets.

Documentation

Additional documentation

Tests and coverage

License

The MIT License (MIT). Please see LICENSE for more information.

Author

Created by Nowo.tech


All versions of slide-to-confirm-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2 <8.6
symfony/asset Version ^6.0 || ^7.0 || ^8.0
symfony/config Version ^6.0 || ^7.0 || ^8.0
symfony/dependency-injection Version ^6.0 || ^7.0 || ^8.0
symfony/form Version ^6.0 || ^7.0 || ^8.0
symfony/framework-bundle Version ^6.0 || ^7.0 || ^8.0
symfony/http-kernel Version ^6.0 || ^7.0 || ^8.0
symfony/translation Version ^6.0 || ^7.0 || ^8.0
symfony/twig-bundle Version ^6.0 || ^7.0 || ^8.0
symfony/validator Version ^6.0 || ^7.0 || ^8.0
twig/extra-bundle Version ^3.12
twig/string-extra Version ^3.12
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 nowo-tech/slide-to-confirm-bundle contains the following files

Loading the files please wait ...