Skip to content

Commit f7a415f

Browse files
committed
Simplify readme by grouping all links at the bottom and referencing them in the text.
1 parent 6ca2efa commit f7a415f

File tree

1 file changed

+33
-11
lines changed

1 file changed

+33
-11
lines changed

README.md

Lines changed: 33 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
# PHP Telegram Bot Manager
22

3-
[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/php-telegram-bot/telegram-bot-manager.svg)](https://scrutinizer-ci.com/g/php-telegram-bot/telegram-bot-manager/?branch=master)
4-
[![Codecov](https://img.shields.io/codecov/c/github/php-telegram-bot/telegram-bot-manager.svg)](https://codecov.io/gh/php-telegram-bot/telegram-bot-manager)
5-
[![Build Status](https://img.shields.io/travis/php-telegram-bot/telegram-bot-manager.svg)](https://travis-ci.org/php-telegram-bot/telegram-bot-manager)
3+
[![Scrutinizer Code Quality][code-quality-badge]][code-quality]
4+
[![Codecov][code-coverage-badge]][code-coverage]
5+
[![Build Status][build-status-badge]][build-status]
66

7-
[![Latest Stable Version](https://img.shields.io/packagist/v/noplanman/telegram-bot-manager.svg)](https://packagist.org/packages/noplanman/telegram-bot-manager)
8-
[![Total Downloads](https://img.shields.io/packagist/dt/noplanman/telegram-bot-manager.svg)](https://packagist.org/packages/noplanman/telegram-bot-manager)
9-
[![License](https://img.shields.io/packagist/l/noplanman/telegram-bot-manager.svg)](https://github.com/php-telegram-bot/telegram-bot-manager/LICENSE.md)
7+
[![Latest Stable Version][latest-version-badge]][github-tgbot-manager]
8+
[![Total Downloads][total-downloads-badge]][packagist-tgbot-manager]
9+
[![License][license-badge]][license]
1010

11-
This project builds on top of [PHP Telegram Bot](https://github.com/php-telegram-bot/core) and as such, depends on it!
11+
This project builds on top of [PHP Telegram Bot][github-tgbot-core] and as such, depends on it!
1212

1313
The main purpose of this mini-library is to make the interaction between your webserver and Telegram easier.
14-
I strongly suggest your read the PHP Telegram Bot [instructions](https://github.com/php-telegram-bot/core#instructions) first, to understand what this library does exactly.
14+
I strongly suggest your read the PHP Telegram Bot [instructions][github-tgbot-core-instructions] first, to understand what this library does exactly.
1515

1616
Installation and usage is pretty straight forward:
1717

18-
### Require this package with [Composer](https://getcomposer.org/)
18+
### Require this package with [Composer][composer]
1919

2020
Either run this command in your command line:
2121

@@ -168,7 +168,7 @@ Best make it long, random and very unique!
168168

169169
For 84 random characters:
170170
- If you have `pwgen` installed, just execute `pwgen 84` and choose any one.
171-
- Or just go [here](https://www.random.org/strings/?num=7&len=12&digits=on&upperalpha=on&loweralpha=on&unique=on&format=plain&rnd=new) and put all the output onto a single line.
171+
- Or just go [here][random-characters] and put all the output onto a single line.
172172

173173
(You get 2 guesses why 84 is a good number :wink:)
174174

@@ -313,9 +313,31 @@ Now, the updates can be done either through the [browser](#via-browser) or [via
313313

314314
## Development
315315

316-
When running live bot tests on a fork, you must enter the following environment variables to your [repository settings](https://docs.travis-ci.com/user/environment-variables#Defining-Variables-in-Repository-Settings) on travis-ci.org:
316+
When running live bot tests on a fork, you must enter the following environment variables to your [repository settings][travis-repository-settings] on travis-ci.org:
317317
```
318318
API_KEY="12345:your_api_key"
319319
BOT_USERNAME="username_of_your_bot"
320320
```
321321
It probably makes sense for you to create a new dummy bot for this.
322+
323+
324+
[github-tgbot-core]: https://github.com/php-telegram-bot/core "PHP Telegram Bot on GitHub"
325+
[github-tgbot-core-instructions]: https://github.com/php-telegram-bot/core#instructions "PHP Telegram Bot instructions on GitHub"
326+
[github-tgbot-manager]: https://github.com/php-telegram-bot/telegram-bot-manager "PHP Telegram Bot Manager on GitHub"
327+
[packagist-tgbot-manager]: https://packagist.org/packages/noplanman/telegram-bot-manager "PHP Telegram Bot Manager on Packagist"
328+
[license]: https://github.com/php-telegram-bot/telegram-bot-manager/blob/master/LICENSE "PHP Telegram Bot Manager license"
329+
330+
[code-quality-badge]: https://img.shields.io/scrutinizer/g/php-telegram-bot/telegram-bot-manager.svg
331+
[code-quality]: https://scrutinizer-ci.com/g/php-telegram-bot/telegram-bot-manager/?branch=master "Code quality on Scrutinizer"
332+
[code-coverage-badge]: https://img.shields.io/codecov/c/github/php-telegram-bot/telegram-bot-manager.svg
333+
[code-coverage]: https://codecov.io/gh/php-telegram-bot/telegram-bot-manager "Code coverage on Codecov"
334+
[build-status-badge]: https://img.shields.io/travis/php-telegram-bot/telegram-bot-manager.svg
335+
[build-status]: https://travis-ci.org/php-telegram-bot/telegram-bot-manager "Build status on Travis-CI"
336+
337+
[latest-version-badge]: https://img.shields.io/packagist/v/noplanman/telegram-bot-manager.svg
338+
[total-downloads-badge]: https://img.shields.io/packagist/dt/noplanman/telegram-bot-manager.svg
339+
[license-badge]: https://img.shields.io/packagist/l/noplanman/telegram-bot-manager.svg
340+
341+
[random-characters]: https://www.random.org/strings/?num=7&len=12&digits=on&upperalpha=on&loweralpha=on&unique=on&format=plain&rnd=new "Generate random characters"
342+
[travis-repository-settings]: https://docs.travis-ci.com/user/environment-variables#Defining-Variables-in-Repository-Settings "Repository Settings on Travis-CI"
343+
[composer]: https://getcomposer.org/ "Composer"

0 commit comments

Comments
 (0)