PHPackages                             dwr/lottoclient-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. dwr/lottoclient-bundle

ActiveSymfony-bundle[HTTP &amp; Networking](/categories/http)

dwr/lottoclient-bundle
======================

Symfony2 bundle which helps connect to polish lotto server (Totalizator sportowy).

1.0(10y ago)025MITPHP

Since Jul 30Pushed 9y ago1 watchersCompare

[ Source](https://github.com/dariuszwrzesien/DwrLottoClientBundle)[ Packagist](https://packagist.org/packages/dwr/lottoclient-bundle)[ Docs](https://github.com/dariuszwrzesien/DwrLottoClientBundle)[ RSS](/packages/dwr-lottoclient-bundle/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (3)Used By (0)

[![SensioLabsInsight](https://camo.githubusercontent.com/88b37f5093811ca275764439aef3aeb4894ab63192e5755b9c381fbe4388ef60/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f62366130356162662d356263352d346339302d626566612d3461646263393365633131642f6269672e706e67)](https://insight.sensiolabs.com/projects/b6a05abf-5bc5-4c90-befa-4adbc93ec11d)
==================================================================================================================================================================================================================================================================================================================================================================================

[](#)

[![Build Status](https://camo.githubusercontent.com/6ea08f3486e0bdfae1e12436e83cd1a78eca87ed13f2a35ddb2fefdc3a10a5a3/68747470733a2f2f7472617669732d63692e6f72672f6461726975737a77727a657369656e2f4477724c6f74746f436c69656e7442756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/dariuszwrzesien/DwrLottoClientBundle)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/a7973de44c7af42d43bb06f6581101a7dd3c3b055bb77875c700eb3681490ba6/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6461726975737a77727a657369656e2f4477724c6f74746f436c69656e7442756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/dariuszwrzesien/DwrLottoClientBundle/?branch=master)

**DwrLottoClient**
==================

[](#dwrlottoclient)

This bundle helps to take results from polish national lottery

**Installation**
----------------

[](#installation)

Installation is a quick 3 steps process:

1. Download DwrLottoClientBundle using composer.
2. Enable the Bundle.
3. Use bundle in your controller.

### Step 1: Download DwrAvatarBundle using composer

[](#step-1-download-dwravatarbundle-using-composer)

Add DwrGlobalWeatherBundle in your composer.json:

```
{
    "require": {
        "dwr/lottoclient-bundle": "1.0"
    }
}
```

Download the bundle by running the command:

```
$ php composer.phar require dwr/lottoclient-bundle
```

Composer will install the bundle into your project's `vendor/dwr/lottoclient-bundle` directory.

### Step 2: Enable the bundle

[](#step-2-enable-the-bundle)

Enable the bundle in the kernel:

```
//app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Dwr\LottoClientBundle\DwrLottoClientBundle(),
    );
}
```

### Step 3: Use bundle in your controller

[](#step-3-use-bundle-in-your-controller)

```

    use Dwr\LottoClientBundle\Service\LottoClient; //don't forget add this line above class declaration

    /**
     * @Route("/", name="homepage")
     */
    public function indexAction()
    {

        $lotto = $this->get('dwr_lotto_client');
        $resultsDL = $lotto->getRecentlyResults(LottoClient::DUZY_LOTEK, 1); //takes last result from Duży lotek
        $resultsK  = $lotto->getRecentlyResults(LottoClient::KASKADA, 5); //takes 5 recently results from Kaskada

        var_dump($resultsDL);
        var_dump($resultsK);

        $date = new \DateTime('2014-10-10');
        $resultMINI = $lotto->getResultsByDate($date, LottoClient::MINI_LOTEK, 2); //takes 2 recently results from giving date for Mini Lotek
        $resultMULTI = $lotto->getResultsByDate($date, LottoClient::MULTI_LOTEK, 3); //takes 3 recently results from giving date for Multi Lotek

        var_dump($resultMINI);
        var_dump($resultMULTI);

        return $this->render('default/index.html.twig');
    }
```

**Congratulations!** You're ready to embed lotto results in your symfony2 application.

**Usage**
---------

[](#usage)

Add this in your controller:

```
    use Dwr\LottoClientBundle\Service\LottoClient; //don't forget add this line above class declaration

    /**
     * @Route("/", name="homepage")
     */
    public function indexAction()
    {

        $lotto = $this->get('dwr_lotto_client');

        /**
         * In order to take last result from Duży lotek pass 1 as a second argument for getRecentlyResults method.
         * Maximum you can take 10 recently results.
         */
        $resultsDL = $lotto->getRecentlyResults(LottoClient::DUZY_LOTEK, 1);
        var_dump($resultsDL);

        /**
         * In order to take archive results use getResultsByDate method.
         * Specify date (e.g. new \DateTime('2014-10-10')) and pass it as first argument.
         */
        $date = new \DateTime('2014-10-10');
        $resultMINI = $lotto->getResultsByDate($date, LottoClient::MINI_LOTEK, 2);
        var_dump($resultMINI);
    }
```

### **Available lottery types:**

[](#available-lottery-types)

LottoClient::DUZY\_LOTEK
LottoClient::MINI\_LOTEK
LottoClient::MULTI\_LOTEK
LottoClient::JOKER
LottoClient::KASKADA

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~6 days

Total

2

Last Release

3984d ago

Major Versions

0.1 → 1.02015-08-06

### Community

Maintainers

![](https://www.gravatar.com/avatar/a24e233eaf263734817c8e4df43a62de3bdb2a50fe0f980abb433687da362fc2?d=identicon)[dwr](/maintainers/dwr)

---

Top Contributors

[![dariuszwrzesien](https://avatars.githubusercontent.com/u/2975063?v=4)](https://github.com/dariuszwrzesien "dariuszwrzesien (21 commits)")

---

Tags

lottototalizator sportowytotekwyniki lotto

### Embed Badge

![Health badge](/badges/dwr-lottoclient-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/dwr-lottoclient-bundle/health.svg)](https://phpackages.com/packages/dwr-lottoclient-bundle)
```

###  Alternatives

[nelmio/api-doc-bundle

Generates documentation for your REST API from attributes

2.4k67.4M263](/packages/nelmio-api-doc-bundle)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1189.8k](/packages/rcsofttech-audit-trail-bundle)[ahmed-bhs/doctrine-doctor

Runtime analysis tool for Doctrine ORM integrated into Symfony Web Profiler. Unlike static linters, it analyzes actual query execution at runtime to detect performance bottlenecks, security vulnerabilities, and best practice violations during development with real execution context and data.

9410.8k](/packages/ahmed-bhs-doctrine-doctor)[ecotone/symfony-bundle

Ecotone for Symfony — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Symfony Messenger, via PHP attributes.

11249.0k1](/packages/ecotone-symfony-bundle)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k14](/packages/2lenet-crudit-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
