sunveloper/laradic-support

dev-master 2020-10-16 09:33 UTC

This package is auto-updated.

Last update: 2022-11-16 14:08:07 UTC


README

Build Status GitHub Version Code Coverage Total Downloads License

Goto Documentation Goto API Documentation Goto Repository

Version 1.2

Laravel 5 support package.

Check the documentation for all features and options (NA yet..)

Todo

  • Cleanup
  • Tests (String tests are done but located outside of the package)

Installation

Composer

"laradic/support": "~1.2"

Laravel

Note: The SupportServiceProvider is only needed if you want to use the Filesystem class trough IoC.

'Laradic\Support\SupportServiceProvider'

Overview

Classes

Class Usage Description
Object Object::first(['a', 'b']) Object helper functions
Number Number::paddingLeft(['a', 'b']) Number helper functions
Arrays Arrays::unflatten($arr, '.') Array helper functions
String String::slug('Ha lo') Combines Laravel, Underscore and Stringy functions into 1
Path Path::join('My', 'New', 'Path') Provides utility methods for handling path strings
Filesystem App::make('files')
new Filesystem()
Extra filesystem functions
TemplateParser new TemplateParser(Filesystem $files, $sourceDir) Parse stubs into files

Traits

Trait Description
DotArrayAccessTrait Implements ArrayAccess functionality into a class
EventDispatcherTrait Implements event dispatcher functionality into a class
NamespacedItemResolverTrait Implements namespace functionality into a class
And some others, TBD.

Helpers

Check the helpers.php file for an overview

Copyright/License

Copyright 2015 Robin Radic - MIT Licensed