CMB2 as Composer Library
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"require": { | |
"php": ">=5.3.0", | |
"composer/installers": "v1.0.12", | |
"webdevstudios/cmb2": "dev-master", | |
}, | |
"autoload": { | |
"files": ["vendor/cmb2/init.php"] | |
}, | |
"extra": { | |
"installer-paths": { | |
"vendor/{$name}/": ["webdevstudios/cmb2"] | |
} | |
} | |
} |
Thanks for putting this up. Saved me some time :)
Awesome, thanks!
[Seld\JsonLint\ParsingException]
"./composer.json" does not contain valid JSON
Parse error on line 5:
...2": "dev-master", }, "autoload": {
---------------------^
Expected: 'STRING' - It appears you have an extra trailing comma
Just delete "," on line 5 to fix this error.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can change
vendor
if you use a customvendor-dir
: