flakelight-php/README.md
2025-10-26 14:13:32 +01:00

823 B

flakelight-php

An opinionated php module for flakelight.

Features

The following checks are automatically enabled if your project contains the relevant configuration files:

  • php-cs-checker
  • psalm
  • phpstan

Usage

{
  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

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