johnkary/php-skeleton
Composer 安装命令:
composer require johnkary/php-skeleton
包简介
Base project skeleton for a PHP 8.1+ project
README 文档
README
Basic PHP project structure for a PHP 8.1+ application. Pre-configured with an example namespace, PHPUnit test suite, web-accessible front controller, and command-line application.
Installation
-
Install Composer package manager.
-
Create project skeleton:
$ composer create-project johnkary/php-skeleton your-new-project-dir $ cd !$ $ git init -
Start PHP's built-in web server:
$ php -S 127.0.0.1:8000 -t www -
Open http://127.0.0.1:8000 to access
www/index.php -
Run
php bin/consoleto access command-line scripts
Running test suite
-
Optionally copy and configure
phpunit.xml.distfor your project's environment:$ cp phpunit.xml.dist phpunit.xml $ vi phpunit.xml -
Run the test suite:
$ ./vendor/bin/phpunit
统计信息
- 总下载量: 115
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2012-10-18