psl icon indicating copy to clipboard operation
psl copied to clipboard

Split this package is multiple sub-packages

Open BafS opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe.

Currently this library can be required using azjezz/psl, the "issue" is that it comes with everything. I think it would be nice to choose more precisely what we need from this library, as it provides a lot of helpers. Typically if you work in a framework context you may already have tools for File/FileSystem/Env/Str/Encoding/etc. and it can be confusing to autocomplete and have multiple times the same class name.

Describe the solution you'd like

Having a git subtree would be great, like that we could use azjezz/psl-math to only have the Math part. Of course azjezz/psl would still provides all the packages.

To give an example of a repository doing this: https://github.com/symfony/contracts

BafS avatar Jul 27 '23 02:07 BafS

I'm not totally against the idea, however, the amount of time required to implement this would be huge, one of which i cannot afford right now, so it is extremely unlike to happen.

aside from a git sub-tree, we would need to analyze each component to determine what are it's dependencies, and declare them in it's own composer.json file, on top of that, we also have a lot of circle-dependencies between components, which would also cause issues.

This also adds to the maintenance cost of the library, because we would need to be careful about what to use in each component.

Overall, it is not worth it. you can simple configure your IDEA to ignore directories of components that you do not use.

azjezz avatar Jul 27 '23 03:07 azjezz

Closing, as we do not have a plan to do this now for the reasons stated above.

azjezz avatar Mar 24 '24 10:03 azjezz