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

Addition of an 'Ini' system #15

Open
weshooper opened this issue Mar 25, 2018 · 0 comments
Open

Addition of an 'Ini' system #15

weshooper opened this issue Mar 25, 2018 · 0 comments

Comments

@weshooper
Copy link

As a third unit system:

  • The Ini system that is based on a 1024-byte kilobyte and uses case-insensitive PHP INI suffixes (K, M, G)
// Implicit selection through parsing
ByteUnits\parse('8K'); // it's an instance of ByteUnits\Ini

It's an uncommon format, but a common problem:

Having the solution in a nice, well-tested package such as this, rather than developers copying and pasting the above code and then rewriting tests (or worse, not!) would be useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant