json Composer Json示例#php #composer

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了json Composer Json示例#php #composer相关的知识,希望对你有一定的参考价值。

{
    "repositories": [
        {
            "type": "composer",
            "url":  "https://wpackagist.org"
        },
        {
            "type": "package",
            "package": {
                "name": "jim-at-jibba/timber-foundation-theme",
                "version": "1.0",
                "type": "wordpress-theme",
                "source": {
                    "url": "https://github.com/jim-at-jibba/timber-foundation-theme.git",
                    "type": "git",
                    "reference": "master"
                }
            }
        },
        {
            "type": "package",
            "package": {
                "name": "tmeschke/burn",
                "version": "1.0",
                "type": "wordpress-theme",
                "source": {
                    "url": "https://bitbucket.org/tmeschke/burn.git",
                    "type": "git",
                    "reference": "master"
                }
            }
        },
        {
            "type": "package",
            "package": {
                "name": "olefredrik/foundationpress",
                "version": "1.0",
                "type": "wordpress-theme",
                "source": {
                    "url": "https://github.com/olefredrik/foundationpress.git",
                    "type": "git",
                    "reference": "master"
                }
            }
        },
        {
            "type": "package",
            "package": {
                "name": "tmeschke/wp-foundation-kickstart",
                "version": "1.0",
                "type": "wordpress-theme",
                "source": {
                    "url": "https://tmeschke@bitbucket.org/tmeschke/wp-foundation-kickstart.git",
                    "type": "git",
                    "reference": "master"
                }
            }
        }
    ],
    "minimum-stability": "stable",
    "require": {
        "jim-at-jibba/timber-foundation-theme": "1.0",
        "tmeschke/burn": "1.0",
        "olefredrik/foundationpress": "1.0",
        "tmeschke/wp-foundation-kickstart": "1.0",
        "php": ">=5.6",
        "johnpbloch/wordpress": "^4.8.1",
        "timber/timber": "^1.5",
        "jeroendesloovere/vcard": "^1.5",
        "wpackagist-plugin/dashboard-directory-size": "^1.5",
        "wpackagist-plugin/rest-api": "2.0-beta15",
        "wpackagist-plugin/site-info-dashboard-widget": "^1.1",
        "wpackagist-plugin/wp-user-avatar": "^2.0.8",
        "wpackagist-plugin/timber-library": "^1.5",
        "wpackagist-plugin/subtitles": "^3.0.0",
        "wpackagist-plugin/disable-emojis": "^1.5",
        "wpackagist-theme/twentyseventeen": "^1.2",
        "php-console/php-console": "^3.1"
    },
    "autoload": {
        "psr-4": {
            "App\\": "src"
        }
    },
    "extra": {
        "wordpress-install-dir": "wp",
        "installer-paths": {
            "app/plugins/{$name}/": ["type:wordpress-plugin"],
            "app/themes/{$name}/":  ["type:wordpress-theme"]

        }
    }
}

以上是关于json Composer Json示例#php #composer的主要内容,如果未能解决你的问题,请参考以下文章

json Docker撰写PHP Composer示例

php中的composer.json怎么用

如何在 PHP 中解决“调用未定义函数 Composer\Json\json_decode()”?

json WordPress插件的示例Composer文件。

无法安装 Composer:尽管安装了 php5-json,但缺少 json 扩展

json PHP - 设置Composer