PHPackages                             netinfluence/secure-display-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. [Mail &amp; Notifications](/categories/mail)
4. /
5. netinfluence/secure-display-bundle

AbandonedSymfony-bundle[Mail &amp; Notifications](/categories/mail)

netinfluence/secure-display-bundle
==================================

NetinfluenceSecureDisplayBundle is a small simple bundle which protect emails and phone numbers behine encryption and JavaScript

2.1.0(7y ago)4858MITPHPPHP &gt;=5.6

Since Apr 14Pushed 7y ago1 watchersCompare

[ Source](https://github.com/netinfluence/SecureDisplayBundle)[ Packagist](https://packagist.org/packages/netinfluence/secure-display-bundle)[ RSS](/packages/netinfluence-secure-display-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (5)Versions (13)Used By (0)

SecureDisplayBundle
===================

[](#securedisplaybundle)

NetinfluenceSecureDisplayBundle is a small simple bundle which protect emails, phone numbers and any text you want from spam bot, by using encryption, ajax and JavaScript.

[![SensioLabsInsight](https://camo.githubusercontent.com/9b6d95920c825b19175af5b14eff5bc5031e1296bbe3c0e84708984309a12c4d/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f36636339313437322d353931362d343462372d623566372d3838366536313035653862642f6269672e706e67)](https://insight.sensiolabs.com/projects/6cc91472-5916-44b7-b5f7-886e6105e8bd)[![knpbundles.com](https://camo.githubusercontent.com/918aa6f9a9a59f48266cdc2174b09344e7905e09deb2919e01cfbb97360fb74f/687474703a2f2f6b6e7062756e646c65732e636f6d2f6e6574696e666c75656e63652f536563757265446973706c617942756e646c652f6261646765)](http://knpbundles.com/netinfluence/SecureDisplayBundle)[![Build Status](https://camo.githubusercontent.com/afc9fcec2ab51455d9d0b502a25878197795b91240aabce2d275b5241bf39c77/68747470733a2f2f7472617669732d63692e6f72672f6e6574696e666c75656e63652f536563757265446973706c617942756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/netinfluence/SecureDisplayBundle)

Requirements
------------

[](#requirements)

Before installing this bundle, you need to have a working installation of [FOSJsRoutingBundle](https://github.com/FriendsOfSymfony/FOSJsRoutingBundle).

Version 1.x is compatible with Symfony 2 *(2.3 - 2.8)*, version 2.x are compatible with Symfony 2.8, 3.x and 4.x
Code is tested on PHP 5.6 and PHP 7.0 to PHP 7.3

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

[](#installation)

### Step 1: Composer

[](#step-1-composer)

First you need to add `netinfluence/secure-display-bundle` to `composer.json`:

```
{
   "require": {
        "netinfluence/secure-display-bundle": "dev-master"
    }
}
```

note: replace `dev-master` with the last version of this bundle.

### Step 2: AppKernel

[](#step-2-appkernel)

Register the bundle into the Symfony AppKernel

```
// app/AppKernel.php

class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            ...
            new Netinfluence\SecureDisplayBundle\NetinfluenceSecureDisplayBundle()
        );

        return $bundles;
    }
}
```

### Step 3: Config

[](#step-3-config)

Define the configuration of the bundle into the config file

```
# app/config/config.yml
netinfluence_secure_display:
    # Required, key used to encrypt data
    key: "my_super_random_secure_key"
    # Optional, you can customize used template here
    template: 'NetinfluenceSecureDisplayBundle::secure_display.html.twig'
```

### Step 4: Routing

[](#step-4-routing)

Register the routing of the bundle to be able to perform ajax requests

```
# app/config/routing.yml
netinfluence_secure_display:
    resource: "@NetinfluenceSecureDisplayBundle/Resources/config/routing.yml"
    prefix:   /
```

### Step 5: Assets

[](#step-5-assets)

Publish the assets to be able to use the javascript file

```
$ php app/console assets:install --symlink web
```

Add this line in your layout:

```

```

Declaration
-----------

[](#declaration)

```
{{ some.data|secureDisplay(label, action, attributes) }}
```

parameters

- label: optional
    - type: string
    - value: text to display if the javascript is not enabled
- action: optional
    - type: string
    - value: action to append before the link (like "**tel**:012 345 67" or "**mailto**:")
- attributes: optional
    - type: array
    - value: html attributes to add to the text

Usage
-----

[](#usage)

```
Here are my personal informations

{# Default usage #}
My name is : {{ contact.name|secureDisplay }}

{# Custom label when JavaScript is not enabled #}
You can find me at : {{ contact.address|secureDisplay('this address is protected') }}

{# Transform phone number into clicable link #}
{# Can be 'tel', 'mailto', whatever you want #}
My phone number is : {{ contact.phoneNumber|secureDisplay(null, 'tel') }}

{# Custom html attributes #}
My favorite color is : {{ contact.color|secureDisplay(null, null, { 'style': 'color: red' }) }}
```

Of course, you can mix any of these tree parameters as you want.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~130 days

Recently: every ~355 days

Total

12

Last Release

2618d ago

Major Versions

1.1.6 → 2.0.02019-03-08

PHP version history (2 changes)1.0.0PHP &gt;=5.3.3

2.0.0PHP &gt;=5.6

### Community

Maintainers

![](https://www.gravatar.com/avatar/4ef8b4c0477a55476439ef9ca2137381932f5673c49c644d41ab595e53ccf19c?d=identicon)[blaazzze](/maintainers/blaazzze)

---

Top Contributors

[![mbarbey](https://avatars.githubusercontent.com/u/11939315?v=4)](https://github.com/mbarbey "mbarbey (14 commits)")[![romaricdrigon](https://avatars.githubusercontent.com/u/919405?v=4)](https://github.com/romaricdrigon "romaricdrigon (14 commits)")

---

Tags

emailphonesecurenetinfluence

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/netinfluence-secure-display-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/netinfluence-secure-display-bundle/health.svg)](https://phpackages.com/packages/netinfluence-secure-display-bundle)
```

###  Alternatives

[sylius/mailer-bundle

Mailers and e-mail template management for Symfony projects.

728.1M77](/packages/sylius-mailer-bundle)[dachcom-digital/emailizr

Pimcore Emailizr - create html emails the right way!

17370.2k4](/packages/dachcom-digital-emailizr)[azine/mailgunwebhooks-bundle

Symfony2 Bundle to easily capture feedback from mailgun.com via their provided webhooks

104.1k](/packages/azine-mailgunwebhooks-bundle)

PHPackages © 2026

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