Skip to content

WIP: Refactor app design #827

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 40 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
4d2c2b4
Update dependencies
akalongman Apr 21, 2018
3783e75
Drop support for PHP 5.5
akalongman Apr 21, 2018
3ea4b04
Move Request class inside http namespace
akalongman Apr 21, 2018
4e84bce
Move ServerResponse class inside http namespace
akalongman Apr 21, 2018
7cfd0b6
Fix failing tests
akalongman Apr 21, 2018
d711159
Remove unused import
akalongman Apr 21, 2018
404efd8
Create http kernel class
akalongman Apr 21, 2018
47564d8
Old request class renamed to Client
akalongman Apr 21, 2018
81799e2
Create http request class
akalongman Apr 21, 2018
d959a39
Update dependencies and refactor main application class
akalongman Apr 21, 2018
8085388
Delete composer.lock file to avoid dependencies problem during building
akalongman Apr 21, 2018
f64e315
Add fix-code action to composer
akalongman Apr 21, 2018
b217fa7
Fix code style
akalongman Apr 21, 2018
a2f6ee7
Update code style config
akalongman Apr 21, 2018
b0e9f7b
Introduce console kernel class and handle cli update requests
akalongman Apr 21, 2018
be3f605
Update kernel class
akalongman Apr 21, 2018
cb8e07d
Remove empty response method from client
akalongman Apr 21, 2018
c863f70
Fix style
akalongman Apr 21, 2018
1d4ae42
Change method of initializing container
akalongman Apr 21, 2018
d568753
Remove git keep
akalongman Apr 21, 2018
1fe2c5d
Add gitignore file
akalongman Apr 21, 2018
166b883
Add more tests
akalongman Apr 21, 2018
aadb9cc
Fix failing test
akalongman Apr 21, 2018
2cf497c
Add interface for commands
akalongman Apr 21, 2018
a967966
Remove custom input
akalongman Apr 21, 2018
5bc3aec
Reformat the file
akalongman Apr 21, 2018
8a70d87
Add class constants for types
akalongman Apr 21, 2018
70d55ff
Ignore custom input
akalongman Apr 21, 2018
e3f13a1
Reformat the file
akalongman Apr 21, 2018
c04686e
Rename the method and use request class from container
akalongman Apr 21, 2018
a3261e9
Improve main application class
akalongman Apr 21, 2018
6b4a1cc
Improve response class and drop magic fields
akalongman Apr 21, 2018
e09613b
Fix code style
akalongman Apr 21, 2018
84f9ffc
Fix failing tests
akalongman Apr 21, 2018
806304c
Add config class
akalongman Apr 22, 2018
457da71
Introduce new Config class and move related functional from main app …
akalongman Apr 22, 2018
b18d216
Move botan integration in to separate namespace
akalongman Apr 22, 2018
6227c40
Improve config
akalongman Apr 22, 2018
e550a76
Rename Logger class
akalongman Apr 22, 2018
84977ea
Rename logger test
akalongman Apr 22, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
.idea
.phpintel
composer.phar
composer.lock

# Local System Files (i.e. cache, logs, etc.) #
/cache
Expand Down
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ cache:
- "$HOME/.composer/cache"

php:
- 5.5
- 5.6
- 7.0
- 7.1
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
[![Latest Stable Version](https://img.shields.io/packagist/v/Longman/telegram-bot.svg)](https://packagist.org/packages/longman/telegram-bot)
[![Total Downloads](https://img.shields.io/packagist/dt/Longman/telegram-bot.svg)](https://packagist.org/packages/longman/telegram-bot)
[![Downloads Month](https://img.shields.io/packagist/dm/Longman/telegram-bot.svg)](https://packagist.org/packages/longman/telegram-bot)
[![Minimum PHP Version](http://img.shields.io/badge/php-%3E%3D5.6-8892BF.svg)](https://php.net/)
[![Minimum PHP Version](http://img.shields.io/badge/php-%3E%3D5.6.4-8892BF.svg)](https://php.net/)
[![License](https://img.shields.io/packagist/l/Longman/telegram-bot.svg)](https://github.com/php-telegram-bot/core/LICENSE.md)


Expand Down
2 changes: 2 additions & 0 deletions build/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore
Empty file removed build/.gitkeep
Empty file.
28 changes: 25 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
"name": "longman/telegram-bot",
"type": "library",
"description": "PHP Telegram bot",
"keywords": ["telegram", "bot", "api"],
"keywords": [
"telegram",
"bot",
"api"
],
"license": "MIT",
"homepage": "https://github.com/php-telegram-bot/core",
"support": {
Expand All @@ -18,16 +22,22 @@
}
],
"require": {
"php": "^5.5|^7.0",
"php": ">=5.6.4|^7.0",
"ext-pdo": "*",
"ext-curl": "*",
"ext-mbstring": "*",
"monolog/monolog": "^1.23",
"illuminate/container": "5.4.*|5.5.*|5.6.*",
"illuminate/support": "5.4.*|5.5.*|5.6.*",
"illuminate/http": "5.4.*|5.5.*|5.6.*",
"illuminate/config": "5.4.*|5.5.*|5.6.*",
"guzzlehttp/guzzle": "^6.3"
},
"require-dev": {
"phpunit/phpunit": "^4.8|^5.7|^6.5|^7.0",
"squizlabs/php_codesniffer": "^3.2"
"symfony/var-dumper": "3.4.*|~4.0",
"squizlabs/php_codesniffer": "^3.2",
"longman/php-code-style": "^1.0"
},
"autoload": {
"psr-4": {
Expand All @@ -43,14 +53,26 @@
"check-code": [
"\"vendor/bin/phpcs\" --standard=phpcs.xml -snp --encoding=utf-8 src/ tests/ --report-width=150"
],
"fix-code": [
"\"vendor/bin/phpcbf\" --standard=phpcs.xml -snp --encoding=utf-8 src/ tests/ --report-width=150"
],
"test": [
"\"vendor/bin/phpunit\""
],
"test-cov": [
"\"vendor/bin/phpunit\" --coverage-clover build/logs/clover.xml"
],
"test-cov-html": [
"\"vendor/bin/phpunit\" --coverage-html build/html"
],
"test-cov-upload": [
"wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml"
]
},
"config": {
"preferred-install": "dist",
"sort-packages": true,
"optimize-autoloader": true,
"process-timeout": 3600
}
}
Loading