Commit Graph

30 Commits

Author SHA1 Message Date
Anton Komarev
8c49635ac2 Improve big integer number formatting (#75) 2023-09-17 13:45:32 +03:00
Omar Brikaa
97f5f82760 Ability to provide a base number to be added to the counter (#74)
* Ability to provide a base number to be added to the counter

* baseNumber -> baseCount

* Throw an error if the base count or the final count is inappropriate

* BaseCount, Count -> Count & PHP_INT_MAX for max base count

* Remove unneeded comment

* Add negative count check in the constructor
2023-09-16 19:56:36 +03:00
Anton Komarev
1bfb082c58 Extract Request class (#72)
* Extract Request class

* Strict in_array
2023-09-03 13:50:21 +03:00
Anton Komarev
bd9bad0f0b Cleanup index.php file (#70) 2023-09-03 10:17:01 +03:00
Anton Komarev
e7bc0454c5 Merge duplicated code (#69) 2023-09-02 17:59:12 +03:00
Anton Komarev
6a49ee50e1 Fail on .env load 2023-09-02 17:03:49 +03:00
Anton Komarev
da58aa6b47 Add "For The Badge" badge style (#45) 2022-02-23 13:47:40 +03:00
Anton Komarev
ae00750bc4 Containerize application (#44)
* Containerize application
2022-02-20 20:22:57 +05:00
Jade
f7bb5969cf 🐛 Filter XSS injection (#31) 2021-06-01 07:34:24 +03:00
Anton Komarev
a629e62029 Fix undefined user agent warning (#17) 2020-09-10 01:25:16 +03:00
antonkomarev
e1d8acbffd Redirect to page with documentation on root endpoint without username 2020-07-23 02:21:35 +03:00
Anton Komarev
0950427786 Make label and color customizable (#9)
Make label and color customizable
2020-07-20 23:35:08 +03:00
Anton Komarev
5c81fbf0d6 Make badge style customizable (#8)
* Add Poser badge generator

* Make badge styles configurable

* Make flat style as default
2020-07-20 22:17:33 +03:00
Anton Komarev
3e0fb65678 Ignore increment counter on direct access (#7) 2020-07-20 19:02:50 +03:00
antonkomarev
2961dcf3e7 Rename Database repository to Pdo repository 2020-07-18 20:32:41 +03:00
Anton Komarev
f05e2394be Add Username Value Object (#6)
Add Username Value Object
2020-07-18 20:32:06 +03:00
antonkomarev
b7cdc0d858 Remove unused import 2020-07-13 03:01:10 +03:00
antonkomarev
a4d2f7e2b5 Remove duplicate badge renderers 2020-07-13 02:36:09 +03:00
antonkomarev
8afb80e0aa Fix undefined index warnings 2020-07-13 02:08:27 +03:00
Anton Komarev
45cfe66b89 Add pixel style (#4)
* Add Pixel style
2020-07-13 01:57:44 +03:00
antonkomarev
e0147d3ca1 Store views timestamps 2020-07-12 23:55:43 +03:00
antonkomarev
cf00dd637f Rename PdoRepository to DatabaseRepository 2020-07-12 18:53:31 +03:00
antonkomarev
aee20a4412 Rename PdoRepository to DatabaseRepository 2020-07-12 18:53:16 +03:00
Anton Komarev
c2a6fd9eea Add error badge rendering (#3) 2020-07-12 18:48:32 +03:00
Anton Komarev
e4f24b04f7 Add PDO repository (#2)
* Add PDO repository

* Make file storage path configurable

* Name username query property required

* Add special exception class
2020-07-12 18:46:42 +03:00
antonkomarev
bf7b636702 Refactor CounterRepository 2020-07-12 12:43:51 +03:00
antonkomarev
b33e9d4fcf Refactor CounterImageRendererService 2020-07-12 12:28:18 +03:00
antonkomarev
793a8ff0b4 Add CounterRepositoryInterface 2020-07-12 12:15:03 +03:00
Anton Komarev
02397a195d Add dynamic username (#1)
* Add dynamic username resolving
2020-07-12 01:46:18 +03:00
antonkomarev
64f36e61f4 Initial commit 2020-07-11 22:55:19 +03:00