Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mattstauffer/craftplugindevhelpers
Helpers for Craft Plugin development
https://github.com/mattstauffer/craftplugindevhelpers
Last synced: 2 months ago
JSON representation
Helpers for Craft Plugin development
- Host: GitHub
- URL: https://github.com/mattstauffer/craftplugindevhelpers
- Owner: mattstauffer
- License: mit
- Created: 2014-06-29T01:40:32.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2021-04-15T15:14:23.000Z (over 3 years ago)
- Last Synced: 2023-03-12T11:17:17.099Z (almost 2 years ago)
- Language: PHP
- Homepage:
- Size: 5.86 KB
- Stars: 8
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Plugin Dev Helpers for [Craft CMS](http://buildwithcraft.com/)
## 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](http://laravel.com/docs/helpers), 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.```php
$shouldDoThing = env('SHOULD_DO_THING', false);
```