https://packagist.org/?q=phpmyadmin&p=0
Github:笔记 https://github.com/13431/php
类库包下载地址:packagist.org
一、先切换到 需要下载的那个文件目录 然后输入下载的命令 下载相应的包
composer create-project fillup/phpmyadmin-minimal
composer create-project
Composer 安装
下载并安装
将下载的源换为国内的:
composer config -g repo.packagist composer https://packagist.phpcomposer.com
下载 phpMyAdmin:
composer create-project fillup/phpmyadmin-minimal composer create-project fillup/phpmyadmin-minimal --no-dev ## 不要下载跟开发相关的东西 composer create-project fillup/phpmyadmin-minimal phpmyadmin --no-dev ## 不要下载跟开发相关的东西
开始 ThinkPHP 项目:
composer create-project topthink/thinkphp:3.2.3 blog-tp3 --prefer-dist ## 如果加上prefer参数,可以指定优先下载什么样的个数 composer create-project topthink/think blog-tp5 --prefer-dist
开始一个 Laravel 项目:
composer create-project laravel/laravel blog-laravel
开始一个 yii 项目:
composer create-project yiisoft/yii2-app-basic blog-yii --prefer-dist
Composr 添加依赖:
第一种方法: a) 编辑 composer.json,在 require 节点上,添加 smarty,
{ 然后执行 composer install 命令安装依赖
|
|
第二种方法: // b) 直接在目录下面执行 composer require smarty/smarty 即可。 |