Download the PHP package tourze/lottery-bundle without Composer

On this page you can find all versions of the php package tourze/lottery-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 lottery-bundle

Lottery Bundle

中文

Latest Version
Total Downloads
PHP Version
License
Build Status
Coverage

A comprehensive lottery system bundle for Symfony applications featuring multiple lottery types, advanced prize pool management, chance control, and automated prize distribution.

Table of Contents

Features

Installation

Requirements

Install via Composer

Quick Start

Bundle Registration

Add to config/bundles.php:

Database Setup

Configuration

The bundle provides flexible configuration through:

Console Commands

lottery:check-expire-chance

Checks and processes expired lottery chances. This command runs every minute via cron job.

Purpose: Automatically marks expired chances as invalid and triggers expire events for cleanup.

lottery:check-review-chance-send-prize

Processes reviewed chances and sends prizes to winners. This command runs every hour at 43 minutes.

Purpose: Automatically sends prizes to users whose chances have been reviewed and approved.

JSON-RPC API

The bundle exposes JSON-RPC procedures for external integrations:

Lottery Operations

User Management

Prize Information

System Architecture

The lottery system implements a robust workflow with concurrent safety:

  1. Activity Validation - Verify lottery timing, status, and participation eligibility
  2. Chance Authentication - Validate user's available chances with database locking
  3. Chance Pre-deduction - Atomically reserve chances to prevent overselling
  4. Pool Selection - Dynamic pool determination based on configurable rules
  5. Prize Algorithm - Probability-based prize selection with stock management
  6. Result Confirmation - Transactional commit with event dispatching
  7. Prize Distribution - Automated or manual prize fulfillment process

Event System

Extensive event system for business logic customization:

Core Events

Customization Events

Advanced Usage

Custom Event Subscribers

Extend lottery functionality with event subscribers:

Expression Language

Implement complex business rules with expression language:

External Integration

Integrate with external systems via JSON-RPC:

Contributing

Please see CONTRIBUTING.md for details.

License

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


All versions of lottery-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
ext-mbstring Version *
cloned/luckybox Version ^0.9
doctrine/collections Version ^2.3
doctrine/common Version ^3.5
doctrine/data-fixtures Version ^2.0
doctrine/dbal Version ^4.0
doctrine/doctrine-bundle Version ^2.13
doctrine/doctrine-fixtures-bundle Version ^4.0
doctrine/orm Version ^3.0
doctrine/persistence Version ^3.1 || ^4
easycorp/easyadmin-bundle Version ^4
fakerphp/faker Version ^1.23
knplabs/knp-menu Version ^3.7
nesbot/carbon Version ^2.72 || ^3
psr/log Version ^3|^2|^1
symfony/config Version ^6.4
symfony/console Version ^6.4
symfony/dependency-injection Version ^6.4
symfony/doctrine-bridge Version ^6.4
symfony/event-dispatcher Version ^6.4
symfony/event-dispatcher-contracts Version ^2.5 | ^3
symfony/expression-language Version ^6.4
symfony/framework-bundle Version ^6.4
symfony/http-foundation Version ^6.4
symfony/http-kernel Version ^6.4
symfony/messenger Version ^6.4
symfony/routing Version ^6.4
symfony/security-bundle Version ^6.4
symfony/security-core Version ^6.4
symfony/security-http Version ^6.4
symfony/serializer Version ^6.4
symfony/yaml Version ^6.4 || ^7.1
tourze/arrayable Version 0.0.*
tourze/async-contracts Version 0.0.*
tourze/backtrace-helper Version 0.1.*
tourze/benifit-bundle Version 0.0.*
tourze/bundle-dependency Version 0.0.*
tourze/doctrine-helper Version 0.0.*
tourze/doctrine-indexed-bundle Version 0.0.*
tourze/doctrine-ip-bundle Version 0.0.*
tourze/doctrine-precision-bundle Version 0.1.*
tourze/doctrine-snowflake-bundle Version 0.1.*
tourze/doctrine-timestamp-bundle Version 0.0.*
tourze/doctrine-track-bundle Version 0.1.*
tourze/doctrine-user-bundle Version 0.0.*
tourze/easy-admin-menu-bundle Version 0.1.*
tourze/enum-extra Version 0.1.*
tourze/json-rpc-cache-bundle Version 0.1.*
tourze/json-rpc-core Version 0.0.*
tourze/json-rpc-http-endpoint-bundle Version 0.1.*
tourze/json-rpc-lock-bundle Version 0.1.*
tourze/json-rpc-log-bundle Version 0.1.*
tourze/lock-service-bundle Version 0.1.*
tourze/resource-manage-bundle Version 0.1.*
tourze/symfony-cron-job-bundle Version 0.1.*
tourze/symfony-ecol-bundle Version 0.1.*
tourze/symfony-routing-auto-loader-bundle Version 0.0.*
tourze/text-manage-bundle Version 0.0.*
tourze/user-event-bundle Version 0.0.*
tourze/user-id-bundle Version 0.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 tourze/lottery-bundle contains the following files

Loading the files please wait ...