I'm curious to those who have written their own framework. Do you still use it? What features did it have? What was the advantage of your framework over a more populair option? I have a sideproject framework, that is used in 4 production applications. It has its own HTTP client. CLI/HTTP router. Ful...
As the title says. I noticed the SQLite3 class being consistently slower than using PDO. In my project i wanted to implement support for multiple database adapters, to take advantage of the extra functionality that the SQLite3 might have to offer. However, after building the abstraction i found SQLi...
Throughout the years, i've developed a framework i use for personal (sometimes professional) projects. It suits most of my needs for a back-end/microservice framework, but i've grown particulairly fond of my querybuilder/ORM. Here is the public repo: https://github.com/Sentience-Framework/sentience-...
Packagist has a couple of packages for DuckDB, but no packages offered both functionalities i was looking for in my project: No FFI required A persistent connection (important for transactions, and in memory databases) This package interfaces with the DuckDB CLI by opening a new process with proc_op...
Firstly, the application is likely running on an older version of PHP. Upgrading it to the latest version is usually running Rector + PHP CS fixer with the desired version. You can even do slow upgrades by going from 7.0 to 7.4 to 8.0 to 8.4.
Secondly i would migrate the logic to service and repository classes. Once the logic is nicely defined and separated, i would move the code to a well known framework like Laravel or Symfony
So instead of fixing the development enviroment an AI now has to run your tests? This sounds needlesly overcomplicated.
Direnv also loads your .env file in your environment, that's all Claude's doing right?
Can we go about fixing a simple problem without having to involve an LLM?
Firstly, the application is likely running on an older version of PHP. Upgrading it to the latest version is usually running Rector + PHP CS fixer with the desired version. You can even do slow upgrades by going from 7.0 to 7.4 to 8.0 to 8.4.
Secondly i would migrate the logic to service and repository classes. Once the logic is nicely defined and separated, i would move the code to a well known framework like Laravel or Symfony
The easiest solution is to run a Postgres node alongside your PHP application, then do:
$pdo->query('SELECT cast(?, numeric) + cast(? numeric) as "result"')->fetch(PDO::FETCH_ASSOC)['result'];
I hate the AI writing style of this post
Unless officially published or endorded, i believe the naming convention for fan made Laravel packages needs to be {package}-for-laravel.
Nice job!