PHPackages                             designpond/droit\_newsletter - 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. designpond/droit\_newsletter

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

designpond/droit\_newsletter
============================

Newsletter building tool for main UniNE websites

112PHP

Since Jan 30Pushed 9y ago2 watchersCompare

[ Source](https://github.com/DesignPond/droit_newsletter)[ Packagist](https://packagist.org/packages/designpond/droit_newsletter)[ RSS](/packages/designpond-droit-newsletter/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Newsletter module for laravel 5.2
=================================

[](#newsletter-module-for-laravel-52)

Newsletter interface builder and send via mailjet api

!!! WARNING work in progress this is a specific package for specific content !!!

Install
-------

[](#install)

Via Composer

```
$ composer require designpond/newsletter
```

Require
-------

[](#require)

```
"intervention/image": "dev-master",
"inlinestyle/inlinestyle": "1.*",
"maatwebsite/excel": "~2.0.0",
"mailjet/mailjet-apiv3-php": "^1.1"
```

Usage
-----

[](#usage)

This package is used with Laravel 5.2 adn Mailjet API v3 Created for multiple websites of La Faculté de droit de l'Université de Neuchâtel. The content is meant to be used with arrets, analyse, categories and multi sites

### Configuration

[](#configuration)

- Publish with php artisan vendor:publish

    **Required**

    - Assets --tag=assets
    - Migrations --tag=migrations
    - Seeders --tag=seeds

    **Optionnal**

    - Views --tag=views
    - Master layout --tag=layouts
    - Config --tag=config
- In newsletter.php define building blocs to use if you enable "groupe" you have to enable "arret", both go with another!
- Define the models and files/images paths.
- Add Mailjet credentials to your .env file
- Migrate tables and seed types with **php artisan db:seed --class=TypeSeeder**

### Usage simple

[](#usage-simple)

If you want routes with prefix set it in **env.js** in **newsletter/js**

### Master layout dependencies

[](#master-layout-dependencies)

Javascript and css

- jquery.js v2.2
- jquery-ui.js v1.11
- bootstrap.css v3
- bootstrap.js v3

**Elements to add**

In the head

```
@if(isset($isNewsletter))
    @include('newsletter::Style.main', ['campagne' => isset($campagne) ? : null])
    @include('newsletter::Style.redactor')
@endif
```

Before end of the body

```
@include('newsletter::Script.config')

@if(isset($isNewsletter))
    @include('newsletter::Script.date')
    @include('newsletter::Script.redactor')
    @include('newsletter::Script.angular')
    @include('newsletter::Script.datatables')
    @include('newsletter::Script.main')
@endif
```

You have to implement upload routes for wysiwyg redactor.js

```
Route::post('uploadRedactor', 'UploadController@uploadRedactor');
Route::post('uploadJS', 'UploadController@uploadJS');
Route::get('imageJson/{id?}', ['uses' => 'UploadController@imageJson']);
Route::get('fileJson/{id?}', ['uses' => 'UploadController@fileJson']);
```

### Usage with Arrets and Categories

[](#usage-with-arrets-and-categories)

You have to Implement ajax routes:

```
Route::get('arret/{id}', 'ArretController@simple'); // build.js
Route::get('arrets/{id?}',     'ArretController@arrets'); // build.js
Route::get('categories/{id?}', 'CategorieController@categories'); // utils.js
```

And configure the path to you routes for angular`in newsletter/js/env.js

```
// Admin url
window.__env.adminUrl = 'http://dev.local/admin/';
// Base url
window.__env.ajaxUrl = 'http://dev.local/admin/ajax/';
```

### Navigation menu items

[](#navigation-menu-items)

- Newsletters list: build/newsletter
- Subscribers: build/subscriber
- Import subscribers: build/import
- External email lists: build/liste

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

[Cindy Leschaud](http://www.designpond.ch)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

[![DesignPond](https://avatars.githubusercontent.com/u/1563826?v=4)](https://github.com/DesignPond "DesignPond (134 commits)")

### Embed Badge

![Health badge](/badges/designpond-droit-newsletter/health.svg)

```
[![Health](https://phpackages.com/badges/designpond-droit-newsletter/health.svg)](https://phpackages.com/packages/designpond-droit-newsletter)
```

###  Alternatives

[stuttter/wp-multi-network

Provides a Network Management Interface for global administrators in WordPress Multisite installations.

23324.1k1](/packages/stuttter-wp-multi-network)[jtgrimes/less4laravel

Bringing lessphp into Laravel

193.4k](/packages/jtgrimes-less4laravel)[xandros15/slim-pagination

simple pagination for slim3

118.0k](/packages/xandros15-slim-pagination)

PHPackages © 2026

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