PHPackages                             mstfleri/denetmen-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. [Testing &amp; Quality](/categories/testing)
4. /
5. mstfleri/denetmen-bundle

ActiveLibrary[Testing &amp; Quality](/categories/testing)

mstfleri/denetmen-bundle
========================

Url testing tool for symfony2 projects.

0.1.5(12y ago)501.4k2[1 issues](https://github.com/mustafaileri/DenetmenBundle/issues)MITPHPPHP &gt;=5.3.0

Since Feb 25Pushed 7y ago5 watchersCompare

[ Source](https://github.com/mustafaileri/DenetmenBundle)[ Packagist](https://packagist.org/packages/mstfleri/denetmen-bundle)[ RSS](/packages/mstfleri-denetmen-bundle/feed)WikiDiscussions master Synced yesterday

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

DenetmenBundle [![Build Status](https://camo.githubusercontent.com/05f357f7f274dac3f701931a829c80f3e0671ce3c5c35b1f0eb70a94ad58d2fd/68747470733a2f2f7472617669732d63692e6f72672f6d757374616661696c6572692f44656e65746d656e42756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/mustafaileri/DenetmenBundle)
===============================================================================================================================================================================================================================================================================================================================

[](#denetmenbundle-)

About
-----

[](#about)

Denetmen is a url testing tool for Symfony2 projects via [Guzzle](https://github.com/guzzle/guzzle)

- Test your get url.
- Mock your urls for testing.
- Apply response validators for your result.
- Get email notification when your pages are nor working correctly.

[![Screenshot](https://camo.githubusercontent.com/691154cc2be3421e9121d98ee5d2aed7d071d7f6d485dcfe5dab26ffdd117998/687474703a2f2f692e696d6775722e636f6d2f7753716e7233532e706e67)](https://camo.githubusercontent.com/691154cc2be3421e9121d98ee5d2aed7d071d7f6d485dcfe5dab26ffdd117998/687474703a2f2f692e696d6775722e636f6d2f7753716e7233532e706e67)

Installation
------------

[](#installation)

### For Symfony &gt;= 2.0

[](#for-symfony--20)

Require the bundle in your composer.json file:

```
{
    "require": {
        "mstfleri/denetmen-bundle": "dev-master"
    }
}
```

Install the bundle:

```
$ composer update mstfleri/denetmen-bundle

```

Register the bundle:

```
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        new \Hezarfen\DenetmenBundle\HezarfenDenetmenBundle()
    );
}
```

That's all!

Usage
-----

[](#usage)

Configure your routes in parameters section.

Add denetmen.yml into your config.yml

```
#app/config/config.yml
imports:
    - { resource: denetmen.yml }
    ...

```

### Configuration Parameters

[](#configuration-parameters)

Define excluded routings in excluded segment.

Define general parameters in router\_configs.general segment.

Define parameter by routing key in router\_configs.routing\_key.

```
#app/config/denetmen.yml
parameters:
    denetmen:
        base_url: "http://localhost:8000/"
        excluded:
            - "_wdt"
            - "_profiler"
            - "_configurator"
            - "_acme_demo"
            - "_profiler_info"
        router_configs:
            general:
                id: 1
                name: "Mustafa"

            get_bin_number_routing_key:
                parameters:
                  cardNumber: 1122334455667788

            get_user_routing_key:
                parameters:
                    id: 1

```

For these routings:

```
get_bin_number_routing_key:
    pattern:  /check-bin/{cardNumber}
    defaults: { _controller: YourPaymentBundle:Default:getBinNumber }
    methods:  [GET]

get_user_routing_key:
    pattern:  /user/{id}
    defaults: { _controller: YourUserBundle:Default:getUser }
    methods:  [GET]

```

Url requests will be generated:

```
    [GET] http://localhost:8000/check-bin/1122334455667788
    [GET] http://localhost:8000//user/1

```

### Response Validators

[](#response-validators)

You can define reponse validations

- **type:** You can define response type validator.
- **max\_response\_time:** You can define maximum response time.
- **filter &gt; node\_traversing:** You can define selector and value of selector.

Example:

```
#app/config/denetmen.yml
        ...
        router_configs:
            ...

            get_user_routing_key:
              parameters:
                id: 1
              response:
                type: "text/html; charset=UTF-8"
                filter:
                  node_traversing:
                    - ['body > header >  div > nav > ul > li', 'Content1']
                    - ['body > header > div.top > nav > ul:nth-child(1) > li:nth-child(2) > a', 'Content2']
                  max_response_time: 0.5
            ...
        ...

```

#### How to run?

[](#how-to-run)

```
$app/console  denetmen:run:url-test

```

#### Or you can use regex for routers.

[](#or-you-can-use-regex-for-routers)

You can filter your routes

Example: Filter by starting with "get\_"

```
$app/console  denetmen:run:url-test --pattern='#^get_(.*)$#i'

```

#### Activate email notification:

[](#activate-email-notification)

You can activate email notification when one of your routers has any error.

```
$app/console  denetmen:run:url-test  --alert-email='youremail@yourdomain.com'

```

MIT License
-----------

[](#mit-license)

License can be found [here](https://github.com/mustafaileri/DenetmenBundle/blob/master/LICENSE).

Authors
-------

[](#authors)

The bundle was originally created by [Mustafa İleri](http://blog.mustafaileri.com). See the list of [contributors](https://github.com/mustafaileri/DenetmenBundle/graphs/contributors).

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 91.2% 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 ~4 days

Total

7

Last Release

4435d ago

### Community

Maintainers

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

---

Top Contributors

[![mustafaileri](https://avatars.githubusercontent.com/u/305670?v=4)](https://github.com/mustafaileri "mustafaileri (52 commits)")[![o](https://avatars.githubusercontent.com/u/179912?v=4)](https://github.com/o "o (4 commits)")[![pborreli](https://avatars.githubusercontent.com/u/77759?v=4)](https://github.com/pborreli "pborreli (1 commits)")

---

Tags

testingBDDurltester

### Embed Badge

![Health badge](/badges/mstfleri-denetmen-bundle/health.svg)

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

###  Alternatives

[mockery/mockery

Mockery is a simple yet flexible PHP mock object framework

10.7k497.0M23.6k](/packages/mockery-mockery)[behat/behat

Scenario-oriented BDD framework for PHP

4.0k96.8M2.0k](/packages/behat-behat)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)[phpspec/phpspec

Specification-oriented BDD framework for PHP 7.1+

1.9k36.7M3.1k](/packages/phpspec-phpspec)[orchestra/testbench-core

Testing Helper for Laravel Development

27043.7M310](/packages/orchestra-testbench-core)[php-mock/php-mock

PHP-Mock can mock built-in PHP functions (e.g. time()). PHP-Mock relies on PHP's namespace fallback policy. No further extension is needed.

36918.1M98](/packages/php-mock-php-mock)

PHPackages © 2026

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