pbaszak/lib-skeleton
最新稳定版本:1.2.0
Composer 安装命令:
composer create-project pbaszak/lib-skeleton
包简介
A minimal project that allows you to quickly create a new library based on Symfony using useful tools: standard-version, php-cs-fixer, phpstan, phpunit.
关键字:
README 文档
README
A minimal project that allows you to quickly create a new library based on Symfony using useful tools: standard-version, php-cs-fixer, phpstan, phpunit, docker, xdebug and my own starting script. It is ready to support debugging with Visual Studio Code - just look into .env.local ;).
WHY?
https://github.com/patrykbaszak/skeleton#why
How to start
Create directory for Your project, get in (cd {Your directory}) and run command:
composer create-project pbaszak/lib-skeleton . --no-interaction
Start local environment using this command:
# first use bash start.sh vendor/package # all next uses bash start.sh
and voila! Your local environment is ready to development library with useful tools.
How to use Standard Version
If You don't have node_modules directory run:
npm install
First release:
npm run version:first-release
Major, Minor, Patch version update:
npm run version:major # or npm run version:minor # or npm run version:patch
Push tags:
npm run version:release
# or
npm run release
Check package.json for understand what commands do.
How to use PHPStan
Main command:
docker exec php composer code:analyse
but, if You need to add errors to ignored:
docker exec php composer code:analyse:b
How to use PHP CS Fixer
docker exec php composer code:fix
How to use XDebug in Visual Studio Code
Create new file in Your project: .vscode/launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "Listen for xDebug",
"type": "php",
"request": "launch",
"port": 5902,
"hostname": "0.0.0.0",
"pathMappings": {
"/app/": "${workspaceRoot}"
}
}
]
}
Uncomment environments in .env.local:
XDEBUG_MODE=develop,debug XDEBUG_CONFIG=" client_port=5902 idekey=VSCODE client_host=host.docker.internal discover_client_host=0 start_with_request=yes"
Type Ctrl + Shift + D and run Listen for xDebug.
统计信息
- 总下载量: 11
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-11-18