bubbaops / matrix
零配置 .devscontainer,适用于使用 VS Code 的 Laravel 开发者
dev-main
2020-12-23 20:37 UTC
Requires
- php: ^7.3|^8.0
- doctrine/lexer: ^1.2
- illuminate/console: ^6 || ^7 || ^8
- illuminate/filesystem: ^6 || ^7 || ^8
- illuminate/support: ^6 || ^7 || ^8
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2
- illuminate/config: ^6 || ^7 || ^8
- illuminate/view: ^6 || ^7 || ^8
- phpdocumentor/phpdocumentor: ^3.0
- phpmd/phpmd: ^2.6
- phpunit/phpunit: ^8.5 || ^9
- squizlabs/php_codesniffer: ^3.0
This package is auto-updated.
Last update: 2024-09-29 05:43:03 UTC
README
要求
- PHP >= 7.0
- composer
- Laravel 项目
功能
- 为您的 Visual Studio Code .devcontainer 开发需求提供零配置安装
- 为您的 .devcontainer 精心打造的开发空间
- nginx 容器
- PHP FPM 容器
- 其他可选容器
- mariadb
- memcached
- mssql
- mysql
- postgres
- redis
安装
composer require --dev BubbaOps/matrix
php artisan vendor:publish --tag=devcontainer
这将为您创建 .devcontainer
并填充以下内容:
mariadb/Dockerfile
memcached/Dockerfile
mssql/Dockerfile
mysql/Dockerfile
nginx/Dockerfile
php-fpm/Dockerfile
postgres/Dockerfile
redis/Dockerfile
workspace/Dockerfile
devcontainer.json
docker-compose.yml
如果您再次运行 php artisan vendor:publish --tag=devcontainer
,它将不会修改任何内容,与其他任何配置相同。您必须使用 artisan 的 --force
选项来覆盖您 .devcontainer
中现有的文件。
配置
如果您想修改配置,请参阅 容器中的远程开发,这将引导您查看 Docker 文档 中的具体信息。
更新日志
请参阅 CHANGELOG.md 以保持跟踪。
贡献
- 将其分支。
- 创建您的功能分支(git checkout -b my-new-feature)。
- 进行您的更改。
- 运行测试,如果需要,为您的代码添加新测试(phpunit)。
- 提交您的更改(git commit -am '添加了一些功能')。
- 将分支推送到远程(git push origin my-new-feature)。
- 创建新的 pull request。
请参阅 CONTRIBUTION.md。
许可证
请参阅 LICENSE。