✅
Phecks
  • User Guide
    • Getting Started
    • Configuration
    • Command-line interface
    • The Baseline
    • Continuous Integration (CI)
  • About phecks
    • The idea behind it
    • What is a check?
  • Writting checks
    • Making a Check
    • Check Sources
    • Pipes
  • Examples
    • Check inspirations
    • Spatie checks
  • Advanced
    • Making sources
    • Making Pipes
    • Formatters
Powered by GitBook
On this page
  • Introduction
  • The Basics
  • Installation
  • Set up
  1. User Guide

Getting Started

NextConfiguration

Last updated 2 years ago

Introduction

Phecks (stands for PHP-Checks) is a custom Check Runner. It will run custom checks in your Laravel project and will make a report of violations that need fixing.

By its own, Phecks doesn't contain any checks. You and your team are responsible for defining and imlpementing these checks based on your architectural decisions. Phecks will provide you a framework to develop and run these checks easily.

Phecks is recommended for big development teams with an adaptive architecture. Feel free to check to understand what kind of problem it's trying to solve.

The Basics

Phecks for now only works for Laravel projects.

It supports PHP >= 7.4, and Laravel >= 8

Installation

To install phecks in your project, run:

composer require juampi92/phecks --dev

To publish the config file, run:

php artisan vendor:publish --tag="phecks:config"

Get started with the .

Set up

This is the following setup for your Checks:

On your composer.json, add:

{
    ...
    "autoload-dev": {
        "psr-4": {
            "Phecks\\": "phecks",
            ...
        },
    }

And create the folder ./phecks/Checks, where you will place the checks.

the idea behind phecks
configuration here