Skip to content

Commit

Permalink
webtrees 2.0 support
Browse files Browse the repository at this point in the history
  • Loading branch information
UksusoFF committed Dec 29, 2019
1 parent 59e45a3 commit e0d8451
Show file tree
Hide file tree
Showing 24 changed files with 11,789 additions and 142 deletions.
11 changes: 11 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
* text=auto
* text eol=lf
*.gif -text diff
*.ico -text diff
*.jpg -text diff
*.png -text diff
*.ttf binary
*.eot binary
*.woff binary
*.woff2 binary
*.mp4 binary
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/node_modules/*
/mix-manifest.json
/vendor/*
7 changes: 7 additions & 0 deletions .php_cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

$config = \UksusoFF\PhpCsFixer\Factory::fromRuleSet(new \UksusoFF\PhpCsFixer\RuleSet\Laravel());

$config->getFinder()->in(__DIR__);

return $config;
22 changes: 10 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,16 @@

This module send message with list of the anniversaries that occur today.

Tested with 1.7.9 version.
## System requirements
Same as [webtrees#system-requirements](https://github.com/fisharebest/webtrees#system-requirements) and cron.

Tested with 2.0 version.

## Installation
1. Download the [latest release](https://github.com/UksusoFF/webtrees-todays_events_message/releases/latest).
2. Upload the downloaded file to your webserver.
3. Unzip the package into your `webtrees/modules_v3` directory.
4. Rename the folder to `todays_events_message`.
5. Go to the control panel (admin section) => Module administration => Enable the `Today Events Message` module and save your settings.
6. [Config cron task](https://www.google.ru/search?ie=UTF-8&hl=ru&q=how%20to%20config%20cron%20task&gws_rd=ssl) for execute module action url for eg:
```
0 0 * * * wget -O - -q http://YOUR_WEBTREES_URL/module.php?mod=todays_events_message
```

## Todo
* Admin interface with settings
1. Upload the downloaded file to your webserver.
1. Unzip the package into your `webtrees/modules_v4` directory.
1. Rename the folder to `reminder`.
1. Go to the control panel (admin section) => Module administration => Enable the `Reminder` module and save your settings.
1. [Config cron task](https://www.google.ru/search?ie=UTF-8&hl=ru&q=how%20to%20config%20cron%20task&gws_rd=ssl) for execute module action url.
You can find this url in module config page.
7 changes: 7 additions & 0 deletions autoload.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

use Composer\Autoload\ClassLoader;

$loader = new ClassLoader();
$loader->addPsr4('UksusoFF\\WebtreesModules\\Reminder\\', __DIR__ . '/src');
$loader->register();
20 changes: 20 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.16",
"uksusoff/php-cs-fixer-config": "^0.1.0"
},
"config": {
"sort-packages": true
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/UksusoFF/php-cs-fixer-config"
}
],
"scripts": {
"cs:fix": [
"vendor/bin/php-cs-fixer fix . --config=.php_cs --allow-risky=yes"
]
}
}
Loading

0 comments on commit e0d8451

Please sign in to comment.