Slide 1

Slide 1 text

PHP: The Right Way Modern Development Practices with PHP Justin Yost Web Developer at Loadsys

Slide 2

Slide 2 text

PHP's Reputation Today » PHP is old » PHP is slow » PHP is insecure » PHP code is all written badly » etc

Slide 3

Slide 3 text

I'm not here to argue the reputation I am here to help you write better PHP code and do it the right and modern way

Slide 4

Slide 4 text

Let's first all admit we've done some stupid things

Slide 5

Slide 5 text

We can always do better » Blogs » Fellow Developers » Meetups » Conferences » Podcasts » Books » Etc

Slide 6

Slide 6 text

PHP: The Right Way » http://www.phptherightway.com/ » Site focused around helping both novices and experts make smarter better decisions

Slide 7

Slide 7 text

PHP: The Right Way » Helps beginners get started, including installing and setting up PHP on local machines » Helps more advanced people keep up to date with the best practices

Slide 8

Slide 8 text

PHP: The Right Way » Learn how to use a Code Style Guide » Learn the best practices for common problems: ** Parsing Date/Times ** Databases ** Templating ** Password storage/security ** Errors/Exceptions ** Deployment ** etc.. » And other stuff

Slide 9

Slide 9 text

PHP: The Right Way » I'm already an expert, and know all that » There a sections for tons of resources for staying up to date on the PHP community and keeping yourself an expert » You could also add your knowledge to the site

Slide 10

Slide 10 text

Okay, okay, I'll go look at the site Do you have anything else for me?

Slide 11

Slide 11 text

The League of Extraordinary Packages » http://thephpleague.com/ » Site focused around one thing writing awesome PHP packages to solve common problems » Everything is tested » Everything conforms to the FIG standards

Slide 12

Slide 12 text

The League of Extraordinary Packages So what does The League provide? » Terminal output » OAuth Client/Servers » Dealing with geo-spatial data » Dealing with Payment Libraries » Dealing with Filesystem Libraries » etc..

Slide 13

Slide 13 text

You mentioned the FIG? The FIG is the PHP Framework Interop (Interoperability) Group Think of it as a group that gets a bunch of different frameworks together to try to come to agreement on some basic standards that the frameworks will adhere to. There are currently 5 standards that have passed the PHP-FIG, another 5 in draft/review status.

Slide 14

Slide 14 text

PHP-FIG Think of it as a way for the frameworks to: * make it easier to move between frameworks * solve common problems once ** autoloading ** logging * Projects don't have to conform to the standards but most should/will

Slide 15

Slide 15 text

Any other resources » Look to frameworks as a resource for how to solve a problem » Learn some style of testing and follow it » Read/Listen/Follow/etc other developers

Slide 16

Slide 16 text

Questions? Justin Yost Developer at Loadsys https://www.yostivanich.com/ twitter.com/jtyost2 github.com/jtyost2