FrameworkBenchmarks icon indicating copy to clipboard operation
FrameworkBenchmarks copied to clipboard

[PHP] Add curl, unzip to reduce package installation time.

Open kitrio opened this issue 1 month ago • 3 comments

Warning message from composer in docker container:

Composer is operating significantly slower than normal because you do not have the PHP curl extension enabled. mark: No composer.lock file present. Updating dependencies to latest instead of installing from lock file. See https://getcomposer.org/install for more information.

so, added curl extension, unzip

kitrio avatar Nov 18 '25 03:11 kitrio

The following frameworks were updated, pinging maintainers: reactphp: @WyriHaximus

github-actions[bot] avatar Nov 18 '25 03:11 github-actions[bot]

About the no composer.lock file: The bench is running continuously, each ~190 hours a new run, so we can check any issues with minor version update of dependencies and performance changes.

The bench don't permit use latest for versions (that I think is correct). For example, with the PHP version we chose the MAJOR.MINOR never the PATCH, PHP 8.3 8.4 8.5 ... so in each run if a new patch version is ready, the bench use it without any work for us.

The same happens with the composer.json: "laravel/framework": "^12", "cakephp/cakephp": "^5.0.1", "codeigniter4/framework": "^4.0", ...

All use SEM versioning, so they need to work with .minor versions. If the bench fail is a bug in the framework (some times happened) and we can create a issue.

So all is working in a secure way, only permitting minor versions. Imagine the work if we need to update any minor or patch version of PHP and each framework :disappointed_relieved:, when we can have it for free and check performance changes. So the bench never use outdated versions.

PD: in your production apps, please use always composer.lock to avoid problems.

joanhey avatar Nov 26 '25 10:11 joanhey

I think that nobody understand what I said before in this PR !!

joanhey avatar Dec 05 '25 18:12 joanhey

I think that nobody understand what I said before in this PR !!

Sorry comment about "composer.lock " is wrong

curl, unzip add is related composer message

Composer is operating significantly slower than normal because you do not have the PHP curl extension enabled.

kitrio avatar Dec 14 '25 09:12 kitrio