velvet_support 0.0.1-dev.6 copy "velvet_support: ^0.0.1-dev.6" to clipboard
velvet_support: ^0.0.1-dev.6 copied to clipboard

Provide support classes for the everyday work. Porting of some Laravel utilities to Dart.

Velvet Support #

A porting of Laravel Support package to Dart.

The main goal of this package is to provide a set of utilities that are present in Laravel's Support package.

Note

This package is not intended to be a 1:1 porting of Laravel's Support package, but rather a subset of the most useful utilities. Due to the nature of Dart, some utilities can be have a different: in Laravel contains handles both string and array, in Dart this is not possibile, so it mandatory to define also a containsAny method (that does not exists in Laravel).

Why this package? #

  • Consistency: If you are familiar with Laravel's Support package, you can use this package to have a more consistent codebase between Laravel and Dart projects.
  • Speed up development: Using this package can help to speed up the development process, avoiding to re-implement the same utilities in Dart from scratch.
  • Readability: This package can help to make a more readable code, using the same utilities that you are familiar with.
  • Avoid bugs: Each feature of this package will be tested to ensure that it works as expected. This can help to avoid bugs and unexpected behaviors that can be present in custom implementations.

Features #

List of utilities and facades. The definition is currently a work in progress, so it can be incomplete or not up to date.

  • ❌ Array and Object
  • ❌ Number
  • ❌ Collection
  • ❌ Url
  • ❌ Miscellaneous
  • ❌ Carbon
  • ❌ Pipeline
  • ❌ Sleep
  • ❌ Http Client
  • [Wip] Str
  • [Wip] Stringable

To do #

  • ❌ Move this list to a GitHub project board
  • [Wip] Str
    • ✅ list all "implementable" methods on this README's roadmap
    • ✅ after
    • ✅ afterLast
    • ❌ apa (currently skipped)
    • ❌ ascii (currently skipped)
    • ✅ before
    • ✅ beforeLast
    • ✅ between
    • ✅ betweenFirst
    • ✅ camel
    • ❌ charAt
    • ✅ contains
    • ❌ containsAny (this is not implemented in Laravel, because it is handled by contains)
    • ❌ containsAll
    • ❌ convertCase (currently skipped)
    • ❌ endsWith
    • ❌ endsWithAny (this is not implemented in Laravel, because it is handled by endsWith)
    • ❌ excerpt
    • ❌ finish
    • ❌ headline
    • ❌ inlineMarkdown
    • ❌ is
    • ❌ isAscii
    • ❌ isJson
    • ❌ isUlid
    • ❌ isUrl
    • ❌ isUuid
    • ✅ kebab
    • ❌ lcfirst
    • ❌ length
    • ❌ limit
    • ✅ lower
    • ❌ markdown
    • ❌ mask
    • ❌ orderedUuid
    • ❌ padBoth
    • ❌ padLeft
    • ❌ padRight
    • ❌ password
    • ❌ plural
    • ❌ pluralStudly
    • ❌ position
    • ❌ random
    • ❌ remove
    • ❌ repeat
    • ❌ replace
    • ❌ replaceArray
    • ❌ replaceFirst
    • ❌ replaceLast
    • ❌ replaceMatches
    • ❌ replaceStart
    • ❌ replaceEnd
    • ❌ reverse
    • ❌ singular
    • ✅ snake
    • ❌ squish
    • ❌ start
    • ❌ startsWith
    • ✅ studly
    • ❌ substr
    • ❌ substrCount
    • ❌ substrReplace
    • ❌ swap
    • ❌ take
    • ❌ title
    • ❌ toBase64
    • ❌ toHtmlString
    • ❌ trim
    • ❌ ltrim
    • ❌ rtrim
    • ❌ ucfirst
    • ❌ ucsplit
    • ✅ upper
    • ❌ ulid
    • ❌ unwrap
    • ❌ uuid
    • ❌ wordCount
    • ❌ wordWrap
    • ❌ words
    • ❌ wrap
  • [Wip] Stringable
    • ❌ list all "implementable" methods on this README's roadmap
  • ❌ Arr
    • ❌ list all "implementable" methods on this README's roadmap
  • ❌ Collection
    • ❌ list all "implementable" methods on this README's roadmap
  • ❌ Number
    • ❌ list all "implementable" methods on this README's roadmap
  • ❌ Publish the package on pub.dev
  • ❌ Add CI/CD
  • ❌ Add code coverage
  • ❌ Add badges to the README
  • ❌ Add examples to the README
  • ❌ Add a CONTRIBUTING.md file
  • ❌ Add a CODE_OF_CONDUCT.md file
  • ❌ Add a LICENSE file
  • ❌ Add a CHANGELOG.md file

Contributing #

If you would like to contribute to Velvet, please read the contributing guidelines before submitting a pull request.

License #

Velvet is released under the MIT License.

3
likes
0
points
407
downloads

Publisher

verified publisherstratumfoundry.com

Weekly Downloads

Provide support classes for the everyday work. Porting of some Laravel utilities to Dart.

Homepage
Repository (GitHub)
View/report issues

Topics

#dart #support #utilities #laravel-porting

License

unknown (license)

Dependencies

flutter

More

Packages that depend on velvet_support