newsletter
所属分类:建站系统
开发工具:PHP
文件大小:691KB
下载次数:0
上传日期:2018-08-07 06:22:30
上 传 者:
sh-1993
说明: UniNE网站的新闻稿构建工具
(Newsletter building tool for UniNE websites)
文件列表:
CHANGELOG.md (860, 2018-08-07)
CONDUCT.md (2150, 2018-08-07)
LICENSE.md (1129, 2018-08-07)
composer.json (1193, 2018-08-07)
src (0, 2018-08-07)
src\Exceptions (0, 2018-08-07)
src\Exceptions\BadFormatException.php (99, 2018-08-07)
src\Exceptions\CampagneCreationException.php (106, 2018-08-07)
src\Exceptions\CampagneSendException.php (102, 2018-08-07)
src\Exceptions\CampagneUpdateException.php (104, 2018-08-07)
src\Exceptions\ContentCreationException.php (105, 2018-08-07)
src\Exceptions\DeleteUserException.php (100, 2018-08-07)
src\Exceptions\FileUploadException.php (100, 2018-08-07)
src\Exceptions\ListNotSetException.php (100, 2018-08-07)
src\Exceptions\MultiSiteException.php (99, 2018-08-07)
src\Exceptions\SubscribeUserException.php (103, 2018-08-07)
src\Exceptions\TestSendException.php (98, 2018-08-07)
src\Exceptions\UserNotExistException.php (102, 2018-08-07)
src\Facade (0, 2018-08-07)
src\Facade\Campagne.php (321, 2018-08-07)
src\Http (0, 2018-08-07)
src\Http\Controllers (0, 2018-08-07)
src\Http\Controllers\Backend (0, 2018-08-07)
src\Http\Controllers\Backend\CampagneController.php (4856, 2018-08-07)
src\Http\Controllers\Backend\ClipboardController.php (1443, 2018-08-07)
src\Http\Controllers\Backend\ContentController.php (3181, 2018-08-07)
src\Http\Controllers\Backend\EmailController.php (1585, 2018-08-07)
src\Http\Controllers\Backend\ImportController.php (1231, 2018-08-07)
src\Http\Controllers\Backend\ListController.php (3226, 2018-08-07)
src\Http\Controllers\Backend\NewsletterController.php (5185, 2018-08-07)
src\Http\Controllers\Backend\SendController.php (4790, 2018-08-07)
src\Http\Controllers\Backend\StatsController.php (2397, 2018-08-07)
src\Http\Controllers\Backend\SubscriberController.php (6689, 2018-08-07)
src\Http\Controllers\Frontend (0, 2018-08-07)
src\Http\Controllers\Frontend\CampagneController.php (1028, 2018-08-07)
src\Http\Controllers\Frontend\InscriptionController.php (5771, 2018-08-07)
src\Http\Controllers\Frontend\NewsletterController.php (1754, 2018-08-07)
src\Http\Requests (0, 2018-08-07)
... ...
# Newsletter module for laravel 5.2
Newsletter interface builder and send via mailjet api
!!! WARNING work in progress this is a specific package for specific content !!!
## Install
Via Composer
``` bash
$ composer require designpond/newsletter
```
## Require
``` json
"intervention/image": "dev-master",
"inlinestyle/inlinestyle": "1.*",
"maatwebsite/excel": "~2.0.0",
"mailjet/mailjet-apiv3-php": "^1.1"
```
## Usage
This package is used with Laravel 5.2 adn Mailjet API v3
Created for multiple websites of La Faculte de droit de l'Universite de Neuchatel.
The content is meant to be used with arrets, analyse, categories and multi sites
### 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
If you want routes with prefix set it in **env.js** in **newsletter/js**
### 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
```php
@if(isset($isNewsletter))
@include('newsletter::Style.main', ['campagne' => isset($campagne) ? : null])
@include('newsletter::Style.redactor')
@endif
```
Before end of the body
```php
@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
```php
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
You have to Implement ajax routes:
``` php
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
```javascript
// Admin url
window.__env.adminUrl = 'http://dev.local/admin/';
// Base url
window.__env.ajaxUrl = 'http://dev.local/admin/ajax/';
```
### Navigation menu items
+ Newsletters list: build/newsletter
+ Subscribers: build/subscriber
+ Import subscribers: build/import
+ External email lists: build/liste
## Change log
Please see [CHANGELOG](https://github.com/DesignPond/newsletter/blob/master/CHANGELOG.md) for more information what has changed recently.
## Security
If you discover any security related issues, please email cindy.leschaud@gmail.com instead of using the issue tracker.
## Credits
[Cindy Leschaud](https://github.com/DesignPond/newsletter/blob/master/http://www.designpond.ch)
## License
The MIT License (MIT). Please see [License File](https://github.com/DesignPond/newsletter/blob/master/LICENSE.md) for more information.
[link-downloads]: https://packagist.org/packages/designpond/newsletter
[link-author]: https://github.com/DesignPond
近期下载者:
相关文件:
收藏者: