Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/black-lamp/yii2-newsletter
Module for subscribe on newsletter
https://github.com/black-lamp/yii2-newsletter
black-lamp php yii-extension yii2
Last synced: 9 days ago
JSON representation
Module for subscribe on newsletter
- Host: GitHub
- URL: https://github.com/black-lamp/yii2-newsletter
- Owner: black-lamp
- License: bsd-3-clause
- Created: 2016-11-18T20:48:57.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-29T21:15:06.000Z (almost 8 years ago)
- Last Synced: 2024-11-19T09:17:16.820Z (2 months ago)
- Topics: black-lamp, php, yii-extension, yii2
- Language: PHP
- Size: 52.7 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Newsletter module for Yii2
==========================
Module for subscribe on newsletter by e-mail or phone number[![Build Status](https://travis-ci.org/black-lamp/yii2-newsletter.svg?branch=master)](https://travis-ci.org/black-lamp/yii2-newsletter)
[![Latest Stable Version](https://poser.pugx.org/black-lamp/yii2-newsletter/v/stable)](https://packagist.org/packages/black-lamp/yii2-newsletter)
[![Latest Unstable Version](https://poser.pugx.org/black-lamp/yii2-newsletter/v/unstable)](https://packagist.org/packages/black-lamp/yii2-newsletter)
[![License](https://poser.pugx.org/black-lamp/yii2-newsletter/license)](https://packagist.org/packages/black-lamp/yii2-newsletter)Installation
------------
#### Run command
```
composer require black-lamp/yii2-newsletter
```
or add
```json
"black-lamp/yii2-newsletter": "2.*.*"
```
to the require section of your composer.json.
#### Applying migrations
```
yii migrate --migrationPath=@vendor/black-lamp/yii2-newsletter/common/migrations
```
#### Add modules to application config
Frontend module for subscriptions
```php
'modules' => [
// ...
'newsletter' => [
'class' => bl\newsletter\frontend\Newsletter::className()
],
]
```
Backend module for control of list of the clients
```php
'modules' => [
// ...
'newsletter' => [
'class' => bl\newsletter\backend\Newsletter::className()
],
]
```