├── .gitignore ├── README.md ├── composer.json ├── phpunit.xml.dist ├── src ├── NotifiableInterface.php ├── NotifiableTrait.php ├── NotificationInterface.php ├── NotificationTrait.php ├── Notifier.php ├── behaviors │ ├── NotifiableBehavior.php │ └── ReadableBehavior.php ├── channels │ ├── ActiveRecordChannel.php │ ├── ChannelInterface.php │ ├── MailChannel.php │ ├── SlackChannel.php │ ├── TelegramChannel.php │ └── TwilioChannel.php ├── events │ └── NotificationEvent.php ├── messages │ ├── AbstractMessage.php │ ├── DatabaseMessage.php │ ├── MailMessage.php │ ├── SlackMessage.php │ ├── SmsMessage.php │ └── TelegramMessage.php ├── migrations │ ├── m180824_090744_create_notification_table.php │ └── m181112_171335_add_data_column.php └── models │ └── Notification.php └── tests ├── ActiveRecordChannelTest.php ├── MailChannelTest.php ├── NotifierTest.php ├── SlackChannelTest.php ├── TelegramChannelTest.php ├── TestCase.php ├── TwilioChannelTest.php └── bootstrap.php /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuyakhov/yii2-notifications/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuyakhov/yii2-notifications/HEAD/README.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuyakhov/yii2-notifications/HEAD/composer.json -------------------------------------------------------------------------------- /phpunit.xml.dist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuyakhov/yii2-notifications/HEAD/phpunit.xml.dist -------------------------------------------------------------------------------- /src/NotifiableInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuyakhov/yii2-notifications/HEAD/src/NotifiableInterface.php -------------------------------------------------------------------------------- /src/NotifiableTrait.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuyakhov/yii2-notifications/HEAD/src/NotifiableTrait.php -------------------------------------------------------------------------------- /src/NotificationInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuyakhov/yii2-notifications/HEAD/src/NotificationInterface.php -------------------------------------------------------------------------------- /src/NotificationTrait.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuyakhov/yii2-notifications/HEAD/src/NotificationTrait.php -------------------------------------------------------------------------------- /src/Notifier.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuyakhov/yii2-notifications/HEAD/src/Notifier.php -------------------------------------------------------------------------------- /src/behaviors/NotifiableBehavior.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuyakhov/yii2-notifications/HEAD/src/behaviors/NotifiableBehavior.php -------------------------------------------------------------------------------- /src/behaviors/ReadableBehavior.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuyakhov/yii2-notifications/HEAD/src/behaviors/ReadableBehavior.php -------------------------------------------------------------------------------- /src/channels/ActiveRecordChannel.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuyakhov/yii2-notifications/HEAD/src/channels/ActiveRecordChannel.php -------------------------------------------------------------------------------- /src/channels/ChannelInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuyakhov/yii2-notifications/HEAD/src/channels/ChannelInterface.php -------------------------------------------------------------------------------- /src/channels/MailChannel.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuyakhov/yii2-notifications/HEAD/src/channels/MailChannel.php -------------------------------------------------------------------------------- /src/channels/SlackChannel.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuyakhov/yii2-notifications/HEAD/src/channels/SlackChannel.php -------------------------------------------------------------------------------- /src/channels/TelegramChannel.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuyakhov/yii2-notifications/HEAD/src/channels/TelegramChannel.php -------------------------------------------------------------------------------- /src/channels/TwilioChannel.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuyakhov/yii2-notifications/HEAD/src/channels/TwilioChannel.php -------------------------------------------------------------------------------- /src/events/NotificationEvent.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuyakhov/yii2-notifications/HEAD/src/events/NotificationEvent.php -------------------------------------------------------------------------------- /src/messages/AbstractMessage.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuyakhov/yii2-notifications/HEAD/src/messages/AbstractMessage.php -------------------------------------------------------------------------------- /src/messages/DatabaseMessage.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuyakhov/yii2-notifications/HEAD/src/messages/DatabaseMessage.php -------------------------------------------------------------------------------- /src/messages/MailMessage.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuyakhov/yii2-notifications/HEAD/src/messages/MailMessage.php -------------------------------------------------------------------------------- /src/messages/SlackMessage.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuyakhov/yii2-notifications/HEAD/src/messages/SlackMessage.php -------------------------------------------------------------------------------- /src/messages/SmsMessage.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuyakhov/yii2-notifications/HEAD/src/messages/SmsMessage.php -------------------------------------------------------------------------------- /src/messages/TelegramMessage.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuyakhov/yii2-notifications/HEAD/src/messages/TelegramMessage.php -------------------------------------------------------------------------------- /src/migrations/m180824_090744_create_notification_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuyakhov/yii2-notifications/HEAD/src/migrations/m180824_090744_create_notification_table.php -------------------------------------------------------------------------------- /src/migrations/m181112_171335_add_data_column.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuyakhov/yii2-notifications/HEAD/src/migrations/m181112_171335_add_data_column.php -------------------------------------------------------------------------------- /src/models/Notification.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuyakhov/yii2-notifications/HEAD/src/models/Notification.php -------------------------------------------------------------------------------- /tests/ActiveRecordChannelTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuyakhov/yii2-notifications/HEAD/tests/ActiveRecordChannelTest.php -------------------------------------------------------------------------------- /tests/MailChannelTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuyakhov/yii2-notifications/HEAD/tests/MailChannelTest.php -------------------------------------------------------------------------------- /tests/NotifierTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuyakhov/yii2-notifications/HEAD/tests/NotifierTest.php -------------------------------------------------------------------------------- /tests/SlackChannelTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuyakhov/yii2-notifications/HEAD/tests/SlackChannelTest.php -------------------------------------------------------------------------------- /tests/TelegramChannelTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuyakhov/yii2-notifications/HEAD/tests/TelegramChannelTest.php -------------------------------------------------------------------------------- /tests/TestCase.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuyakhov/yii2-notifications/HEAD/tests/TestCase.php -------------------------------------------------------------------------------- /tests/TwilioChannelTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuyakhov/yii2-notifications/HEAD/tests/TwilioChannelTest.php -------------------------------------------------------------------------------- /tests/bootstrap.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuyakhov/yii2-notifications/HEAD/tests/bootstrap.php --------------------------------------------------------------------------------