28 Commits

Author SHA1 Message Date
Andrea Marco Sartori
672f6953be Move classes around 2023-03-22 15:28:57 +10:00
Andrea Marco Sartori
d603787911 Update PHPStan comment 2023-03-20 19:27:17 +10:00
Andrea Marco Sartori
50a097ef84 Replace static with self in final classes 2023-03-08 17:27:23 +10:00
Andrea Marco Sartori
7f3e1734ea Refactor sources communicating with endpoints 2023-02-26 21:48:56 +10:00
Andrea Marco Sartori
84b4ae41f7 Support Laravel HTTP client requests 2023-02-26 21:39:51 +10:00
Andrea Marco Sartori
8580a5daf0 Let JSON size be calculated before parsing if needed 2023-02-26 08:08:55 +10:00
Andrea Marco Sartori
b018c8457e Improve comment 2023-02-26 08:07:53 +10:00
Andrea Marco Sartori
efba19ec9b Redefine exceptions 2023-02-25 20:39:46 +10:00
Andrea Marco Sartori
898e1feff0 Optimize native function calls 2023-01-24 17:30:13 +10:00
Andrea Marco Sartori
b74045e9e3 Fix style 2023-01-22 09:55:28 +10:00
Andrea Marco Sartori
9f5e808962 Retrieve matching source when size is requested 2023-01-22 09:49:16 +10:00
Andrea Marco Sartori
a3f24d3e96 Ensure size is calculated once 2023-01-22 09:47:38 +10:00
Andrea Marco Sartori
a3a63d36e8 Set default configuration if none is provided 2023-01-19 20:01:42 +10:00
Andrea Marco Sartori
c37c2db5c2 Make configuration optional 2023-01-19 19:52:34 +10:00
Andrea Marco Sartori
6b0ea331fc Add PSR-7 requests to supported sources 2023-01-12 21:13:00 +10:00
Andrea Marco Sartori
114514291e Keep conditions on one line 2023-01-12 21:11:12 +10:00
Andrea Marco Sartori
4df6056671 Update code to reach PHPStan max level 2022-12-29 22:07:08 +10:00
Andrea Marco Sartori
20a20ca2dd Define generics for class-string 2022-12-24 12:23:23 +10:00
Andrea Marco Sartori
77408fec20 Improve types in docblocks 2022-12-03 21:21:44 +10:00
Andrea Marco Sartori
78a041a56a Remove custom sources registration 2022-12-03 21:03:39 +10:00
Andrea Marco Sartori
cc9f4a1725 Rename source 2022-12-03 16:24:40 +10:00
Andrea Marco Sartori
dea8a49af5 Introduce exception codes 2022-11-21 00:35:13 +10:00
Andrea Marco Sartori
ab11f4e416 Add factory method to parser 2022-11-10 21:45:56 +10:00
Andrea Marco Sartori
870e83cd39 Define method to register sources statically 2022-11-06 01:05:00 +10:00
Andrea Marco Sartori
87a99785b3 Add support for custom sources 2022-11-06 01:03:03 +10:00
Andrea Marco Sartori
a08a048061 Throw exception when registering an invalid source 2022-10-29 17:59:19 +10:00
Andrea Marco Sartori
1ec7b9af1b Implement sources 2022-10-29 17:04:02 +10:00
Andrea Marco Sartori
1ae562cdc1 First draft 2022-09-17 05:02:40 +02:00