Home  >  Article  >  Backend Development  >  php Composer acceleration

php Composer acceleration

WBOY
WBOYOriginal
2016-08-08 09:24:281149browse

1. Global installation acceleration

      Add in the global configuration file config.json (usually in the .composer directory in the home directory):

{

    "config" : [],

    "repositories": [
        {   
            "packagist": false
        },  
        {   
            "type": "composer",
            "url": "http://packagist.cn"
        }   
    ]
}

2.   Single project acceleration

    In the project’s composer.json Join:

{
    "repositories": [
        {   
            "packagist": false
        },  
        {   
            "type": "composer",
            "url": "http://packagist.cn"
        }   
    ]
}

The above has introduced php Composer acceleration, including aspects of it. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn