赞
踩
有两种方式启用本镜像服务:
- {
- "repositories": [
- {"type": "composer", "url": "http://packagist.phpcomposer.com"},
- {"packagist": false}
- ]
- }
composer config -g repositories.packagist composer http://packagist.phpcomposer.com
- {
- "name": "laravel/laravel",
- "description": "The Laravel Framework.",
- "keywords": ["framework", "laravel"],
- "license": "MIT",
- "type": "project",
- "require": {
- "php": ">=5.5.9",
- "laravel/framework": "5.1.*"
- },
- "require-dev": {
- "fzaninotto/faker": "~1.4",
- "mockery/mockery": "0.9.*",
- "phpunit/phpunit": "~4.0",
- "phpspec/phpspec": "~2.1"
- },
- "autoload": {
- "classmap": [
- "database"
- ],
- "psr-4": {
- "App\\": "app/"
- }
- },
- "autoload-dev": {
- "classmap": [
- "tests/TestCase.php"
- ]
- },
- "scripts": {
- "post-install-cmd": [
- "php artisan clear-compiled",
- "php artisan optimize"
- ],
- "pre-update-cmd": [
- "php artisan clear-compiled"
- ],
- "post-update-cmd": [
- "php artisan optimize"
- ],
- "post-root-package-install": [
- "php -r \"copy('.env.example', '.env');\""
- ],
- "post-create-project-cmd": [
- "php artisan key:generate"
- ]
- },
- "config": {
- "preferred-install": "dist"
- },
- "repositories": [
- {"type": "composer", "url": "http://packagist.phpcomposer.com"},
- {"packagist": false}
- ]
- }
说明:
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。