dev-master 2015-08-23 18:21 UTC

This package is not auto-updated.

Last update: 2024-10-02 09:54:41 UTC


README

本仓库的目的是测试 composer 包管理并为新项目设置基本的库结构。

安装

从 composer Packagist 安装

composer require mauriciovander/testpackage dev-master

从 Git 安装

  1. 使用以下命令克隆此仓库:

git clone https://github.com/mauriciovander/testpackage.git

  1. 进入 testpackage 目录:
  2. 安装依赖

composer install

  1. 作为服务器运行 index.php 或在 Apache/Nginx 服务器中创建虚拟主机,将 DocumentRoot 指向 public 文件夹

php -S 127.0.0.1:8888 public/index.php

  1. 在浏览器中打开 https://
  2. 检查控制台日志以确认 monolog 正确运行
  3. 运行测试以确认 phpunit 正确运行

phpunit tests

开始编写您的代码

如果需要使用新的命名空间(除了 TestComponents),请确保在 composer.json 的 PSR-4 部分中链接命名空间到路径,以便正确自动加载

运行 composer dump-autoload 重新生成 PSR-4 自动加载器

享受...