my first commit
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
/vendor/
|
26
composer.json
Normal file
26
composer.json
Normal file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"name": "victorian/products_reminder",
|
||||
"description": "Chat-robot Telegram that creates a shopping list of products every day",
|
||||
"type": "chat-robot",
|
||||
"license": "WTFPL",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Victor Grachev"
|
||||
}
|
||||
],
|
||||
"minimum-stability": "stable",
|
||||
"require": {
|
||||
"badfarm/zanzara": "^0.9.1",
|
||||
"nyholm/psr7": "^1.8"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"victorian\\products\\reminder\\": "victorian/products/reminder/system/"
|
||||
}
|
||||
},
|
||||
"config": {
|
||||
"allow-plugins": {
|
||||
"php-http/discovery": true
|
||||
}
|
||||
}
|
||||
}
|
1628
composer.lock
generated
Normal file
1628
composer.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
26
victorian/products/reminder/system/public/index.php
Normal file
26
victorian/products/reminder/system/public/index.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace victorian\products\reminder;
|
||||
|
||||
// Framework from Telegram
|
||||
use badfarm/zanzara;
|
||||
|
||||
// Initializing dependencies
|
||||
require __DIR__ . DIRECTORY_SEPARATOR
|
||||
. '..' . DIRECTORY_SEPARATOR
|
||||
. '..' . DIRECTORY_SEPARATOR
|
||||
. '..' . DIRECTORY_SEPARATOR
|
||||
. '..' . DIRECTORY_SEPARATOR
|
||||
. '..' . DIRECTORY_SEPARATOR
|
||||
. 'vendor' . DIRECTORY_SEPARATOR
|
||||
. 'autoload.php';
|
||||
|
||||
// Initializing path to the settings directory
|
||||
define('SETTINGS', __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'settings');
|
||||
|
||||
// Key of the chat-robot from Telegram
|
||||
define('TELEGRAM_KEY', require(SETTINGS . DIRECTORY_SEPARATOR . 'telegram.php'));
|
||||
|
||||
|
3
victorian/products/reminder/system/settings/.gitignore
vendored
Normal file
3
victorian/products/reminder/system/settings/.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
*
|
||||
!.gitignore
|
||||
!*.sample
|
@@ -0,0 +1,3 @@
|
||||
<?php
|
||||
|
||||
return '';
|
Reference in New Issue
Block a user