Download the PHP package remp/crm-onboarding-module without Composer

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

CRM Onboarding Module

Translation status @ Weblate

Onboarding module lets you define goals that your users should achieve. The goal is merely a label with flag describing whether it was finished by a user or not.

Once the goal is defined, head to the Scenario builder and create a scenario including "Goal" element. The element can be configured with following properties:

Preview ![Scenario goals overview](docs/scenario_goals.png) ![Scenario goal configuration](docs/scenario_goal_config.png)

Installing module

We recommend using Composer for installation and update management.

Enabling module

Add installed extension to your app/config/config.neon file.

When it's added, generate ACL for newly created module.

At this point you (superadmin) should be able to define new goals via People - Onboarding goals admin menu (/onboarding/onboarding-goals-admin/) and internal API token should have access to the exposed API endpoints.

If you need other roles to access goal definition, you can assign access to roles at People - Admin rights page (/users/admin-group-admin/).

Completing goals

The completion of the goal can differ based on the type of goal. Currently we plan to support two types of goals:

Segments of users with active onboarding goals

Command php bin/command.php application:seed automatically generates segments for an onboarding goals.

Users will be part of the goal's segment if they:

Note: Activation of the onboarding goal for the user should be handled by your module or you can create scenario in ScenariosModule. Scenario which will generate entry for each user which enters scenario's onboarding goal node (handled by Crm\ScenariosModule\Events\OnboardingGoalsCheckEventHandler).

Real-time segments within REMP Campaign

If you are using CRM segments in REMP Campaign, you'll need to enable handler which updates onboarding goal segments' cache in REMP Campaign. Otherwise you'll encounter situations where user completed goal but he still sees campaign's banner (he is part of cached segment).

Note: Module RempCampaignModule has to be installed and enabled.

Add prepared handler into the services part of the config of your module:

And enable listeners for changes to user's onboarding goals in your modules (eg. ExampleModule\ExampleModule.php):

API documentation

All examples use http://crm.press as a base domain. Please change the host to the one you use before executing the examples.

All examples use XXX as a default value for authorization token, please replace it with the real tokens:

API responses can contain following HTTP codes:

Value Description
200 OK Successful response, default value
400 Bad Request Invalid request (missing required parameters)
403 Forbidden The authorization failed (provided token was not valid)
404 Not found Referenced resource wasn't found

If possible, the response includes application/json encoded payload with message explaining the error further.


POST /onboarding-goals/complete

API call completes simple goal for specific user.

Headers:
Name Value Required Description
Authorization Bearer String yes Bearer token.
Body:
Examples:
curl
raw PHP

Response:


GET /onboarding-goals/list

Endpoint to list available all goals.

Headers:
Name Value Required Description
Authorization Bearer String yes Bearer token.
Examples:
curl
raw PHP

Response:


All versions of crm-onboarding-module with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
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 remp/crm-onboarding-module contains the following files

Loading the files please wait ....