mirror of
https://codeberg.org/icewind/flakelight-php.git
synced 2026-10-01 05:14:21 +02:00
47 lines
823 B
Markdown
47 lines
823 B
Markdown
# flakelight-php
|
|
|
|
An opinionated php module for
|
|
[flakelight](https://github.com/nix-community/flakelight).
|
|
|
|
## Features
|
|
|
|
The following checks are automatically enabled if your project contains the
|
|
relevant configuration files:
|
|
|
|
- php-cs-checker
|
|
- psalm
|
|
- phpstan
|
|
|
|
## Usage
|
|
|
|
```nix
|
|
{
|
|
inputs = {
|
|
nixpkgs.url = "nixpkgs/nixos-25.05";
|
|
flakelight-php = {
|
|
url = "git+https://codeberg.org/icewind/flakelight-php.git";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
outputs = {flakelight-php, ...}:
|
|
flakelight-php ./. {};
|
|
}
|
|
```
|
|
|
|
## CI Usage
|
|
|
|
```yaml
|
|
name: "CI"
|
|
on:
|
|
pull_request:
|
|
push:
|
|
|
|
jobs:
|
|
checks:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: cachix/install-nix-action@v26
|
|
# insert cache setup here
|
|
- run: nix flake check --keep-going
|
|
```
|