Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dedicated composer package for Spiral\Framework\* classes #995

Open
gam6itko opened this issue Sep 15, 2023 · 0 comments
Open

Dedicated composer package for Spiral\Framework\* classes #995

gam6itko opened this issue Sep 15, 2023 · 0 comments

Comments

@gam6itko
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

4 participants