Skip to content

mattstauffer/craftPluginDevHelpers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Plugin Dev Helpers for Craft CMS

Installation

  1. Move the craftplugindevhelpers directory into your craft/plugins directory.
  2. Go to Settings > Plugins from your Craft control panel and enable the craftPluginDevHelpers plugin

Functions

dd()

Die and Dump. Via Taylor Otwell, the man, the mystery, the legend.

craftdd()

Die and Dump, using Craft::dump()

env()

Wrap getenv() with Laravel's env() helper, which converts boolean strings to real booleans and takes an optional second parameter that is the default. E.g.

$shouldDoThing = env('SHOULD_DO_THING', false);

About

Helpers for Craft Plugin development

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages