my first commit

This commit is contained in:
Victor Grachev 2024-10-31 20:48:15 +07:00
parent c095a78bfb
commit 7f69e49868
6 changed files with 1687 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/vendor/

26
composer.json Normal file
View 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

File diff suppressed because it is too large Load Diff

View 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'));

View File

@ -0,0 +1,3 @@
*
!.gitignore
!*.sample

View File

@ -0,0 +1,3 @@
<?php
return '';