LaravelPackages.net
Acme Inc.
Toggle sidebar
vincent-tarrit/infomaniak-newsletter-laravel

A laravel package to use the newsletter product of infomaniak

10
0
About vincent-tarrit/infomaniak-newsletter-laravel

vincent-tarrit/infomaniak-newsletter-laravel is a Laravel package for a laravel package to use the newsletter product of infomaniak. It currently has 0 GitHub stars and 10 downloads on Packagist. Install it with composer require vincent-tarrit/infomaniak-newsletter-laravel. Discover more Laravel packages by vincent-tarrit or browse all Laravel packages to compare alternatives.

Last updated

A laravel package to use the newsletter product of infomaniak

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This package is under development.

Installation

You can install the package via composer:

composer require vincent-tarrit/infomaniak-newsletter-laravel

You can publish the config file with:

php artisan vendor:publish --tag="infomaniak-newsletter-laravel-config"

This is the contents of the published config file:

return [
    'default_domain_id' => env('INFOMANIAK_NEWSLETTER_DEFAULT_DOMAIN_ID'),
    'client' => env('INFOMANIAK_NEWSLETTER_CLIENT'),
    'secret' => env('INFOMANIAK_NEWSLETTER_SECRET'),
    'test_email' => env('INFOMANIAK_NEWSLETTER_TEST_EMAIL'),
];

Usage

$campaign = Newsletter::campaigns()
  ->make()
  ->subject("test")
  ->content("test")
  ->emailFromName('NAME')
  ->emailFromAddr('username')
  ->lang('fr')
  ->groups([123456])
  ->send();

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

Comments