Skip to content

Commit 396bf16

Browse files
authored
Add ads (#4)
1 parent 82054da commit 396bf16

File tree

2 files changed

+52
-1
lines changed

2 files changed

+52
-1
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,18 @@ Options:
111111
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
112112
```
113113

114+
---
115+
116+
> [!TIP]
117+
> **Hire Tang Rufus!**
118+
>
119+
> I am looking for my next role, freelance or full-time.
120+
> If you find this tool useful, I can build you more weird PHP / Ruby / Go stuffs like this.
121+
>
122+
> Contact me at https://typist.tech/contact/
123+
124+
---
125+
114126
## Why
115127

116128
Under the hood, [Composer](https://getcomposer.org/) uses [
@@ -147,6 +159,16 @@ Working with Composer packages versions without `composer/semver` is a bit trick
147159
`Composer SemVer` wraps `composer/semver` and the PHP runtime as a static linked CLI tool,
148160
so you can work with the package versions exactly like Composer does without installing PHP.
149161

162+
> [!TIP]
163+
> **Hire Tang Rufus!**
164+
>
165+
> There is no need to understand any of these quirks.
166+
> Let me handle them for you.
167+
> I am seeking my next job, freelance or full-time.
168+
>
169+
> If you are looking for a PHP / Ruby / Go developer,
170+
> contact me at https://typist.tech/contact/
171+
150172
## Installation
151173

152174
### Homebrew (macOS / Linux) (Recommended)

src/Application.php

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,36 @@ public function getLongVersion(): string
8585
);
8686
$longVersion .= PHP_EOL . $phpSapi;
8787

88-
// TODO: Add sponsor info.
88+
$longVersion .= PHP_EOL . PHP_EOL . '<comment>Support Composer SemVer:</>';
89+
90+
$longVersion .= PHP_EOL . <<<'SUPPORT'
91+
If you find this tool useful, please consider supporting its development.
92+
Every contribution counts, regardless how big or small.
93+
I, <href=https://typist.tech/>Tang Rufus</>, am eternally grateful to all sponsors who fund my open source journey.
94+
SUPPORT;
95+
96+
$sponsorUrl = sprintf(
97+
'%1$-15s <href=%2$s>%2$s</>',
98+
'GitHub Sponsor',
99+
'https://github.com/sponsors/tangrufus',
100+
);
101+
$longVersion .= PHP_EOL . PHP_EOL . $sponsorUrl;
102+
103+
$longVersion .= PHP_EOL . PHP_EOL . '<comment>Hire Tang Rufus:</>';
104+
105+
$longVersion .= <<<'HIRE'
106+
<fg=black;bg=yellow;options=bold>
107+
I am looking for my next role!
108+
If you are looking for a backend developer to build weird PHP / Ruby / Go stuffs like this, please get in touch.</>
109+
HIRE;
110+
111+
$sponsorUrl = sprintf(
112+
'%1$-15s <href=%2$s>%2$s</>',
113+
'Contact',
114+
'https://typist.tech/contact/',
115+
);
116+
$longVersion .= PHP_EOL . PHP_EOL . $sponsorUrl;
117+
89118

90119
$longVersion .= PHP_EOL;
91120

0 commit comments

Comments
 (0)