spiral/framework

Dedicated composer package for `Spiral\Framework\*` classes

gam6itko opened this issue · 0 comments

Description

I need to make mini-ultra-lightweight microservice with spiral framework. Actualy I need only Spiral\Framework\Kernel and related classes. But if my composer.json requires only spiral/framework after installation it will download all classes from current monorepo. It not looks like mini-ultra-lightweight way as it could be.

Now it size about 6.9M, not much, but I need only 500.0K

/srv $ du ./vendor/spiral/framework/ -h -s
6.9M    ./vendor/spiral/framework/
/srv $ du ./vendor/spiral/framework/src/Framework/ -h -s
500.0K  ./vendor/spiral/framework/src/Framework/

Example

Solution 1 (easy). Make new readonly package like spiral/framework-kernel with Spiral\Framework\Kernel classes.

Solution 2 (hard). Rename current repo to spiral/spiral and place Spiral\Framework\* classes to spiral/framework repo.