Skip to content

Commit 25278b2

Browse files
committed
docs: explain how this flake is intended to be used
1 parent e04b53b commit 25278b2

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Devshell-PHP
2+
3+
A nix flake based development environment for Laravel with `PNPM` and `Xdebug` support. The goal is to package everything relevant for running your development environment. Installing packages, running a front-end watcher, linters, formatters, composer, etc. Everything else should be abstracted away into dedicated Docker containers so as to match production as closely as possible.
4+
5+
## How to use
6+
7+
This devshell is meant to be pulled into your project as a git submodule. The idea is to manage changes in a separate and centralized repository. If different versions need to be maintained then those should be stored on separate branches.
8+
9+
To use `devshell-php` and assuming you are using `nix-direnv`:
10+
11+
1. Add it as a git submodule `git submodule add https://github.com/99linesofcode/devshell-php ./devshell`
12+
1. Define a `.envrc` in your project root folder `echo use flake ./devshell >> .envrc`
13+
3. Run `direnv allow`
14+
1. Add `.direnv/` to your `.gitignore`
15+
16+
## Contributing
17+
18+
Please review our [Contribution Guidelines](https://github.com/99linesofcode/.github/blob/main/.github/CONTRIBUTING.md).
19+
20+
## Code of Conduct
21+
22+
In order to ensure that the community is welcoming to all, please review and abide by the [Code of Conduct](https://github.com/99linesofcode/.github?tab=coc-ov-file).
23+
24+
## Security Vulnerabilities
25+
26+
Please review [our security policy](https://github.com/99linesofcode/.github?tab=security-ov-file) on how to report security vulnerabilities.
27+
28+
## License
29+
30+
This software is open source and licensed under the [MIT license](https://github.com/99linesofcode/.github?tab=MIT-1-ov-file)

0 commit comments

Comments
 (0)