Download the PHP package basilicom-pimcore-plugin/participation without Composer

On this page you can find all versions of the php package basilicom-pimcore-plugin/participation. 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 participation

Participation Pimcore Plugin

Developer info: Pimcore at basilicom

Synopsis

This Pimcore http://www.pimcore.org plugin simplifies building a site with participations, e.g. raffles.

Method of Operation

A user visiting the /participation-demo-simple page/url gets a form (with a captcha). Upon completing the captcha, filling out the form and submitting it, a new Participation object (key is constructed using time() and a random value) is added to the /participation object folder and an email /participation-confirmation is send to the user. If the User clicks on the confirmation link in the received email, his Participation object is retrieved by looking up the confirmation code and setting the objects isConfirmed property to true. Notes are created the the objects in order to document the individual steps.

The users IP is recorded during object creation / confirmation. Prior to sending the email, the participation object is updated with an extra normalized domain part of the users email address. These properties can later be used for additional/optional fraud detection/prevention.

Motivation

Implementing raffles with participations is a recurring tedious task - prone to making many errors. This plugin tries to use as much "Best Practices" and standard Pimcore features as possible to simplify future implementations.

Installation

Add "basilicom-pimcore-plugin/participation" as a requirement to the composer.json in the toplevel directory of your Pimcore installation.

Example:

{
    "require": {
        "basilicom-pimcore-plugin/participation": "~1.0"
    }
}

Installing the plugin via the Pimcore Extension Manager performs the following steps:

Press the "Configure" button of the Participation plugin from within the Extension Manager and set the config file properties.

Hint: Set demoEnabled to 1 if you want to test the /participation-demo-simple.

You need to apply for / configure a Google Recaptcha widget integration and configure sitekey and secret in the plugin configuration file.

Refer to https://developers.google.com/recaptcha/intro for info on Google Recaptcha.

Customization

The Participation object class can be modified as long as the email field and the fields of the Meta section are kept.

You can change the static route participationConfirmationCheck as long as you keep the name and the code parameter intact.

Change the target folder for storing the Participations by altering the objectFolderPath configuration option.

Change the email document used by altering the emailDocumentPath configuration option.

Provide custom participation confirmation success/failure pages by changing the configuration options confirmationSuccessUrl and confirmationFailureUrl.

For further customization, extend the Manager class and (optionally) one or more of the Confirmation and ReCaptcha classes or implement the corresponding interfaces. You need to register your new Manager class by specifying the full class name in the plugin configuration file.

API Reference

The following interfaces are provided:

Tests

Todo

Contributors

License


All versions of participation with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
pimcore/installer-plugin Version ~1.3
ircmaxell/random-lib Version ^1.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 basilicom-pimcore-plugin/participation contains the following files

Loading the files please wait ...