John Davidson

php - What are "MySource" and "Squiz" Coding Standards?

0 comments
Message:


After installing Composer in windows 10, the result of phpc -i command is:


"The installed coding standards are MySource, PEAR, PSR1, PSR12, PSR2, Squiz and Zend."


After lots of searches I was unable to find any documentation about MySource coding standard, nor for Squiz coding standard.


So what are these two standards? Are there any link to their documentation to see what sniffs they do?


In fact I need to know are there any extra sniffs which these two standard do in comparison with PSR12? (currently I've set only PSR1,PSR12 in my vscode code sniffer extension settings.)



My Answer:
some of the key features of PHP?

1. Server-side scripting language: PHP is a server-side scripting language, which means that the code is executed on the server before being sent to the client's browser.

2. Cross-platform compatibility: PHP is compatible with various operating systems, including Windows, Linux, macOS, and Unix.

3. Database support: PHP has built-in support for various databases, such as MySQL, PostgreSQL, and SQLite, making it easy to interact with databases in web applications.

4. Easy integration with HTML: PHP code can be embedded directly into HTML, making it easy to create dynamic web pages.

5. Open-source: PHP is an open-source language, which means that it is free to use and has a large community of developers contributing to its development.

6. Extensive library support: PHP has a vast collection of libraries and frameworks that can be used to streamline development and add functionality to web applications.

7. Security features: PHP has built-in security features, such as data encryption and validation functions, to help protect against common security threats like SQL injection and cross-site scripting attacks.

Rate this post

5 of 5 based on 7672 votes

Comments




© 2024 Hayatsk.info - Personal Blogs Platform. All Rights Reserved.
Create blog  |  Privacy Policy  |  Terms & Conditions  |  Contact Us