Custom Fields
Support General Install via composer as library

  • Creator
  • #20285
    Resolved Guillaume Delage


    I’m following to install metabox via composer (and that’s very nice!) but I hoped that I could use metabox as a library like in the link example.

    Instead of being installed in vendo/wpmetabox/meta-box like one would expect, it is installed as a plugin.

    Am I doing something wrong, or metabox is only meant to be installed as a plugin?
    I also want to install (paid) metabox plugins, so my question extends to those.

    I’m using bedrock, I don’t know if it matters.

    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
  • #20288
    Long Nguyen


    Please watch this video to install the plugin Meta Box and free extensions via composer as libraries inside a custom plugin.

    Fore premium extensions, please follow this documentation You can also download the file composer.json in here to get full extensions.

    Guillaume Delage

    Thank you for your answer.

    I followed the documentation link you provided but I can’t seems to make it work as a library for my theme (not for a custom plugin).

    Is there some resource or example of doing this?

    Long Nguyen


    Please see my screen record

    I’ve created a file composer.json in a theme folder, run the command composer install then require the file vendor/autoload.php in the file functions.php. It works as well as a library.

          "type": "composer",
          "url": ""
      "require": {
        "wpackagist-plugin/meta-box": "dev-trunk"
      "extra": {
        "installer-paths": {
          "vendor/meta-box/meta-box": ["wpackagist-plugin/meta-box"]
      "autoload": {
        "files": [
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
grid gear info copy caret-up caret-down trash