PHPackages                             designpond/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/newsletter

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

designpond/newsletter
=====================

Newsletter building tool for UniNE websites

1234PHP

Since Aug 7Pushed 7y ago2 watchersCompare

[ Source](https://github.com/DesignPond/newsletter)[ Packagist](https://packagist.org/packages/designpond/newsletter)[ RSS](/packages/designpond-newsletter/feed)WikiDiscussions master Synced 3w 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

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 97.7% 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://avatars.githubusercontent.com/u/1563826?v=4)[DesignPond](/maintainers/DesignPond)[@DesignPond](https://github.com/DesignPond)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[umpirsky/transliterator

Transliterator is a PHP library for text transliteration.

60188.2k1](/packages/umpirsky-transliterator)[paulredmond/html-to-amp

A PHP Library to Convert HTML to AMP HTML

6826.0k](/packages/paulredmond-html-to-amp)[caouecs/sirtrevorjs

Sir Trevor JS in Laravel project

5421.6k](/packages/caouecs-sirtrevorjs)[jordanmiguel/laravel-popular

A Laravel package to track popularity of entries(by Models) in a website at a certain time.

649.9k1](/packages/jordanmiguel-laravel-popular)

PHPackages © 2026

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