my first commit
This commit is contained in:
parent
c095a78bfb
commit
7f69e49868
|
@ -0,0 +1 @@
|
|||
/vendor/
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -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'));
|
||||
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
*
|
||||
!.gitignore
|
||||
!*.sample
|
|
@ -0,0 +1,3 @@
|
|||
<?php
|
||||
|
||||
return '';
|
Loading…
Reference in New Issue