Why is composer not recommended?

50 views
Skip to first unread message

Corey from Gelform Inc

unread,
Mar 1, 2021, 9:13:44 AM3/1/21
to redbe...@googlegroups.com
The full .phar adds nearly half a Mb on every request, whereas I assume loading by composer will only load the classes I need. Why is composer and class-based loading not recommended?

Thanks!

Corey

gabor

unread,
Mar 1, 2021, 2:11:07 PM3/1/21
to redbeanphp
Hi Corey,

You can choose to use a database specific version of RedBeanPHP, like RedBeanPHP-Mysql to reduce the memory footprint.
I don't think you can omit a large number of classes, there is not a lot of bloat in RedBeanPHP, so if you use the DB-specific editions,
you are very much using the slimmest version you can get.

cheers
Gabor
Reply all
Reply to author
Forward
0 new messages