Commit Graph

37 Commits

Author SHA1 Message Date
Anton Komarev
143ad6a31b Bump minimum PHP version to 8.1 2024-01-07 20:06:10 +03:00
Omar Trkzi
1c1f245266 Feat: Abbreviation (#88)
* Feat: Abbreviation

---------

Co-authored-by: Anton Komarev
2024-01-07 08:40:12 +03:00
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
cd5b7842af Code style fix 2023-09-03 13:25:57 +03:00
Anton Komarev
bd9bad0f0b Cleanup index.php file (#70) 2023-09-03 10:17:01 +03:00
Anton Komarev
742c77197d Add more safe counter update (#68) 2023-09-02 17:03:15 +03:00
Omar Adel Brikaa
bdaf96941f Use flock to avoid race conditions on views-count file (#67) 2023-09-02 16:38:09 +03:00
Anton Komarev
84ac753adf Constant name consistency 2023-09-02 15:50:14 +03:00
Anton Komarev
da58aa6b47 Add "For The Badge" badge style (#45) 2022-02-23 13:47:40 +03:00
Anton Komarev
08311226e1 Fix exceptions namespace 2022-02-20 20:06:57 +05:00
antonkomarev
f32bd24fa5 Update badge generator 2020-07-29 16:33:48 +03:00
antonkomarev
82b03c19c3 Fix typo 2020-07-23 02:31:44 +03:00
Anton Komarev
384456a73e Add count number format (#13) 2020-07-22 20:01:59 +03:00
Anton Komarev
0950427786 Make label and color customizable (#9)
Make label and color customizable
2020-07-20 23:35:08 +03:00
antonkomarev
e292af7e80 Fix text 2020-07-20 22:55:32 +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
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
a4d2f7e2b5 Remove duplicate badge renderers 2020-07-13 02:36:09 +03:00
antonkomarev
893e4bfc4e Fix error badge size 2020-07-13 00:24:39 +03:00
antonkomarev
0b58381763 Extract Label variable 2020-07-13 00:22:51 +03:00
antonkomarev
a3609464f7 Reorder variables 2020-07-13 00:20:24 +03:00
antonkomarev
e0147d3ca1 Store views timestamps 2020-07-12 23:55:43 +03:00
antonkomarev
c1d0a540ed Fix database table name 2020-07-12 19:41:23 +03:00
antonkomarev
037b1b7f39 Fix typo 2020-07-12 18:54:43 +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
be53d216c4 Add asserts to CounterFileRepository 2020-07-12 12:51:17 +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
antonkomarev
8a5e36dddc Code cleanup 2020-07-11 23:45:03 +03:00
antonkomarev
422c88b370 Fix dynamic length 2020-07-11 23:38:14 +03:00
antonkomarev
64f36e61f4 Initial commit 2020-07-11 22:55:19 +03:00