Download the PHP package dynamic/silverstripe-user-invitation without Composer

On this page you can find all versions of the php package dynamic/silverstripe-user-invitation. 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 silverstripe-user-invitation

Silverstripe User Invitation

This module adds the ability to invite users to a secure website (e.g. Intranet or Extranet).

CI Sponsors

Latest Stable Version Total Downloads Latest Unstable Version License

Requirements

Installation

Features

Usage

This module enables you to invite users to register on your site. Users can be invited from either:

Frontend Form

CMS Admin Interface

Configuration

Email Configuration

Set a sender address and optional subject override in your app/_config/email.yml:

If from_email is not set, the module falls back to Email.admin_email:

Note: At least one of UserInvitation.from_email or Email.admin_email must be configured. If neither is set, sendInvitation() throws a RuntimeException.

For easy email testing, use: https://mailcatcher.me/

Email Template Override

The invitation email uses two templates: an HTML part and a plain-text fallback.

Template Path
HTML templates/email/UserInvitationEmail.ss
Plain text templates/email/UserInvitationEmail_plain.ss

To customise the email appearance, create theme overrides at:

The following variables are available in both templates:

Variable Description
$InviteeName First name of the person being invited
$InviterName First name of the person who sent the invite
$SiteName Site name from SiteConfig
$AcceptLink Full URL to the invitation acceptance page
$ExpiryDate Human-readable expiry date (e.g. June 30, 2025)
$ExpiryDays Number of days until expiry
$Invite The UserInvitation DataObject

Note: Emails render after Requirements::clear() — do not rely on theme CSS bundles. Inline all styles in custom email templates.

Force Required User Group Assignment

To require group selection when inviting users, add the following to your configuration:

Theme Integration

The accept/registration page (/user/accept/{hash}) renders within your project's theme using a Page fallback. The module's Layout templates are resolved through the standard SilverStripe template hierarchy, so you can override any of them in your theme:

Template Purpose
Layout/Dynamic/SilverStripe/UserInvitations/Control/UserController.ss Invite form (front end)
Layout/Dynamic/SilverStripe/UserInvitations/Control/UserController_accept.ss Registration form
Layout/Dynamic/SilverStripe/UserInvitations/Control/UserController_success.ss Success confirmation
Layout/Dynamic/SilverStripe/UserInvitations/Control/UserController_expired.ss Expired invitation
Layout/Dynamic/SilverStripe/UserInvitations/Control/UserController_notfound.ss Invalid invitation link

Place overrides in themes/<your-theme>/templates/ using the same paths. The Page wrapper (header, navigation, footer, CSS/JS) is provided by your project's Page.ss automatically — you only need to supply the content area.

Note: The module depends only on silverstripe/framework and does not extend PageController. Theme resolution is achieved through the Page fallback in renderWithLayout(). If your project requires deep page-context access (e.g. $SiteConfig, $Navigation), you can still customise templates without any PHP-level changes.

Redirect After Successful User Creation

Set a custom 'BackURL' to redirect users after completing signup from invitation:

Maintainers

Bugtracker

Bugs are tracked in the issues section of this repository. Before submitting an issue please read over existing issues to ensure yours is unique.

If the issue does look like a new bug:

Please report security issues to the module maintainers directly. Please don't file security issues in the bugtracker.

Development and contribution

If you would like to make contributions to the module please ensure you raise a pull request and discuss with the module maintainers.

License

See License


All versions of silverstripe-user-invitation with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
silverstripe/framework Version ^6
silverstripe/siteconfig Version ^6
lekoala/silverstripe-cms-actions Version ^2.0
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 dynamic/silverstripe-user-invitation contains the following files

Loading the files please wait ...