netbeans composer

netbeans composer

简介

Composer 是PHP中的一个依赖管理工具  类似  centos的yum工具

下载

下载官网 composer.phar 保存到某个目录下 我放到 G:\phpr 下了
netbeans composer


设置

netbeans composer


运行

初始化

netbeans composer

netbeans composer

composer.josn

{
    "name": "vendor/test",
    "description": null,
    "authors": [
        {
            "name": "baixinxing",
            "email": "baixinxing@163.com"
        }
    ],
    "require": {

    }
}


测试

安装smarty做测试

1、搜索smarty

方法1:https://packagist.org/ 下搜索smarty
netbeans composer

方法2:https://github.com/ 下搜索smarty
netbeans composer

在我们的composer.json引用 smarty
netbeans composer

安装
netbeans composer


可能会出现如下错误(描述为空) null自己随便写点什么 记住是双引号 “”
netbeans composer

安装完成
netbeans composer


新建index.php
<?php

include ‘./vendor/autoload.php‘;
$smarty = new Smarty();
var_dump($smarty);

netbeans composer
 
剩下的就是根据自己项目 配置和使用smarty了

netbeans composer,布布扣,bubuko.com

netbeans composer

上一篇:PhoneGap & HTML5 学习资料网址


下一篇:使用阿里云容器监控服务与第三方监控框架集成搭建自己的容器看板