Skip to content

Custom PHP Coding Standards for Northrook projects.

License

Notifications You must be signed in to change notification settings

northrook/php-cs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Coding Standards for Northrook projects

Using PHP-CS-Fixer.

This coding standard deviates from the PSR, focusing on comfort and ergonomics for me.

Important

This package is still in development, and intended for internal use.

Installation

This package is not (yet) available on packagist, but you can install manually by editing your coposer.json file:

{
  "require-dev": {
    "northrook/php-cs": "dev-main"
  },
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/northrook/php-cs"
    }
  ]
}

Then copy the included .php-cs-fixer.dist.php file from /vendor/northrook/php-cs/.php-cs-fixer.dist.phpto the project root.

Usage

Run the fixer mnually in the console:

./vendor/bin/php-cs-fixer fix

Your IDE might also have an integration, like PhpStorm.

License

MIT

About

Custom PHP Coding Standards for Northrook projects.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages