Skip to main content

Everything you Need to Know About PSR | PSR 2019 | Windzoon Technologies

Best Web Design Company in India

PSR also known as PHP Standard Recommendation, it is a PHP specification that is used in many standardize programs. Mainly it is used to enable component interoperability and provide a basic technical basis for implementing concepts to improve programming. It is established by the PHP Framework Interop Group. The PSR standards use for example to be able to develop different components for Laravel that work effectively with other frameworks like Symfony. 

Here are the main 4 types of PSR as per the Best Web Design Company in India

1. Accepted

=>PSR-1: Basic Coding Standard

=>PSR-6: Caching Interface

=>PSR-12: Extended Coding Style Guide

2. Deprecated

=>PSR-0: Autoloading Standard

=>PSR-2: Coding Style Guide

3. Draft 

=>PSR-5: PHPDoc Standard

=>PSR-19: PHPDoc tags

4. Abandoned

=>PSR-9: Security Advisories

=>PSR-10: Security Reporting Process

Here are some detail information about main PSR’s

PSR-1: Basic Coding standard

Here it includes what should be considered the standard coding parts required to ensure a high level of technical interoperability between shared PHP code.
=>PHP code MUST use only <?php and <?= tags.

=>PHP code MUST use only UTF-8 without BOM.

=>Class names MUST be listed in StudlyCaps.

=>Class constants MUST be reported in all uppercase with underscore separators.

=>Method names MUST be listed in camelCase.

PSR-6: Caching Interface

Caching is a way you can improve the overall performance of the project, making caching libraries is a common feature of many frameworks and libraries. 

Here are the main two key concepts, 

1. Pool

It represents a collection of items in a caching system. The pool is a valid container of all the items it contains. All cacheable items retrieved from the pool as an item object and all communication of cached objects passes through the pool.

2. Items

The item represents a single or value pair within a Pool. The key is the initial unique identifier for an Item. Also, its value may be changed at any time. 

PSR-12: Extended Coding Style Guide

This PSR provides a set that coding style tools can implement, projects can declare adherence to and developers can relate with different projects. When multiple authors collaborate across multiple projects it becomes very helpful to have a set of guidelines to use among all those projects. 


==>There must not be a harsh limit on line length.

==>Lines should not be longer than 80 characters

==>There must not be tracing whitespace at the end of the lines.

==>Make sure there must be only one statement per line.

Read more:"Best Web Design Company in India"

Comments

Popular posts from this blog

Best web development TRENDS 2021

  Firstly, sit back and feel best as you've entered a new, refreshed decade. Though it has been tough, mainly 2020, as long as humanity exists, people can recover and therefore the sources are often identified for future proposes. As the Covid-19 outbreak started, people were startled, how will they gonna work but because of the software companies who made such an interesting effort in making Work From Home culture easy and in the most reliable way and therefore the credit goes to Web Development Companies for creating the new normal adaptable to the labour. Just reminisce 10 years before, at that point we did not have many resources associated with technology, the tech companies were still finding their place to survive, after the 2008 depression. But as of now, Web Development Ireland has its justifiable share within the international marketplace for its works and efforts. Here, in this article, we'll discuss new trends which enhance the productivity of users. Trends Progres...

5 Key Features of Moodle LMS

Moodle LMS is an online learning management system, it gives an option to anyone to develop their private website. With the continuous addition of features in the Moodle, the core makes it more user-friendly and robust. As per Moodle developers in India , here are 5 key feature of Moodle which makes Moofle popular till today,  1. Social Learning 2. Gamification 3. eCommerce   4. Cloud Hosting 5. Analytics ==> Social Learning As per moodle consultant India , a course includes topics that learners engage in, take assessments, collaborate, etc. and then move on to a new topic. It quite seems boring. But it only depends on individual choice, and most of us stuck with this choice, unfortunately, and then Moodle takes the grudge of being boring. Moodle offers customization that can allow an interface similar to such other popular social tools with a different timeline of posts, filtering of the timeline, and integration with various activitie...

4 Reasons Why you should Use Digital Marketing for your Profession?

In the today’s world, virtual selling has become one of the most important tools and source. for every business, it is a crucial element. As being an owner of the business it is their wish to raise their business at the top. Each individual will ask you for attaining success but how it is up to you. Traditional methods for doing business helps no longer in the present scenario. You need to focus on all the trending methods of digital marketing to hire SEO dedicated experts. With this, you can enhance your business proficiently. 4 vitals reasons why each business owner should do online-marketing are mentioned below: 1. Economic and accurate in comparison to conventional methods: Searching capital for investing in old methods is not that appropriate for getting more business. Hire SEO dedicated expert will assist us in making our business grow faster. With this, your advertising and trading will be increased. 2. Higher returns are generated from internet marketi...