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: 5 months 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 (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-29T21:15:06.000Z (over 8 years ago)
- Last Synced: 2025-01-11T06:13:09.384Z (6 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[](https://travis-ci.org/black-lamp/yii2-newsletter)
[](https://packagist.org/packages/black-lamp/yii2-newsletter)
[](https://packagist.org/packages/black-lamp/yii2-newsletter)
[](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()
],
]
```