Tips

Top 12 PHP Development Tools and Tips

June 3, 2016

Most developers have their go-to PHP development tools, libraries, and best practices to streamline workflows and create clean, lean code. So, we asked our developers to let us in on their favorites. Here are their top tools, tips, and tricks to help you create great apps.

1. Use PHPUnit for unit testing to catch bugs.

Elisha, Front-End Developer

PHPUnit

2. Utilize the PHPStorm text editor optimized for programming in PHP.

Jesse, Front-End Developer

PHPStorm

3. Avoid long running scripts that will be terminated by the server. Don’t increase server max limitation as a solution. And don’t suppress warnings.

Steve, CTO

PHP Ini Setting

4. Use Composer to better manage app dependencies.

Ryan, Full-Stack Developer

Compoer Install

5. Be aware of server-side PHP logic when used in a web server that caches the output as HTML.

Elisha, Front-End Developer

Screen Shot 2016-06-07 at 6.32.58 PM

6. Interface with SQL databases easily using the phpMyAdmin graphic interface.

Nuriel, UI/UX Designer

phpMyAdmin

7. Bookmark this handy chart that shows the difference between == and ===. Keep in mind the equations are not commutative:

Copy
"php" == 0 -> True
0 == null -> True
"php" == null -> FALSE WHAT?!

Steven, Front-End/Full-Stack Developer

PHP Type Comparison Chart

8. Watch SQL injections…use PDO or like libraries and sanitize user input/output to prevent malicious code from running.

Ryan, Full-Stack Developer & Elisha, Front-End Developer

PDO

9. PHP security tip: obfuscate code for encryption with ionCube library for files.

Nuriel, UI/UX Designer

ionCube PHP encryption

10. Use PHP cors proxy library for API server.

Elisha, Front-End Developer

simple-php-proxy

11. Debug with Xdebug PHP debugger and profiler tool.

Jesse, Front-End Developer

xdebug

12. Use mt_rand over rand for random numbers, and be aware of a rand generator for a server that caches the output as HTML again.

Ryan, Full-Stack Developer & Elisha, Front-End Developer

 

mt_rand

Elisha Terada

Front-End Development Lead

Elisha Terada is the "ninja" who solves tough missions with his tech, design, and business skills. In his relaxation time, Elisha enjoys shooting portraits with his camera and playing music with his guitar and bass.

Unless otherwise specified, source code in this post is licensed under a
Creative Commons Attribution 4.0 International license (CC BY 4.0).

  • Nice and interesting article, there’s a lot of great tips here!! Thank you very much for this. I found it really very interesting. I found an interesting article regarding PHP Development here you can find it http://bit.ly/2a53oV5

You might also like...

14

Dec.

3 Ways to Automate the Detection of Website Vulnerabilities

There is no such thing as perfect security, only varying levels of insecurity. -Salman Rushdie Although the context of this quote is completely irrelevant to the internet and web development, the content of the quote is perfectly applicable to web security. However, if you manage, develop, or run a website, and you value the security … Continued

12

May.

11 of Our Favorite JavaScript Developer Tools

From JavaScript debugging tools to our favorite JS libraries, here are some of the resources that enable us to write better, cleaner code. Eight of Fresh’s devs weigh in on their choices for JavaScript developer tools. 1. ESLint helps everyone to write clean JavaScript code! –Steve, CTO   2. Client/Server data synchronization library for Node.js I created … Continued

5

May.

How Vagrant Up Can Make Development Easier

Have you ever managed a remote team and needed to get developers or designers set up so they could start contributing to a project? How many hours (or days!) do you wish you could get back? Earlier this year Hashicorp released a product that changed the face of team-based development. Vagrant was originally a simple … Continued