Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed PHP Standards and Best Practices!
You have completed PHP Standards and Best Practices!
Preview
This recommendation was designed to avoid code from one package negatively effecting the global state of the application, or conflicting with another package, and is important to any OOP code put on Composer.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You can create all source of code using
various different design patterns but
0:00
loading one class is the same as loading
multiple.
0:00
You just have to use an auto loader and
name spaces to structure your code.
0:02
Over the last few years, it's become more
and
0:06
more common for people to use established
standards and recommendations to
0:08
increase interoperability and consistency
between various projects.
0:11
As this course is all about best
practices,
0:15
it seems only reasonable to use these for
components.
0:17
PSR-1 is a standard recommendation which
provides you
0:19
with a list of good ideas to implement.
0:23
If you only implement a few of them,
0:26
then you are not technically compliant
with PSR-1.
0:27
But the more of these rules you follow,
the better.
0:29
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up