Skip to content

Commit 02b0404

Browse files
committed
Initial commit
1 parent 1cd7a59 commit 02b0404

18 files changed

+4172
-6
lines changed

.editorconfig

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
insert_final_newline = true
6+
charset = utf-8
7+
indent_style = space
8+
indent_size = 4
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false
13+
14+
[*.yml]
15+
indent_style = space
16+
indent_size = 2
17+
18+
# Tab indentation (no size specified)
19+
[Makefile]
20+
indent_style = tab

.gitignore

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,31 @@
1+
# IDE & System Related Files #
2+
.buildpath
3+
.project
4+
.settings
5+
.DS_Store
6+
.idea
7+
.phpintel
18
composer.phar
2-
/vendor/
39

4-
# Commit your application's lock file http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file
5-
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
6-
# composer.lock
10+
# Local System Files (i.e. cache, logs, etc.) #
11+
/cache
12+
/build/logs
13+
/build/coverage
14+
/tmp
15+
16+
# Test Related Files #
17+
/phpunit.xml
18+
19+
# Composer
20+
vendor/
21+
22+
.fuse_hidden*
23+
24+
# phpDocumentor Logs #
25+
phpdoc-*
26+
27+
# OSX #
28+
._*
29+
.Spotlight-V100
30+
.Trashes
31+
_ide_helper.php

.scrutinizer.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
tools:
2+
external_code_coverage:
3+
timeout: 600

.travis.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
language: php
2+
3+
php:
4+
- 5.5
5+
- 5.6
6+
- 7.0
7+
- 7.1
8+
- 7.2
9+
10+
sudo: false
11+
12+
before_install:
13+
- composer self-update
14+
15+
install:
16+
- travis_retry composer update --no-interaction --prefer-source
17+
18+
script:
19+
- ./vendor/bin/phpcs --standard=phpcs.xml -spn --encoding=utf-8 src/ --report-width=150
20+
- ./vendor/bin/phpunit --coverage-clover build/logs/clover.xml
21+
22+
23+
after_script:
24+
- wget https://scrutinizer-ci.com/ocular.phar
25+
- then php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
26+
27+
matrix:
28+
fast_finish: true
29+
30+
31+
notifications:
32+
on_success: never
33+
on_failure: always

CONTRIBUTING.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Contributing
2+
-------------
3+
4+
Before you contribute code to this project, please make sure it conforms to the PSR-2 coding standard
5+
and that the project unit tests still pass. The easiest way to contribute is to work on a checkout of the repository,
6+
or your own fork. If you do this, you can run the following commands to check if everything is ready to submit:
7+
8+
cd project
9+
composer update
10+
./vendor/bin/phpcs --standard=phpcs.xml -spn --encoding=utf-8 src/ --report-width=150
11+
12+
Which should give you no output, indicating that there are no coding standard errors. And then:
13+
14+
./vendor/bin/phpunit
15+
16+
Which should give you no failures or errors. You can ignore any skipped tests as these are for external tools.
17+
18+
Pushing
19+
-------
20+
21+
Development is based on the git flow branching model (see http://nvie.com/posts/a-successful-git-branching-model/ )
22+
If you fix a bug please push in hotfix branch.
23+
If you develop a new feature please create a new branch.
24+
25+
Version
26+
-------
27+
Version number: 0.#version.#hotfix

CREDITS

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
This is at least a partial credits-file of people that have
2+
contributed to the current project. It is sorted by name and
3+
formatted to allow easy grepping and beautification by
4+
scripts. The fields are: name (N), email (E), web-address
5+
(W) and description (D).
6+
Thanks,
7+
8+
Avtandil Kikabidze
9+
----------
10+
11+
N: Avtandil Kikabidze aka LONGMAN
12+
E: akalongman@gmail.com
13+
W: http://longman.me
14+
D: Project owner, Maintainer

LICENSE renamed to LICENSE.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
MIT License
1+
The [MIT License](http://opensource.org/licenses/mit-license.php)
22

3-
Copyright (c) 2018 PHP Telegram Bot
3+
Copyright (c) 2016 [Avtandil Kikabidze aka LONGMAN](https://github.com/akalongman)
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal
@@ -19,3 +19,4 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
SOFTWARE.
22+

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Telegram Bot Package for Laravel 5.x
2+
3+
TBD
4+
5+
## TODO
6+
7+
write more tests
8+
9+
## Troubleshooting
10+
11+
If you like living on the edge, please report any bugs you find on the
12+
[php-telegram-bot/laravel issues](https://github.com/php-telegram-bot/laravel/issues) page.
13+
14+
## Contributing
15+
16+
Pull requests are welcome.
17+
See [CONTRIBUTING.md](CONTRIBUTING.md) for information.
18+
19+
## License
20+
21+
Please see the [LICENSE](LICENSE.md) included in this repository for a full copy of the MIT license,
22+
which this project is licensed under.
23+
24+
## Credits
25+
26+
- [Avtandil Kikabidze aka LONGMAN](https://github.com/akalongman)
27+
28+
Full credit list in [CREDITS](CREDITS)

composer.json

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
"name": "php-telegram-bot/laravel",
3+
"type": "library",
4+
"description": "Package to integrate PHP Telegram Bot library in Laravel 5.x",
5+
"keywords": [
6+
"laravel",
7+
"telegram",
8+
"bot"
9+
],
10+
"license": "MIT",
11+
"homepage": "https://github.com/php-telegram-bot/laravel",
12+
"support": {
13+
"issues": "https://github.com/php-telegram-bot/laravel/issues",
14+
"source": "https://github.com/php-telegram-bot/laravel"
15+
},
16+
"authors": [
17+
{
18+
"name": "Avtandil Kikabidze aka LONGMAN",
19+
"email": "akalongman@gmail.com",
20+
"homepage": "http://longman.me",
21+
"role": "Maintainer, Developer"
22+
}
23+
],
24+
"require": {
25+
"php": ">=5.5.9",
26+
"illuminate/database": "5.*",
27+
"illuminate/http": "5.*",
28+
"illuminate/support": "5.*",
29+
"longman/telegram-bot": "^0.53.0"
30+
},
31+
"require-dev": {
32+
"mockery/mockery": "0.9.*",
33+
"phpunit/phpunit": "~4.8|~5.7",
34+
"longman/php-code-style": "^1.0",
35+
"graham-campbell/testbench": "^3.4"
36+
},
37+
"autoload": {
38+
"psr-4": {
39+
"PhpTelegramBot\\Laravel\\": "src/Laravel"
40+
}
41+
},
42+
"autoload-dev": {
43+
"psr-4": {
44+
"Tests\\": "tests/"
45+
}
46+
},
47+
"config": {
48+
"sort-packages": true
49+
},
50+
"extra": {
51+
"laravel": {
52+
"providers": [
53+
"PhpTelegramBot\\Laravel\\PhpTelegramBotServiceProvider"
54+
],
55+
"aliases": {
56+
"PhpTelegramBot": "PhpTelegramBot\\Laravel\\Facades\\PhpTelegramBot"
57+
}
58+
}
59+
}
60+
}

0 commit comments

Comments
 (0)