spiral / spiral/framework

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

Open
#995 0 comments 2 reactions 2 assignees View on GitHub

@wolfy-j is already working on this.

Since Sep 15, 2023.

Feature Improvement Question
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.