Skip to content
This repository was archived by the owner on Sep 22, 2024. It is now read-only.

signifly/php-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

18 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Signifly PHP Configuration files

This repository contains the default configuration files for various services.

Code formatting

We use php-cs-fixer to format our code in order to standardize the styling across projects. There should be a plugin that formats the file on save to the most popular editors, such as: VS Code, Sublime Text, PHP Storm

Optionally, add the following to the scripts section in the project's composer.json file:

"format": [
    "vendor/bin/php-cs-fixer fix"
],

This allows you to run composer format from your terminal to format the entire code base.

Usage

Install the package by pulling it in from Composer:

composer require signifly/php-config --dev

Then update the .php-cs-fixer.php file:

$finder = (new PhpCsFixer\Finder)
    ->notPath('bootstrap')
    ->notPath('storage')
    ->notPath('vendor')
    ->notPath('docker')
    ->in(getcwd())
    ->name('*.php')
    ->notName('*.blade.php')
    ->notName('index.php')
    ->notName('server.php')
    ->ignoreDotFiles(true)
    ->ignoreVCS(true);

return Signifly\styles($finder);

Remember to update the Finder according to the project setup.

About

๐Ÿ˜ Signifly PHP Configuration files

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages