Use the PHP Laravel framework utilities in your JavaScript projects.
I love Laravel. I love JavaScript frontend frameworks. I love how Inertia JS bridged the gap between these two worlds. I just wish I could use the incredible helper functions that Laravel provides in my JavaScript code with proper TypeScript support and tree-shaking capabilities.
After making them, I then decided to open-source these utilities so that others could benefit from them as well. Thus, the Tolki JS project was born.
| Package | Description | Version | Downloads |
|---|---|---|---|
@tolki/enum |
Utilities for working with enums like PHP's Enum class. | ||
@tolki/num |
Utilities for working with numbers like Laravel's Num class. | ||
@tolki/ts |
Utilities for working with TypeScript in Laravel. | ||
@tolki/str |
Utilities for working with strings like Laravel's Str class. | ||
@tolki/types |
Utility TypeScript types for Tolki packages and Laravel HTTP responses. |
| Package | Description |
|---|---|
@tolki/arr |
Utilities for working with arrays. |
@tolki/collection |
A Collection class similar to Laravel's Collection class. |
@tolki/data |
Utilities for working with JavaScript objects and arrays in one package. |
@tolki/obj |
Utilities for working with JavaScript objects. |