zdrojowa/rodo-module

Rodo

1.0.1 2021-12-16 13:02 UTC

This package is auto-updated.

Last update: 2024-04-16 18:15:45 UTC


README

Latest Version on Packagist Total Downloads Build Status StyleCI

Rodo service

Installation

Via Composer

$ composer require zdrojowa/rodo-module

NPM required:

"intl-tel-input": "^17.0.13",

Usage

  • Add in webpack.mix.js
mix.module('RodoModule', 'vendor/zdrojowa/rodo-module');
  • Add module RodoModule in config/selene.php
'modules' => [
    RodoModule::class,
],

'rodo' => [
        'email' => email,
        'username' => user name for RODO service,
        'password' => password for RODO service,
        'url' => url to RODO service,
        'source' => source in RODO service,
        'mail_title' => Title for email,
        'consents' => [
            'phone' => [id of consent in RODO service],
            'email' => [id of consent in RODO service]
        ]
    ],
  • Add provider RodoModule in config/app.php
'providers' => [
    RodoModuleServiceProvider::class,
],
  • Add translations RodoModule for popup in resources/lang/{lang}/rodo.php
<?php

return [
    'A problem occured' => 'A problem occured',
    'address' => 'Comapny address',
    'after' => 'after',
    'before' => 'before',
    'Choose' => 'Choose',
    'Choose the contact form' => 'Choose the contact form',
    'Correct the field' => 'Correct the field',
    'email' => 'email',
    'Email contact' => 'E-mail contact',
    'message' => 'Message',
    'Message sent successfully' => 'Message sent successfully',
    'Name and Surname' => 'Name & Surname',
    'Our advisor will contact you' => 'Our advisor will contact you',
    'Phone' => 'Phone',
    'phone' => 'phone',
    'Phone contact' => 'Phone contact',
    'Phone in hours' => 'Phone in hours',
    'Phone number' => 'Phone number',
    'phone_link' => 'link to phone',
    'Please try again later or directly' => 'Please try again later or directly',
    'required' => 'Required',
    'send message' => 'Send message',
    'We will contact you' => 'We will contact you',
    'phone_consent' => 'Phone consent',
    'email_consent' => 'Email consent',
];
  • Add in base view to show popup
<link rel="stylesheet" href="{{ asset('vendor/css/RodoModule.css') }}">
@include('RodoModule::popup', ['key' => 'GoogleEnterpriseKey'])
<script src="{{ mix('vendor/js/RodoModule.js') }}"></script>

Change log

Please see the changelog for more information on what has changed recently.

Testing

$ composer test

Contributing

Please see contributing.md for details and a todolist.

Security

If you discover any security related issues, please email author email instead of using the issue tracker.

Credits

License

license. Please see the license file for more information.