zdrojowa / rodo-module
Rodo
Installs: 16
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Language:Blade
Requires
Requires (Dev)
- mockery/mockery: ^1.1
- orchestra/testbench: ~3.0
- phpunit/phpunit: ~7.0
- sempro/phpunit-pretty-print: ^1.0
README
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.