Update phing build script to use composer installation only
[bdrem.git] / data / bdrem.config.php.dist
1 <?php
2 //source: birthday file
3 $source = ['Bdf', '/path/to/birthday.bdf'];
4
5 //Source: CSV file (simple)
6 $source = ['Csv', '/path/to/file.csv'];
7
8 //Source: CSV file (complex)
9 $source = [
10     'Csv',
11     [
12         'filename' => '/path/to/file.csv',
13         'columns' => [
14             'name'  => 0,
15             'event' => 1,
16             'date'  => 2
17         ],
18         'firstLineIsHeader' => true,
19         'defaultEvent' => 'Birthday',
20         'separator' => ',',
21     ]
22 ];
23
24 //Source: SQL database
25 $source = [
26     'Sql',
27     [
28         'dsn' => 'mysql:dbname=bdrem;host=127.0.0.1',
29         'user' => 'FIXME',
30         'password' => 'FIXME',
31         'table' => 'contacts',
32         'fields' => [
33             'date' => [
34                 //column name => event title
35                 'c_birthday' => 'Birthday'
36             ],
37             //column with name, or array with column names
38             'name' => ['c_name'],
39             //sprintf-compatible name formatting instruction
40             'nameFormat' => '%s',
41         ]
42     ]
43 ];
44
45 //Source: LDAP
46 $source = [
47     'Ldap',
48     [
49         'host'   => 'ldap.example.org',
50         'basedn' => 'ou=adressbuch,dc=example,dc=org',
51         'binddn' => 'cn=FIXME,ou=users,dc=example,dc=org',
52         'bindpw' => 'FIXME'
53     ]
54 ];
55
56 //Source: Directory of .vcf vCard files (2 subfolder levels supported)
57 $source = ['vCard', '/home/user/contacts/'];
58
59
60 $daysPrev = 3;
61 $daysNext = 14;
62 $locale = 'de_DE.UTF-8';
63
64 //email settings
65 $mail_from = 'birthday@example.org';
66 $mail_to = ['a@example.org', 'b@example.org'];
67 ?>