Dedicated composer package for `Spiral\Framework\*` classes
@wolfy-j is already working on this.
Since Sep 15, 2023.
- Dominant language
- PHP
- Stars
- 2.1k
- Forks
- 92
- Avg merge
- 14h 57m
- Merged PRs (30d)
- 4
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.