Download the PHP package bambolee-digital/onboarding-package without Composer

On this page you can find all versions of the php package bambolee-digital/onboarding-package. 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 onboarding-package

OnboardingPackage

OnboardingPackage is a Laravel package that allows you to create customized onboarding flows for users, including dynamic questions, options, conditional messages, and flow control based on user responses. The package supports multiple languages using Spatie Laravel Translatable and integrates with the FilamentPHP admin panel for easy management.

Table of Contents

Installation

You can install the package via Composer:

After installation, publish the migration and configuration files:

Then, run the migrations:

Configuration

Filament and Spatie Laravel Translatable

Make sure that FilamentPHP and Spatie Laravel Translatable are installed and configured in your project.

Install the Filament translation plugin:

Add the plugin to your Filament panel:

Package Configuration

The package configuration file allows you to customize options as needed. The config/onboarding-package.php file will be published in the root of your project's config folder.

Usage

Managing Questions and Options

Access the FilamentPHP admin panel and navigate to the Questions menu.

Create a New Question

  1. Click on Create.
  2. Enter the Question Text. Use the LocaleSwitcher to add translations in different languages.
  3. Select the Question Type:
    • Text: The user will provide a free-text answer.
    • Single Choice: The user will select one option.
    • Multiple Choice: The user can select multiple options.
  4. Save the question.

Manage Options

For Single Choice or Multiple Choice questions:

  1. Within the created question, access the Options tab.
  2. Click Create to add a new option.
  3. Enter the Option Text and translations, if applicable.
  4. Optionally, add a Conditional Message in Markdown. This message will be displayed to the user if this option is selected.
  5. Set the Next Question if you want to control the flow based on the user's response.
  6. Save the option.

Defining Conditional Messages

Conditional messages are directly associated with options. When adding a conditional message to an option, it will be displayed to the user when that option is selected.

Controlling the Question Flow

You can define the next question the user will see after selecting a particular option:

  1. In the option creation or editing form, select the Next Question in the corresponding field.
  2. If no next question is defined, the system will follow the default order.

API Endpoints

Submit User Response

URL: /api/onboarding/responses

Method: POST

Parameters:

Request Example:

Response Example:

Get User Responses

URL: /api/onboarding/user-responses

Method: GET

Parameters:

Request Example:

Response Example:

Usage Examples

Basic Onboarding Flow

  1. The user starts the onboarding process.
  2. The application consumes the endpoint to send the user's responses.
  3. The backend returns the next question and any conditional messages.
  4. The frontend displays the question and processes the user's response.
  5. The flow continues until there are no more questions.

Displaying Conditional Messages

Controlling the Flow Based on Responses

License

The OnboardingPackage is licensed under the MIT license.


All versions of onboarding-package with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
laravel/framework Version ^11.0
filament/filament Version ^3.0
spatie/laravel-translatable Version ^6.8
bambolee-digital/translatable-resource-kit Version ^1.0
filament/spatie-laravel-translatable-plugin Version ^3.2
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 bambolee-digital/onboarding-package contains the following files

Loading the files please wait ....