php Composer acceleration

WBOY
Release: 2016-08-08 09:24:28
Original
1176 people have browsed it

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"
        }   
    ]
}
Copy after login

2.   Single project acceleration

    In the project’s composer.json Join:

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

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.

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template