Update phing build script to use composer installation only
[bdrem.git] / data / bdrem.config.php.dist
index 7af4ed0dc4f3e5907a311f29e3427a4df2f3b0dd..55dbe81fdd519af71ad1fe354205107e04a98854 100644 (file)
@@ -1,28 +1,67 @@
 <?php
 //source: birthday file
-$source = array('Bdf', '/path/to/birthday.bdf');
+$source = ['Bdf', '/path/to/birthday.bdf'];
+
+//Source: CSV file (simple)
+$source = ['Csv', '/path/to/file.csv'];
+
+//Source: CSV file (complex)
+$source = [
+    'Csv',
+    [
+        'filename' => '/path/to/file.csv',
+        'columns' => [
+            'name'  => 0,
+            'event' => 1,
+            'date'  => 2
+        ],
+        'firstLineIsHeader' => true,
+        'defaultEvent' => 'Birthday',
+        'separator' => ',',
+    ]
+];
 
 //Source: SQL database
-$source = array(
+$source = [
     'Sql',
-    array(
+    [
         'dsn' => 'mysql:dbname=bdrem;host=127.0.0.1',
         'user' => 'FIXME',
         'password' => 'FIXME',
         'table' => 'contacts',
-        'fields' => array(
-            'date' => array(
+        'fields' => [
+            'date' => [
                 //column name => event title
                 'c_birthday' => 'Birthday'
-            ),
-            //column with name
-            'name' => 'c_name'
-        )
-    )
-);
+            ],
+            //column with name, or array with column names
+            'name' => ['c_name'],
+            //sprintf-compatible name formatting instruction
+            'nameFormat' => '%s',
+        ]
+    ]
+];
+
+//Source: LDAP
+$source = [
+    'Ldap',
+    [
+        'host'   => 'ldap.example.org',
+        'basedn' => 'ou=adressbuch,dc=example,dc=org',
+        'binddn' => 'cn=FIXME,ou=users,dc=example,dc=org',
+        'bindpw' => 'FIXME'
+    ]
+];
 
+//Source: Directory of .vcf vCard files (2 subfolder levels supported)
+$source = ['vCard', '/home/user/contacts/'];
 
-$daysBefore = 3;
-$daysAfter = 14;
+
+$daysPrev = 3;
+$daysNext = 14;
 $locale = 'de_DE.UTF-8';
+
+//email settings
+$mail_from = 'birthday@example.org';
+$mail_to = ['a@example.org', 'b@example.org'];
 ?>