✅
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
  1. Examples

Spatie checks

PreviousCheck inspirationsNextMaking sources

Last updated 2 years ago

Spatie made public a styleguide they use for their PHP and Laravel projects.

Even though they include many guides that are Code Style (formatting, usage of conditionals), many others are on Pheck's domain (Casing of specific classes, suffixes, route naming, etc).

As an example to get you inspired with some phecks, we implemented some of their rules in a repository.

Also as an example mode, you can see how the phecks as a github action works by looking at this example Pull Request:

https://github.com/juampi92/spatie-phecks-example/pull/1/files
GitHub - juampi92/spatie-phecks-example: Example repository of a Phecks implementation using Spatie's styleguidesGitHub
Logo