PHPackages                             cedricziel/l5-shariff - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. cedricziel/l5-shariff

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

cedricziel/l5-shariff
=====================

Utilize Heise Shariff to protect your users' privacy while having a ready to go share-button solution

0.1.1(10y ago)2571MITPHP

Since Jan 8Pushed 10y ago1 watchersCompare

[ Source](https://github.com/cedricziel/l5-shariff)[ Packagist](https://packagist.org/packages/cedricziel/l5-shariff)[ RSS](/packages/cedricziel-l5-shariff/feed)WikiDiscussions master Synced 3w ago

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

Laravel 5 Backend for Heise Shariff
===================================

[](#laravel-5-backend-for-heise-shariff)

[![Dependency Status](https://camo.githubusercontent.com/f055654ee0463f856b644187504fc07dd47af949e22dfc8664d215d6ae7c8adc/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3536613738306232376530336337303033626133666634382f62616467652e7376673f7374796c653d666c6174)](https://www.versioneye.com/user/projects/56a780b27e03c7003ba3ff48)

This package allows privacy-enabled share buttons on your site. With most sharing button solutions, the user pays with its privacy to be able to share or even view the share buttons.

With the Heise Shariff, the application backend acts on the users behalf.

**Note: This package is a backend to [the original frontend package](https://github.com/heiseonline/shariff)and doesn't contain any frontend code.**

Features
--------

[](#features)

As of today, Shariff supports the following services:

- AddThis
- Facebook
- Flattr
- GooglePlus
- LinkedIn
- Pinterest
- Reddit
- StumbleUpon
- Xing

Please see the up-to-date list on the [Shariff Page](https://github.com/heiseonline/shariff-backend-php#supported-services).

This add-on also plugs into the standard laravel cache, so you dont have to worry too much about load.

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

[](#installation)

Install the package:

```
composer require cedricziel/l5-shariff
```

Add the service provider to your application configuration in `config/app.php`:

```
    CedricZiel\L5Shariff\ShariffServiceProvider::class
```

Configuration
-------------

[](#configuration)

The ServiceProvider registers a default `shariff` route, so you can use it without any additional modifications.

Per default, the route to the shariff service is `/_shariff`. You override it, by simply overriding the route definition given in `src/routes.php` in your own `routes.php`.

Frontend assets
---------------

[](#frontend-assets)

[Shariff](https://github.com/heiseonline/shariff) is available via NPM.

Installation:

```
npm install shariff --save
```

Include the css from the npm package into your SCSS stylesheet:

```
@import "node_modules/shariff/build/shariff.complete";
```

Include the JavaScript to your JavaScript file `resources/assets/scripts/app.js` with browserify:

```
var Shariff = require('shariff/src/js/shariff');
jQuery(document).ready(function ($) {
    App.init();
    var buttonsContainer = $('.shariff-init');
    new Shariff(buttonsContainer);
});
```

To override config options, you can put them in an object hash as second constructor argument:

```
new Shariff(buttonsContainer, {
    orientation: 'vertical'
});
```

For an overview of the available options, please have a look at the [original reference](https://github.com/heiseonline/shariff#options-data-attributes).

If you use different asset files than the standard ones mentioned, you probably know what to do :)

Usage
-----

[](#usage)

You can easily display the buttons by including a blade template and pass some options.

Allowed options are:

- theme (color|grey) Default: `grey`
- url Default: current url
- layout (horizontal|vertical) Default: `horizontal`
- services Default: `[&quot;whatsapp&quot;,&quot;facebook&quot;,&quot;twitter&quot;,&quot;googleplus&quot;,&quot;mail&quot;]`
- title Default: `Here is something I wanted to share with you!`

```
@include('shariff', ['shariff_opts' => ['url' => 'http://..', 'layout' => 'horizontal', 'title' => 'Cool title!']])
```

Or:

```
@include('shariff::buttons', ['shariff_opts' => ['theme' => 'color']])
```

TODO: Add helper

Advanced
--------

[](#advanced)

You can publish the the config and the templates and customize / override them when needed.

```
# To publish the config (`config_path('shariff.php')`)
php artisan vendor:publish --provider="CedricZiel\L5Shariff\ShariffServiceProvider" --tag="config"

# To publish the views for you to customize (`resource_path('views/vendor/shariff')`)
php artisan vendor:publish --provider="CedricZiel\L5Shariff\ShariffServiceProvider" --tag="views"
```

License
-------

[](#license)

The MIT License. Cedric Ziel

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 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 ~2 days

Total

2

Last Release

3819d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2ac8297e12671d91305ec01ab56add8cb141fa82d678ba96f0012eeb7f88ea0c?d=identicon)[cedricziel](/maintainers/cedricziel)

---

Top Contributors

[![cedricziel](https://avatars.githubusercontent.com/u/418970?v=4)](https://github.com/cedricziel "cedricziel (14 commits)")

---

Tags

laravellaravel5shareprivacy

### Embed Badge

![Health badge](/badges/cedricziel-l5-shariff/health.svg)

```
[![Health](https://phpackages.com/badges/cedricziel-l5-shariff/health.svg)](https://phpackages.com/packages/cedricziel-l5-shariff)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[propaganistas/laravel-disposable-email

Disposable email validator

6012.9M7](/packages/propaganistas-laravel-disposable-email)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k14.1M122](/packages/laravel-pulse)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[flarum/core

Delightfully simple forum software.

201.4M2.2k](/packages/flarum-core)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

19253.0k3](/packages/interaction-design-foundation-laravel-geoip)

PHPackages © 2026

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