PHP code example of hellochef-me / php-styles

1. Go to this page and download the library: Download hellochef-me/php-styles library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

hellochef-me / php-styles example snippets




return HelloChef\CodeStyles\PhpStyles::style();
bash
composer 

// .gitignore
.php-cs-fixer.cache
bash
vendor/bin/php-cs-fixer fix .
bash
vendor/bin/php-cs-fixer fix Path/To/ExampleFileToFormat.php
json
"scripts": {
    "post-update-cmd": [
      "cp vendor/hellochef-me/php-styles/pre-commit .git/hooks/pre-commit",
      "chmod a+x .git/hooks/pre-commit"
    ],
    "post-install-cmd": [
      "cp vendor/hellochef-me/php-styles/pre-commit .git/hooks/pre-commit",
      "chmod a+x .git/hooks/pre-commit"
    ],
},